From ba8522542fc2f1fa0a928432be91b9456ad745da Mon Sep 17 00:00:00 2001 From: gfleury Date: Thu, 19 Dec 2024 22:37:26 +0200 Subject: htl: move __pthread_mutex_checklocked into libc. move out __getpid from pt-mutex.h and in pt-mutex-* include where __getpid was called Signed-off-by: gfleury Message-ID: <20241219203727.669825-8-gfleury@disroot.org> --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'htl') 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. */ -- cgit v1.2.3