aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl
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
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')
-rw-r--r--sysdeps/htl/pt-rwlockattr-init.c9
-rw-r--r--sysdeps/htl/pthreadP.h2
2 files changed, 10 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
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index 9ded2f8576..2f779d27cc 100644
--- a/sysdeps/htl/pthreadP.h
+++ b/sysdeps/htl/pthreadP.h
@@ -114,6 +114,8 @@ libc_hidden_proto (__pthread_mutexattr_gettype)
extern int __pthread_mutexattr_settype(pthread_mutexattr_t *__attr,
int __type);
libc_hidden_proto (__pthread_mutexattr_settype)
+extern int __pthread_rwlockattr_init (pthread_rwlockattr_t *__attr);
+libc_hidden_proto (__pthread_rwlockattr_init)
extern int __pthread_cond_init (pthread_cond_t *cond,
const pthread_condattr_t *cond_attr);