mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Move pthread_mutexattr_setprotocol into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
This commit is contained in:
@ -19,10 +19,10 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <pthreadP.h>
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
||||
int
|
||||
pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
|
||||
__pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
|
||||
{
|
||||
if (protocol != PTHREAD_PRIO_NONE
|
||||
&& protocol != PTHREAD_PRIO_INHERIT
|
||||
@ -36,3 +36,10 @@ pthread_mutexattr_setprotocol (pthread_mutexattr_t *attr, int protocol)
|
||||
|
||||
return 0;
|
||||
}
|
||||
versioned_symbol (libc, __pthread_mutexattr_setprotocol,
|
||||
pthread_mutexattr_setprotocol, GLIBC_2_34);
|
||||
|
||||
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_4, GLIBC_2_34)
|
||||
compat_symbol (libpthread, __pthread_mutexattr_setprotocol,
|
||||
pthread_mutexattr_setprotocol, GLIBC_2_4);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user