diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:47:37 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-23 09:51:57 +0200 |
commit | 241ac38c333ae2539182f214dc641d0956f6ff6d (patch) | |
tree | 9a3762b16688be03d1df448322921626c4201c32 /nptl/pthread_mutexattr_setprotocol.c | |
parent | c66772281f77458c111f8c862d04d7011376a086 (diff) | |
download | glibc-241ac38c333ae2539182f214dc641d0956f6ff6d.tar glibc-241ac38c333ae2539182f214dc641d0956f6ff6d.tar.gz glibc-241ac38c333ae2539182f214dc641d0956f6ff6d.tar.bz2 glibc-241ac38c333ae2539182f214dc641d0956f6ff6d.zip |
nptl: Move pthread_mutexattr_setprotocol into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Diffstat (limited to 'nptl/pthread_mutexattr_setprotocol.c')
-rw-r--r-- | nptl/pthread_mutexattr_setprotocol.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_mutexattr_setprotocol.c b/nptl/pthread_mutexattr_setprotocol.c index 7415ab4e10..9a97729449 100644 --- a/nptl/pthread_mutexattr_setprotocol.c +++ b/nptl/pthread_mutexattr_setprotocol.c @@ -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 |