aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-02-16 16:54:25 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-16 22:59:00 +0100
commit8f842ce13e5ba7577decb4ad6d66e159d00b18c7 (patch)
tree70f1e58f80b9843918972f5a3d31f2ffa47caa6b
parent60f2d6be657aa8c663ee14bd266d343ae0f35afb (diff)
downloadglibc-8f842ce13e5ba7577decb4ad6d66e159d00b18c7.tar.xz
glibc-8f842ce13e5ba7577decb4ad6d66e159d00b18c7.zip
htl: move __pthread_default_rwlockattr into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20250216145434.7089-2-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h1
-rw-r--r--sysdeps/htl/pt-rwlock-attr.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 2b2a49c7b7..13215943d7 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -45,7 +45,6 @@ libpthread-routines := \
pt-testcancel \
pt-cancel \
pt-mutex-transfer-np \
- pt-rwlock-attr \
pt-rwlockattr-init \
pt-rwlockattr-destroy \
pt-rwlockattr-getpshared \
@@ -201,6 +200,7 @@ routines := \
pt-mutexattr-settype \
pt-nthreads \
pt-pthread_self \
+ pt-rwlock-attr \
pt-self pt-equal \
pt-setcancelstate \
pt-setcanceltype \
diff --git a/htl/Versions b/htl/Versions
index dd3be82e9e..ff24da0190 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -171,6 +171,7 @@ libc {
__pthread_cond_wait;
__pthread_condattr_init;
__pthread_default_condattr;
+ __pthread_default_rwlockattr;
__pthread_mutex_checklocked;
__pthread_mutex_destroy;
__pthread_mutex_init;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index d19579b33b..cd4ebc0a6a 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -331,6 +331,7 @@ extern const struct __pthread_barrierattr __pthread_default_barrierattr;
/* Default rdlock attributes. */
extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
+libc_hidden_proto (__pthread_default_rwlockattr)
/* Default condition attributes. */
extern const struct __pthread_condattr __pthread_default_condattr;
diff --git a/sysdeps/htl/pt-rwlock-attr.c b/sysdeps/htl/pt-rwlock-attr.c
index 999e108ecf..98dd4c9d69 100644
--- a/sysdeps/htl/pt-rwlock-attr.c
+++ b/sysdeps/htl/pt-rwlock-attr.c
@@ -22,3 +22,4 @@
const struct __pthread_rwlockattr __pthread_default_rwlockattr = {
__pshared: PTHREAD_PROCESS_PRIVATE
};
+libc_hidden_data_def (__pthread_default_rwlockattr)