aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-11 11:08:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-11 11:24:39 +0200
commitddd4a2d3c64642b34d95743db9032c2bb31c16b2 (patch)
treebfa7fb0ef9b4ba4cbf7412960ab665be2503db0c
parentdf65f897e9501aa5b64a5cbcb101301715f2ec2f (diff)
downloadglibc-ddd4a2d3c64642b34d95743db9032c2bb31c16b2.tar.xz
glibc-ddd4a2d3c64642b34d95743db9032c2bb31c16b2.zip
nptl: Move thread join functions into libc
The symbols pthread_clockjoin_np, pthread_join, pthread_timedjoin_np, pthread_tryjoin_np, thrd_join were moved using scripts/move-symbol-to-libc.py. Moving the symbols at the same time avoids the need for temporary exports. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
-rw-r--r--nptl/Makefile10
-rw-r--r--nptl/Versions18
-rw-r--r--nptl/libpthread-compat.c5
-rw-r--r--nptl/pthreadP.h5
-rw-r--r--nptl/pthread_clockjoin.c27
-rw-r--r--nptl/pthread_join.c13
-rw-r--r--nptl/pthread_timedjoin.c22
-rw-r--r--nptl/pthread_tryjoin.c8
-rw-r--r--sysdeps/pthread/Makefile3
-rw-r--r--sysdeps/pthread/thrd_join.c11
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/alpha/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/alpha/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/arc/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/arc/libpthread.abilist5
-rw-r--r--sysdeps/unix/sysv/linux/arm/be/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/arm/be/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/arm/le/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/arm/le/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/csky/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/csky/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/hppa/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/hppa/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/i386/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/i386/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/ia64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/ia64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/microblaze/be/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/microblaze/le/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/nios2/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/nios2/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/riscv/rv32/libpthread.abilist5
-rw-r--r--sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/sh/be/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/sh/be/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/sh/le/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/sh/le/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/64/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist6
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist10
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist6
71 files changed, 436 insertions, 178 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 5e0347b5b1..f81b2f64df 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -84,6 +84,7 @@ routines = \
pthread_barrierattr_init \
pthread_barrierattr_setpshared \
pthread_cleanup_upto \
+ pthread_clockjoin \
pthread_cond_broadcast \
pthread_cond_destroy \
pthread_cond_init \
@@ -102,6 +103,8 @@ routines = \
pthread_getattr_np \
pthread_getschedparam \
pthread_getspecific \
+ pthread_join \
+ pthread_join_common \
pthread_key_create \
pthread_key_delete \
pthread_keys \
@@ -161,6 +164,8 @@ routines = \
pthread_spin_trylock \
pthread_spin_unlock \
pthread_testcancel \
+ pthread_timedjoin \
+ pthread_tryjoin \
pthread_yield \
sem_clockwait \
sem_close \
@@ -197,21 +202,16 @@ libpthread-routines = \
pthread_attr_setstackaddr \
pthread_attr_setstacksize \
pthread_cancel \
- pthread_clockjoin \
pthread_create \
pthread_getattr_default_np \
pthread_getconcurrency \
pthread_getcpuclockid \
pthread_getname \
- pthread_join \
- pthread_join_common \
pthread_setaffinity \
pthread_setconcurrency \
pthread_setname \
pthread_setschedprio \
pthread_sigqueue \
- pthread_timedjoin \
- pthread_tryjoin \
version \
libpthread-shared-only-routines = \
diff --git a/nptl/Versions b/nptl/Versions
index 46ae34a1a2..8c3e825083 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -42,6 +42,7 @@ libc {
pthread_exit;
pthread_getschedparam;
pthread_getspecific;
+ pthread_join;
pthread_key_create;
pthread_key_delete;
pthread_kill;
@@ -148,6 +149,8 @@ libc {
pthread_condattr_getclock;
pthread_condattr_setclock;
pthread_getaffinity_np;
+ pthread_timedjoin_np;
+ pthread_tryjoin_np;
}
GLIBC_2.3.4 {
pthread_attr_setaffinity_np;
@@ -190,6 +193,7 @@ libc {
thrd_detach;
thrd_equal;
thrd_exit;
+ thrd_join;
thrd_sleep;
thrd_yield;
tss_create;
@@ -204,6 +208,9 @@ libc {
pthread_rwlock_clockwrlock;
sem_clockwait;
}
+ GLIBC_2.31 {
+ pthread_clockjoin_np;
+ }
GLIBC_2.32 {
pthread_attr_getsigmask_np;
pthread_attr_setaffinity_np;
@@ -237,6 +244,7 @@ libc {
pthread_barrierattr_getpshared;
pthread_barrierattr_init;
pthread_barrierattr_setpshared;
+ pthread_clockjoin_np;
pthread_cond_clockwait;
pthread_condattr_getclock;
pthread_condattr_getpshared;
@@ -244,6 +252,7 @@ libc {
pthread_condattr_setpshared;
pthread_detach;
pthread_getspecific;
+ pthread_join;
pthread_key_create;
pthread_key_delete;
pthread_kill;
@@ -287,6 +296,8 @@ libc {
pthread_spin_trylock;
pthread_spin_unlock;
pthread_testcancel;
+ pthread_timedjoin_np;
+ pthread_tryjoin_np;
sem_clockwait;
sem_close;
sem_destroy;
@@ -300,6 +311,7 @@ libc {
sem_wait;
thrd_detach;
thrd_exit;
+ thrd_join;
tss_create;
tss_delete;
tss_get;
@@ -369,7 +381,6 @@ libpthread {
funlockfile;
pthread_cancel;
pthread_create;
- pthread_join;
pthread_sigmask;
}
@@ -421,8 +432,6 @@ libpthread {
__pthread_unregister_cancel_restore;
pthread_attr_getaffinity_np;
pthread_setaffinity_np;
- pthread_timedjoin_np;
- pthread_tryjoin_np;
}
GLIBC_2.3.4 {
@@ -452,7 +461,6 @@ libpthread {
# C11 thread symbols.
GLIBC_2.28 {
thrd_create;
- thrd_join;
}
GLIBC_2.30 {
@@ -460,7 +468,7 @@ libpthread {
}
GLIBC_2.31 {
- pthread_clockjoin_np;
+ __libpthread_version_placeholder;
}
GLIBC_PRIVATE {
diff --git a/nptl/libpthread-compat.c b/nptl/libpthread-compat.