aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-11-26 22:53:24 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-09 01:49:49 +0100
commit7ded100d36a8decd0409f695bab5bee5e35395a6 (patch)
tree9a56268c0702fde3b17f098c3fc0c60c95bf435c
parentc982918e3ed0277564b152ab07ab0fa6efc8cfbd (diff)
downloadglibc-7ded100d36a8decd0409f695bab5bee5e35395a6.zip
glibc-7ded100d36a8decd0409f695bab5bee5e35395a6.tar.gz
glibc-7ded100d36a8decd0409f695bab5bee5e35395a6.tar.bz2
htl: move __pthread_default_condattr into libc.
Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241126205329.2215295-3-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-cond.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 2658f24..5f9b2ba 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -92,7 +92,6 @@ libpthread-routines := \
pt-rwlock-timedrdlock \
pt-rwlock-timedwrlock \
pt-rwlock-unlock \
- pt-cond \
pt-condattr-init \
pt-condattr-getclock \
pt-condattr-getpshared \
@@ -205,6 +204,7 @@ routines := \
pt-attr-setstack \
pt-attr-setstackaddr \
pt-attr-setstacksize \
+ pt-cond \
pt-condattr-destroy \
pt-getschedparam \
pt-nthreads \
diff --git a/htl/Versions b/htl/Versions
index 12399ba..7aa8a1f 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -83,6 +83,7 @@ libc {
__pthread_attr_setstacksize;
__pthread_attr_setstackaddr;
__pthread_attr_setstack;
+ __pthread_default_condattr;
}
}
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index bdc8b83..23fdb73 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -329,6 +329,7 @@ extern const struct __pthread_rwlockattr __pthread_default_rwlockattr;
/* Default condition attributes. */
extern const struct __pthread_condattr __pthread_default_condattr;
+libc_hidden_proto (__pthread_default_condattr)
/* Semaphore encoding.
See nptl implementation for the details. */
diff --git a/sysdeps/htl/pt-cond.c b/sysdeps/htl/pt-cond.c
index 5c66c22..42b1812 100644
--- a/sysdeps/htl/pt-cond.c
+++ b/sysdeps/htl/pt-cond.c
@@ -25,3 +25,4 @@ const struct __pthread_condattr __pthread_default_condattr = {
__pshared: PTHREAD_PROCESS_PRIVATE,
__clock: CLOCK_REALTIME
};
+libc_hidden_data_def (__pthread_default_condattr)