diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:47:15 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:51:57 +0200 |
commit | c66772281f77458c111f8c862d04d7011376a086 (patch) | |
tree | f62ef628e91590692dd2241867528910f2fdecc0 /nptl/pthread_mutexattr_setprioceiling.c | |
parent | 506385d30ec67279b21929f117b292bbbe8f5e7b (diff) | |
download | glibc-c66772281f77458c111f8c862d04d7011376a086.tar.gz glibc-c66772281f77458c111f8c862d04d7011376a086.tar.xz glibc-c66772281f77458c111f8c862d04d7011376a086.zip |
nptl: Move pthread_mutexattr_setprioceiling into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_setprioceiling.c')
-rw-r--r-- | nptl/pthread_mutexattr_setprioceiling.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_mutexattr_setprioceiling.c b/nptl/pthread_mutexattr_setprioceiling.c index 07805de626..b48f0d8c3a 100644 --- a/nptl/pthread_mutexattr_setprioceiling.c +++ b/nptl/pthread_mutexattr_setprioceiling.c @@ -20,10 +20,10 @@ #include <errno.h> #include <pthreadP.h> #include <atomic.h> - +#include <shlib-compat.h> int -pthread_mutexattr_setprioceiling (pthread_mutexattr_t *attr, int prioceiling) +__pthread_mutexattr_setprioceiling (pthread_mutexattr_t *attr, int prioceiling) { /* See __init_sched_fifo_prio. */ if (atomic_load_relaxed (&__sched_fifo_min_prio) == -1 @@ -47,3 +47,10 @@ pthread_mutexattr_setprioceiling (pthread_mutexattr_t *attr, int prioceiling) return 0; } +versioned_symbol (libc, __pthread_mutexattr_setprioceiling, + pthread_mutexattr_setprioceiling, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_setprioceiling, + pthread_mutexattr_setprioceiling, GLIBC_2_4); +#endif |