From 79cb83c7f9d648c214e4c61fe5bd1c376b38e723 Mon Sep 17 00:00:00 2001 From: gfleury Date: Fri, 13 Dec 2024 00:06:11 +0200 Subject: [PATCH] htl: move __pthread_sigstate into libc. Message-ID: <20241212220612.782313-2-gfleury@disroot.org> --- htl/Makefile | 2 +- htl/Versions | 1 + htl/pt-internal.h | 1 + sysdeps/mach/hurd/htl/pt-sigstate.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htl/Makefile b/htl/Makefile index 4c996a9eb3..2e14f129a6 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -118,7 +118,6 @@ libpthread-routines := \ pt-machdep \ pt-spin \ pt-sigstate-init \ - pt-sigstate \ pt-kill \ pt-getcpuclockid \ pt-setschedprio \ @@ -210,6 +209,7 @@ routines := \ pt-pthread_self \ pt-self pt-equal \ pt-setschedparam \ + pt-sigstate \ pt-sigstate-destroy \ # routines shared-only-routines = forward diff --git a/htl/Versions b/htl/Versions index 388e616930..5ea9887b68 100644 --- a/htl/Versions +++ b/htl/Versions @@ -94,6 +94,7 @@ libc { __pthread_attr_setstack; __pthread_condattr_init; __pthread_default_condattr; + __pthread_sigstate; __pthread_sigstate_destroy; } } diff --git a/htl/pt-internal.h b/htl/pt-internal.h index 6bf189501d..2b4331a6c0 100644 --- a/htl/pt-internal.h +++ b/htl/pt-internal.h @@ -313,6 +313,7 @@ extern error_t __pthread_sigstate (struct __pthread *__restrict thread, int how, const sigset_t *__restrict set, sigset_t *__restrict oset, int clear_pending); +libc_hidden_proto (__pthread_sigstate) /* If supported, check that MUTEX is locked by the caller. */ extern int __pthread_mutex_checklocked (pthread_mutex_t *mtx); diff --git a/sysdeps/mach/hurd/htl/pt-sigstate.c b/sysdeps/mach/hurd/htl/pt-sigstate.c index 2b0c493d9c..fb7dcf85c7 100644 --- a/sysdeps/mach/hurd/htl/pt-sigstate.c +++ b/sysdeps/mach/hurd/htl/pt-sigstate.c @@ -82,3 +82,4 @@ __pthread_sigstate (struct __pthread *thread, int how, return err; } +libc_hidden_def (__pthread_sigstate)