aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-18 13:21:34 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-11-19 01:08:27 +0100
commitf55cf584ff1a20e33df24a4e4369c444904270f5 (patch)
tree53627175f44ec45358a5236efbb937b986f83515
parent736befab6ca9069a9ff7d92b1db3f32655512307 (diff)
downloadglibc-f55cf584ff1a20e33df24a4e4369c444904270f5.zip
glibc-f55cf584ff1a20e33df24a4e4369c444904270f5.tar.gz
glibc-f55cf584ff1a20e33df24a4e4369c444904270f5.tar.bz2
htl: move __pthread_default_attr into libc
Signed-off-by: gfleury <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-attr.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index bd1afe8..beb39e5 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -25,7 +25,6 @@ SYSDEPS := lockfile
LCLHDRS :=
libpthread-routines := \
- pt-attr \
pt-attr-getguardsize \
pt-attr-getscope \
pt-attr-getstack \
@@ -198,6 +197,7 @@ routines := \
forward \
htlfreeres \
libc_pthread_init \
+ pt-attr \
pt-attr-destroy \
pt-attr-getdetachstate \
pt-attr-getinheritsched \
diff --git a/htl/Versions b/htl/Versions
index 34b1f87..05ef805 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -50,6 +50,7 @@ libc {
__pthread_total;
___pthread_self;
__pthread_init_thread;
+ __pthread_default_attr;
}
}
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 85a7d90..bdc8b83 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -319,6 +319,7 @@ extern int __pthread_mutex_checklocked (pthread_mutex_t *mtx);
/* Default thread attributes. */
extern struct __pthread_attr __pthread_default_attr;
+libc_hidden_proto (__pthread_default_attr)
/* Default barrier attributes. */
extern const struct __pthread_barrierattr __pthread_default_barrierattr;
diff --git a/sysdeps/htl/pt-attr.c b/sysdeps/htl/pt-attr.c
index ddc2c80..4f0ba83 100644
--- a/sysdeps/htl/pt-attr.c
+++ b/sysdeps/htl/pt-attr.c
@@ -37,3 +37,4 @@ struct __pthread_attr __pthread_default_attr = {
__contentionscope: PTHREAD_SCOPE_SYSTEM,
__schedpolicy: SCHED_OTHER
};
+libc_hidden_data_def (__pthread_default_attr)