diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-03 09:10:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-03 09:18:35 +0200 |
commit | 0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0 (patch) | |
tree | c9355b570b110d247525ff9a34f41d684329c772 /nptl/pthread_rwlockattr_getpshared.c | |
parent | 9f13a95b6fa848599b40b8f038f33084c5089bc1 (diff) | |
download | glibc-0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0.tar glibc-0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0.tar.gz glibc-0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0.tar.bz2 glibc-0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0.zip |
nptl: Move pthread_rwlockattr_getpshared into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_rwlockattr_getpshared.c')
-rw-r--r-- | nptl/pthread_rwlockattr_getpshared.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_getpshared.c b/nptl/pthread_rwlockattr_getpshared.c index bf62eeec94..3e126e720e 100644 --- a/nptl/pthread_rwlockattr_getpshared.c +++ b/nptl/pthread_rwlockattr_getpshared.c @@ -17,12 +17,20 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *attr, int *pshared) +__pthread_rwlockattr_getpshared (const pthread_rwlockattr_t *attr, + int *pshared) { *pshared = ((const struct pthread_rwlockattr *) attr)->pshared; return 0; } +versioned_symbol (libc, __pthread_rwlockattr_getpshared, + pthread_rwlockattr_getpshared, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_rwlockattr_getpshared, + pthread_rwlockattr_getpshared, GLIBC_2_1); +#endif |