1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Move pthread_getspecific, __pthread_getspecific into libc

The symbols have been moved using scripts/move-symbol-to-libc.py.
This commit is contained in:
Florian Weimer
2021-04-21 19:49:51 +02:00
parent 6f009ea984
commit aae43acfd1
68 changed files with 148 additions and 70 deletions

View File

@ -18,10 +18,10 @@
#include <stdlib.h>
#include "pthreadP.h"
#include <shlib-compat.h>
void *
__pthread_getspecific (pthread_key_t key)
___pthread_getspecific (pthread_key_t key)
{
struct pthread_key_data *data;
@ -63,5 +63,15 @@ __pthread_getspecific (pthread_key_t key)
return result;
}
weak_alias (__pthread_getspecific, pthread_getspecific)
hidden_def (__pthread_getspecific)
versioned_symbol (libc, ___pthread_getspecific, __pthread_getspecific,
GLIBC_2_34);
libc_hidden_ver (___pthread_getspecific, __pthread_getspecific)
versioned_symbol (libc, ___pthread_getspecific, pthread_getspecific,
GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_34)
compat_symbol (libpthread, ___pthread_getspecific, __pthread_getspecific,
GLIBC_2_0);
compat_symbol (libpthread, ___pthread_getspecific, pthread_getspecific,
GLIBC_2_0);
#endif