aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_rwlockattr_init.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-03 09:10:57 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-03 09:18:38 +0200
commitdbfa12e201529d7006477d192a6f340e696744a1 (patch)
treec2396e15b5e963ba2f4dc9dbc59b80dc7d3c74ab /nptl/pthread_rwlockattr_init.c
parent0af0ccc2d58f8b220fda10f8d1147d84ed8b88a0 (diff)
downloadglibc-dbfa12e201529d7006477d192a6f340e696744a1.zip
glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.gz
glibc-dbfa12e201529d7006477d192a6f340e696744a1.tar.bz2
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.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/nptl/pthread_rwlockattr_init.c b/nptl/pthread_rwlockattr_init.c
index 0df2ddb..3949a06 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