[PATCH 14/19] htl: move __pthread_sigstate_init into libc.

gfleury gfleury@disroot.org
Fri Aug 15 18:14:55 GMT 2025


---
 htl/Makefile                             | 2 +-
 htl/Versions                             | 1 +
 htl/pt-internal.h                        | 1 +
 sysdeps/mach/hurd/htl/pt-sigstate-init.c | 3 +++
 4 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/htl/Makefile b/htl/Makefile
index f83925f0..b2fb020a 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -37,7 +37,6 @@ libpthread-routines := \
   pt-sysdep \
   pt-setup \
   pt-spin \
-  pt-sigstate-init \
   pt-getname-np \
   pt-setname-np \
   sem_close \
@@ -200,6 +199,7 @@ routines := \
   pt-setschedprio \
   pt-setspecific \
   pt-sigmask \
+  pt-sigstate-init \
   pt-sigstate \
   pt-sigstate-destroy \
   pt-stack-alloc \
diff --git a/htl/Versions b/htl/Versions
index 7d0b5f21..4845742f 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -258,6 +258,7 @@ libc {
     __pthread_mutexattr_settype;
     __pthread_once;
     __pthread_setspecific;
+    __pthread_sigstate_init;
     __pthread_sigstate;
     __pthread_sigstate_destroy;
     __pthread_sigmask;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 7651446b..24d0964e 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -311,6 +311,7 @@ libc_hidden_proto (__pthread_destroy_specific)
 /* Initialize newly create thread *THREAD's signal state data
    structures.  */
 extern error_t __pthread_sigstate_init (struct __pthread *thread);
+libc_hidden_proto (__pthread_sigstate_init)
 
 /* Destroy the signal state data structures associated with thread
    *THREAD.  */
diff --git a/sysdeps/mach/hurd/htl/pt-sigstate-init.c b/sysdeps/mach/hurd/htl/pt-sigstate-init.c
index 5a17dd59..a0c7f277 100644
--- a/sysdeps/mach/hurd/htl/pt-sigstate-init.c
+++ b/sysdeps/mach/hurd/htl/pt-sigstate-init.c
@@ -19,6 +19,7 @@
 #include <pthread.h>
 #include <pt-internal.h>
 #include <hurd/signal.h>
+#include <ldsodefs.h>
 
 error_t
 __pthread_sigstate_init (struct __pthread *thread)
@@ -42,3 +43,5 @@ __pthread_sigstate_init (struct __pthread *thread)
 
   return 0;
 }
+
+libc_hidden_def (__pthread_sigstate_init)
-- 
2.47.2



More information about the Libc-alpha mailing list