about summary refs log tree commit diff
path: root/nptl/pthread_condattr_setpshared.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 11:17:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 11:17:10 +0200
commitd9b600c98503b4094bc168b9b7452ea39a0abf30 (patch)
tree3fc4041c397bad8e4ae36c0386226be38376008c /nptl/pthread_condattr_setpshared.c
parent6a75fefc2c05f1100d1ecd4bd195ea73c1b1a954 (diff)
downloadglibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.tar.gz
glibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.tar.xz
glibc-d9b600c98503b4094bc168b9b7452ea39a0abf30.zip
nptl: Move pthread_condattr_setpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_condattr_setpshared.c')
-rw-r--r--nptl/pthread_condattr_setpshared.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/nptl/pthread_condattr_setpshared.c b/nptl/pthread_condattr_setpshared.c
index 44c0cc15d9..64b66ccdb0 100644
--- a/nptl/pthread_condattr_setpshared.c
+++ b/nptl/pthread_condattr_setpshared.c
@@ -19,9 +19,10 @@
 #include <errno.h>
 #include <pthreadP.h>
 #include <futex-internal.h>
+#include <shlib-compat.h>
 
 int
-pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
+__pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
 {
   int err = futex_supports_pshared (pshared);
   if (err != 0)
@@ -33,3 +34,10 @@ pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
 
   return 0;
 }
+versioned_symbol (libc, __pthread_condattr_setpshared,
+                  pthread_condattr_setpshared, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_condattr_setpshared,
+               pthread_condattr_setpshared, GLIBC_2_2);
+#endif