aboutsummaryrefslogtreecommitdiff
path: root/htl
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-12-19 22:37:26 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-22 23:34:28 +0100
commitba8522542fc2f1fa0a928432be91b9456ad745da (patch)
tree2d3f89017440733973acd0ade3e576bff47feeca /htl
parenta369d567d206d04a7c56b388b829424046309b95 (diff)
downloadglibc-ba8522542fc2f1fa0a928432be91b9456ad745da.tar.xz
glibc-ba8522542fc2f1fa0a928432be91b9456ad745da.zip
htl: move __pthread_mutex_checklocked into libc.
move out __getpid from pt-mutex.h and in pt-mutex-* include <unistd.h> where __getpid was called Signed-off-by: gfleury <gfleury@disroot.org> Message-ID: <20241219203727.669825-8-gfleury@disroot.org>
Diffstat (limited to 'htl')
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 683ca4bc4e..1c454d4d3e 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -68,7 +68,6 @@ libpthread-routines := \
pt-mutexattr-setrobust \
pt-mutex-init \
pt-mutex-destroy \
- pt-mutex-checklocked \
pt-mutex-lock \
pt-mutex-trylock \
pt-mutex-timedlock \
@@ -201,6 +200,7 @@ routines := \
pt-condattr-setclock \
pt-condattr-setpshared \
pt-getschedparam \
+ pt-mutex-checklocked \
pt-nthreads \
pt-pthread_self \
pt-self pt-equal \
diff --git a/htl/Versions b/htl/Versions
index 3fa6b936a2..95cf7fe4c2 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -106,6 +106,7 @@ libc {
__pthread_cond_signal;
__pthread_condattr_init;
__pthread_default_condattr;
+ __pthread_mutex_checklocked;
__pthread_sigstate;
__pthread_sigstate_destroy;
__pthread_sigmask;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 1e4d92d0d7..ec71fe1867 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -319,6 +319,7 @@ libc_hidden_proto (__pthread_sigstate)
/* If supported, check that MUTEX is locked by the caller. */
extern int __pthread_mutex_checklocked (pthread_mutex_t *mtx);
+libc_hidden_proto (__pthread_mutex_checklocked)
/* Default thread attributes. */