mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
nptl: Move pthread_mutexattr_getrobust 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:
@ -17,10 +17,11 @@
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <pthreadP.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, int *robustness)
|
||||
__pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr,
|
||||
int *robustness)
|
||||
{
|
||||
const struct pthread_mutexattr *iattr;
|
||||
|
||||
@ -31,4 +32,15 @@ pthread_mutexattr_getrobust (const pthread_mutexattr_t *attr, int *robustness)
|
||||
|
||||
return 0;
|
||||
}
|
||||
weak_alias (pthread_mutexattr_getrobust, pthread_mutexattr_getrobust_np)
|
||||
versioned_symbol (libc, __pthread_mutexattr_getrobust,
|
||||
pthread_mutexattr_getrobust, GLIBC_2_34);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34)
|
||||
compat_symbol (libpthread, __pthread_mutexattr_getrobust,
|
||||
pthread_mutexattr_getrobust_np, GLIBC_2_4);
|
||||
#endif
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_34)
|
||||
compat_symbol (libpthread, __pthread_mutexattr_getrobust,
|
||||
pthread_mutexattr_getrobust, GLIBC_2_12);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user