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_mutexattr_setprotocol.c11
3 files changed, 12 insertions, 4 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 01c383257c..96a01e1c0d 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -111,6 +111,7 @@ routines = \
pthread_mutexattr_gettype \
pthread_mutexattr_init \
pthread_mutexattr_setprioceiling \
+ pthread_mutexattr_setprotocol \
pthread_once \
pthread_rwlock_rdlock \
pthread_rwlock_unlock \
@@ -170,7 +171,6 @@ libpthread-routines = \
pthread_getname \
pthread_join \
pthread_join_common \
- pthread_mutexattr_setprotocol \
pthread_mutexattr_setpshared \
pthread_mutexattr_setrobust \
pthread_mutexattr_settype \
diff --git a/nptl/Versions b/nptl/Versions
index fde430b622..8dc6d3a4ff 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -103,6 +103,7 @@ libc {
pthread_mutexattr_getprotocol;
pthread_mutexattr_getrobust_np;
pthread_mutexattr_setprioceiling;
+ pthread_mutexattr_setprotocol;
}
GLIBC_2.12 {
pthread_mutex_consistent;
@@ -154,6 +155,7 @@ libc {
pthread_mutexattr_gettype;
pthread_mutexattr_init;
pthread_mutexattr_setprioceiling;
+ pthread_mutexattr_setprotocol;
pthread_once;
pthread_rwlock_rdlock;
pthread_rwlock_unlock;
@@ -339,7 +341,6 @@ libpthread {
}
GLIBC_2.4 {
- pthread_mutexattr_setprotocol;
pthread_mutexattr_setrobust_np;
};
diff --git a/nptl/pthread_mutexattr_setprotocol.c b/nptl/pthread_mutexattr_setprotocol.c
index 7415ab4e10..9a97729449 100644
--- a/nptl/pthread_mutexattr_setprotocol.c
+++ b/nptl/pthread_mutexattr_setprotocol.c
@@ -19,10 +19,10 @@
#include <errno.h>
#include <pthreadP.h>
-
+#include <shlib-compat.h>
int
-pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
+__pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
{
if (protocol != PTHREAD_PRIO_NONE
&& protocol != PTHREAD_PRIO_INHERIT
@@ -36,3 +36,10 @@ pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
return 0;
}
+versioned_symbol (libc, __pthread_mutexattr_setprotocol,
+ pthread_mutexattr_setprotocol, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_mutexattr_setprotocol,
+ pthread_mutexattr_setprotocol, GLIBC_2_4);
+#endif