about summary refs log tree commit diff
path: root/nptl/pthread_mutexattr_setpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:48:09 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:51:57 +0200
commit8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0 (patch)
treedfbbd845ec25b62352f05927dc1980b9958c05e1 /nptl/pthread_mutexattr_setpshared.c
parent241ac38c333ae2539182f214dc641d0956f6ff6d (diff)
downloadglibc-8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0.tar.gz
glibc-8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0.tar.xz
glibc-8a229ee93c17cf5d0aff9ba81a3acfa146f1dae0.zip
nptl: Move pthread_mutexattr_setpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_setpshared.c')
-rw-r--r--nptl/pthread_mutexattr_setpshared.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_mutexattr_setpshared.c b/nptl/pthread_mutexattr_setpshared.c
index 8f21594019..f3d52ff9d9 100644
--- a/nptl/pthread_mutexattr_setpshared.c
+++ b/nptl/pthread_mutexattr_setpshared.c
@@ -19,10 +19,10 @@
 #include <errno.h>
 #include <pthreadP.h>
 #include <futex-internal.h>
-
+#include <shlib-compat.h>
 
 int
-pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
+__pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
 {
   struct pthread_mutexattr *iattr;
 
@@ -39,3 +39,10 @@ pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_mutexattr_setpshared,
+                  pthread_mutexattr_setpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_mutexattr_setpshared,
+               pthread_mutexattr_setpshared, GLIBC_2_2);
+#endif