mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user