about summary refs log tree commit diff
path: root/nptl/pthread_mutex_setprioceiling.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-23 09:43:08 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-23 09:43:08 +0200
commita2975191d0e852ba2501f4cf1588aae76bdad303 (patch)
tree5523f44fd3fd7d06c15842e98d4ecadcd4e01f0a /nptl/pthread_mutex_setprioceiling.c
parent4b85c6f55fa9be1b1ff2c5ac67c8dcb63f883789 (diff)
downloadglibc-a2975191d0e852ba2501f4cf1588aae76bdad303.tar.gz
glibc-a2975191d0e852ba2501f4cf1588aae76bdad303.tar.xz
glibc-a2975191d0e852ba2501f4cf1588aae76bdad303.zip
nptl: Move pthread_mutex_setprioceiling into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutex_setprioceiling.c')
-rw-r--r--nptl/pthread_mutex_setprioceiling.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/nptl/pthread_mutex_setprioceiling.c b/nptl/pthread_mutex_setprioceiling.c
index 68755fed46..2675597dfb 100644
--- a/nptl/pthread_mutex_setprioceiling.c
+++ b/nptl/pthread_mutex_setprioceiling.c
@@ -22,11 +22,11 @@
 #include <pthreadP.h>
 #include <atomic.h>
 #include <futex-internal.h>
-
+#include <shlib-compat.h>
 
 int
-pthread_mutex_setprioceiling (pthread_mutex_t *mutex, int prioceiling,
-			      int *old_ceiling)
+__pthread_mutex_setprioceiling (pthread_mutex_t *mutex, int prioceiling,
+				int *old_ceiling)
 {
   /* See concurrency notes regarding __kind in struct __pthread_mutex_s
      in sysdeps/nptl/bits/thread-shared-types.h.  */
@@ -121,3 +121,10 @@ pthread_mutex_setprioceiling (pthread_mutex_t *mutex, int prioceiling,
 
   return 0;
 }
+versioned_symbol (libc, __pthread_mutex_setprioceiling,
+		  pthread_mutex_setprioceiling, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34)
+compat_symbol (libpthread, __pthread_mutex_setprioceiling,
+               pthread_mutex_setprioceiling, GLIBC_2_4);
+#endif