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:38 +0200 |
commit | dbfa12e201529d7006477d192a6f340e696744a1 (patch) | |
tree | c2396e15b5e963ba2f4dc9dbc59b80dc7d3c74ab /nptl/pthread_rwlockattr_init.c | |
parent | 0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0 (diff) | |
download | glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.gz glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.bz2 glibc-dbfa12e201529d7006477d192a6f340e696744a1.zip |
nptl: Move pthread_rwlockattr_init 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_init.c')
-rw-r--r-- | nptl/pthread_rwlockattr_init.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_init.c b/nptl/pthread_rwlockattr_init.c index 0df2ddbcd2..3949a0698d 100644 --- a/nptl/pthread_rwlockattr_init.c +++ b/nptl/pthread_rwlockattr_init.c @@ -17,10 +17,10 @@ <https://www.gnu.org/licenses/>. */ #include "pthreadP.h" - +#include <shlib-compat.h> int -pthread_rwlockattr_init (pthread_rwlockattr_t *attr) +__pthread_rwlockattr_init (pthread_rwlockattr_t *attr) { ASSERT_TYPE_SIZE (pthread_rwlockattr_t, __SIZEOF_PTHREAD_RWLOCKATTR_T); ASSERT_PTHREAD_INTERNAL_SIZE (pthread_rwlockattr_t, @@ -35,3 +35,10 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *attr) return 0; } +versioned_symbol (libc, __pthread_rwlockattr_init, + pthread_rwlockattr_init, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1, GLIBC_2_34) +compat_symbol (libpthread, __pthread_rwlockattr_init, + pthread_rwlockattr_init, GLIBC_2_1); +#endif |