about summary refs log tree commit diff
path: root/nptl/pthread_getspecific.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
commitaae43acfd14654d8733f022cd7b44f1636452db9 (patch)
tree73af98b711ab1482caa86406b9fcdb8b1b561912 /nptl/pthread_getspecific.c
parent6f009ea9848a473578ccdebc0dc1ccf50debc047 (diff)
downloadglibc-aae43acfd14654d8733f022cd7b44f1636452db9.tar.gz
glibc-aae43acfd14654d8733f022cd7b44f1636452db9.tar.xz
glibc-aae43acfd14654d8733f022cd7b44f1636452db9.zip
nptl: Move pthread_getspecific, __pthread_getspecific into libc
The symbols have been moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_getspecific.c')
-rw-r--r--nptl/pthread_getspecific.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/nptl/pthread_getspecific.c b/nptl/pthread_getspecific.c
index d38847e1c2..230497a84d 100644
--- a/nptl/pthread_getspecific.c
+++ b/nptl/pthread_getspecific.c
@@ -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