aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-02-16 16:54:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-16 22:59:16 +0100
commitcd2d31ed58542adc0869ca17c88a45f41117db8b (patch)
treecfbfa0f58fe2e2429804efc8054492228bf1e5e8 /sysdeps/htl
parente618b671cdac1e98632ec9db439a585a55739e4b (diff)
downloadglibc-cd2d31ed58542adc0869ca17c88a45f41117db8b.tar.xz
glibc-cd2d31ed58542adc0869ca17c88a45f41117db8b.zip
htl: move pthread_rwlockattr_destroy into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20250216145434.7089-4-gfleury@disroot.org>
Diffstat (limited to 'sysdeps/htl')
-rw-r--r--sysdeps/htl/pt-rwlockattr-destroy.c9
-rw-r--r--sysdeps/htl/pthreadP.h2
2 files changed, 10 insertions, 1 deletions
diff --git a/sysdeps/htl/pt-rwlockattr-destroy.c b/sysdeps/htl/pt-rwlockattr-destroy.c
index cf73625ce7..671eb84ed2 100644
--- a/sysdeps/htl/pt-rwlockattr-destroy.c
+++ b/sysdeps/htl/pt-rwlockattr-destroy.c
@@ -18,9 +18,16 @@
#include <pthread.h>
#include <pt-internal.h>
+#include <shlib-compat.h>
int
-pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
+__pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
{
return 0;
}
+libc_hidden_def (__pthread_rwlockattr_destroy)
+versioned_symbol (libc, __pthread_rwlockattr_destroy, pthread_rwlockattr_destroy, GLIBC_2_42);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_42)
+compat_symbol (libpthread, __pthread_rwlockattr_destroy, pthread_rwlockattr_destroy, GLIBC_2_12);
+#endif
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index 2f779d27cc..0f22c85d41 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_destroy (pthread_rwlockattr_t *__attr);
+libc_hidden_proto (__pthread_rwlockattr_destroy)
extern int __pthread_rwlockattr_init (pthread_rwlockattr_t *__attr);
libc_hidden_proto (__pthread_rwlockattr_init)