diff options
| author | Florian Weimer <fweimer@redhat.com> | 2021-05-11 11:08:00 +0200 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2021-05-11 11:24:39 +0200 |
| commit | ddd4a2d3c64642b34d95743db9032c2bb31c16b2 (patch) | |
| tree | bfa7fb0ef9b4ba4cbf7412960ab665be2503db0c | |
| parent | df65f897e9501aa5b64a5cbcb101301715f2ec2f (diff) | |
| download | glibc-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>
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. |
