aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl/pt-rwlockattr-init.c
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-02-16 16:54:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-16 22:59:07 +0100
commite618b671cdac1e98632ec9db439a585a55739e4b (patch)
tree0be6bffa09ded48528d527bffad8a10e89b33256 /sysdeps/htl/pt-rwlockattr-init.c
parent8f842ce13e5ba7577decb4ad6d66e159d00b18c7 (diff)
downloadglibc-e618b671cdac1e98632ec9db439a585a55739e4b.tar.xz
glibc-e618b671cdac1e98632ec9db439a585a55739e4b.zip
htl: move pthread_rwlockattr_init into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20250216145434.7089-3-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl/pt-rwlockattr-init.c')
-rw-r--r--sysdeps/htl/pt-rwlockattr-init.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-rwlockattr-init.c b/sysdeps/htl/pt-rwlockattr-init.c
index 04a3ca62be..ce3f3c655d 100644
--- a/sysdeps/htl/pt-rwlockattr-init.c
+++ b/sysdeps/htl/pt-rwlockattr-init.c
@@ -18,12 +18,19 @@
#include <pthread.h>
#include <pt-internal.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);
*attr = __pthread_default_rwlockattr;
return 0;
}
+libc_hidden_def (__pthread_rwlockattr_init)
+versioned_symbol (libc, __pthread_rwlockattr_init, pthread_rwlockattr_init, GLIBC_2_42);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
+compat_symbol (libpthread, __pthread_rwlockattr_init, pthread_rwlockattr_init, GLIBC_2_12);
+#endif