aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile2
-rw-r--r--nptl/Versions3
-rw-r--r--nptl/pthread_condattr_setpshared.c10
3 files changed, 12 insertions, 3 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 040a27c..264ada0 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -84,6 +84,7 @@ routines = \
pthread_condattr_getpshared \
pthread_condattr_init \
pthread_condattr_setclock \
+ pthread_condattr_setpshared \
pthread_equal \
pthread_exit \
pthread_getaffinity \
@@ -165,7 +166,6 @@ libpthread-routines = \
pthread_barrierattr_setpshared \
pthread_cancel \
pthread_clockjoin \
- pthread_condattr_setpshared \
pthread_create \
pthread_detach \
pthread_getattr_default_np \
diff --git a/nptl/Versions b/nptl/Versions
index a141308..0a627a4 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -75,6 +75,7 @@ libc {
__pthread_rwlock_unlock;
__pthread_rwlock_wrlock;
pthread_condattr_getpshared;
+ pthread_condattr_setpshared;
pthread_mutex_timedlock;
pthread_mutexattr_getpshared;
pthread_mutexattr_setpshared;
@@ -153,6 +154,7 @@ libc {
pthread_condattr_getclock;
pthread_condattr_getpshared;
pthread_condattr_setclock;
+ pthread_condattr_setpshared;
pthread_getspecific;
pthread_key_create;
pthread_key_delete;
@@ -305,7 +307,6 @@ libpthread {
pthread_barrierattr_destroy;
pthread_barrierattr_init;
pthread_barrierattr_setpshared;
- pthread_condattr_setpshared;
pthread_getcpuclockid;
pthread_rwlock_timedrdlock;
pthread_rwlock_timedwrlock;
diff --git a/nptl/pthread_condattr_setpshared.c b/nptl/pthread_condattr_setpshared.c
index 44c0cc1..64b66cc 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