diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:48:36 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:51:57 +0200 |
commit | 1ec4cd5ab42d6b16a81176b7051384a2221159e3 (patch) | |
tree | 0e3258f9d5151dab707ac94ad5bc443ae0bea183 /nptl/pthread_mutexattr_setrobust.c | |
parent | 0bdd79794526114313135c528969bb25be88c1a3 (diff) | |
download | glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.gz glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.tar.xz glibc-1ec4cd5ab42d6b16a81176b7051384a2221159e3.zip |
nptl: Move pthread_mutexattr_setrobust into libc
And pthread_mutexattr_getrobust_np as a compat symbol. The symbols were moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_setrobust.c')
-rw-r--r-- | nptl/pthread_mutexattr_setrobust.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/nptl/pthread_mutexattr_setrobust.c b/nptl/pthread_mutexattr_setrobust.c index 1b39ded7c2..a7b119244d 100644 --- a/nptl/pthread_mutexattr_setrobust.c +++ b/nptl/pthread_mutexattr_setrobust.c @@ -18,10 +18,10 @@ #include <errno.h> #include <pthreadP.h> - +#include <shlib-compat.h> int -pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robustness) +__pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robustness) { if (robustness != PTHREAD_MUTEX_STALLED_NP && __builtin_expect (robustness != PTHREAD_MUTEX_ROBUST_NP, 0)) @@ -38,4 +38,15 @@ pthread_mutexattr_setrobust (pthread_mutexattr_t *attr, int robustness) return 0; } -weak_alias (pthread_mutexattr_setrobust, pthread_mutexattr_setrobust_np) +versioned_symbol (libc, __pthread_mutexattr_setrobust, + pthread_mutexattr_setrobust, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_setrobust, + pthread_mutexattr_setrobust_np, GLIBC_2_4); +#endif + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_34) +compat_symbol (libpthread, __pthread_mutexattr_setrobust, + pthread_mutexattr_setrobust, GLIBC_2_12); +#endif |