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:31 +0200 |
commit | 9f13a95b6fa848599b40b8f038f33084c5089bc1 (patch) | |
tree | 4ebe0772092a5137a11fd9f6d4931a26f223a1b8 /nptl/pthread_rwlockattr_getkind_np.c | |
parent | a8841e00d605bf437dd53223e798744bd831126f (diff) | |
download | glibc-9f13a95b6fa848599b40b8f038f33084c5089bc1.tar glibc-9f13a95b6fa848599b40b8f038f33084c5089bc1.tar.gz glibc-9f13a95b6fa848599b40b8f038f33084c5089bc1.tar.bz2 glibc-9f13a95b6fa848599b40b8f038f33084c5089bc1.zip |
nptl: Move pthread_rwlockattr_getkind_np 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_getkind_np.c')
-rw-r--r-- | nptl/pthread_rwlockattr_getkind_np.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_getkind_np.c b/nptl/pthread_rwlockattr_getkind_np.c index 840b3874c2..53cecf5b99 100644 --- a/nptl/pthread_rwlockattr_getkind_np.c +++ b/nptl/pthread_rwlockattr_getkind_np.c @@ -17,12 +17,19 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *attr, int *pref) +__pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t *attr, int *pref) { *pref = ((const struct pthread_rwlockattr *) attr)->lockkind; return 0; } +versioned_symbol (libc, __pthread_rwlockattr_getkind_np, + pthread_rwlockattr_getkind_np, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_rwlockattr_getkind_np, + pthread_rwlockattr_getkind_np, GLIBC_2_1); +#endif |