[PATCH 2/3] htl: move __pthread_sigstate into libc.

gfleury gfleury@disroot.org
Thu Dec 12 22:06:11 GMT 2024


---
 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 4c996a9e..2e14f129 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 388e6169..5ea9887b 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 6bf18950..2b4331a6 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 2b0c493d..fb7dcf85 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)
-- 
2.39.5



More information about the Libc-alpha mailing list