diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
commit | 64a8990bdcb7f7259eb8445e8a7846345869f669 (patch) | |
tree | 052e00659387eabeb8f0b5c462ddcc2c480a6be4 /nptl/pthread_setspecific.c | |
parent | aae43acfd14654d8733f022cd7b44f1636452db9 (diff) | |
download | glibc-64a8990bdcb7f7259eb8445e8a7846345869f669.tar.gz glibc-64a8990bdcb7f7259eb8445e8a7846345869f669.tar.xz glibc-64a8990bdcb7f7259eb8445e8a7846345869f669.zip |
nptl: Move pthread_setspecific, __pthread_setspecific into libc
The symbols have been moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_setspecific.c')
-rw-r--r-- | nptl/pthread_setspecific.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/nptl/pthread_setspecific.c b/nptl/pthread_setspecific.c index a6e84cd001..fdcab3b6d9 100644 --- a/nptl/pthread_setspecific.c +++ b/nptl/pthread_setspecific.c @@ -19,10 +19,10 @@ #include <errno.h> #include <stdlib.h> #include "pthreadP.h" - +#include <shlib-compat.h> int -__pthread_setspecific (pthread_key_t key, const void *value) +___pthread_setspecific (pthread_key_t key, const void *value) { struct pthread *self; unsigned int idx1st; @@ -89,5 +89,17 @@ __pthread_setspecific (pthread_key_t key, const void *value) return 0; } -weak_alias (__pthread_setspecific, pthread_setspecific) -hidden_def (__pthread_setspecific) +versioned_symbol (libc, ___pthread_setspecific, __pthread_setspecific, + GLIBC_2_34); +libc_hidden_ver (___pthread_setspecific, __pthread_setspecific) + +/* Several aliases for setting different symbol versions. */ + +versioned_symbol (libc, ___pthread_setspecific, pthread_setspecific, + GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_setspecific, __pthread_setspecific, + GLIBC_2_0); +compat_symbol (libpthread, ___pthread_setspecific, pthread_setspecific, + GLIBC_2_0); +#endif |