[PATCH 18/19] htl: move __pthread_setup into libc.

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


---
 htl/Makefile                            | 2 +-
 htl/Versions                            | 1 +
 htl/pt-internal.h                       | 2 +-
 sysdeps/mach/hurd/i386/htl/pt-setup.c   | 1 +
 sysdeps/mach/hurd/x86_64/htl/pt-setup.c | 1 +
 5 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/htl/Makefile b/htl/Makefile
index dfab099e..329e4669 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -32,7 +32,6 @@ libpthread-routines := \
   pt-hurd-cond-timedwait \
   pt-startup \
   pt-sysdep \
-  pt-setup \
   pt-spin \
   pt-getname-np \
   pt-setname-np \
@@ -198,6 +197,7 @@ routines := \
   pt-setschedparam \
   pt-setschedprio \
   pt-setspecific \
+  pt-setup \
   pt-sigmask \
   pt-sigstate-init \
   pt-sigstate \
diff --git a/htl/Versions b/htl/Versions
index 1c7e82c1..31456186 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -270,6 +270,7 @@ libc {
     __pthread_mutexattr_settype;
     __pthread_once;
     __pthread_setspecific;
+    __pthread_setup;
     __pthread_sigstate_init;
     __pthread_sigstate;
     __pthread_sigstate_destroy;
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 24d0964e..f816aca2 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -242,7 +242,7 @@ extern int __pthread_setup (struct __pthread *__restrict thread,
 						 void *),
 			    void *(*start_routine) (void *),
 			    void *__restrict arg);
-
+libc_hidden_proto (__pthread_setup)
 
 /* Allocate a kernel thread (and any miscellaneous system dependent
    resources) for THREAD; it must not be placed on the run queue.  */
diff --git a/sysdeps/mach/hurd/i386/htl/pt-setup.c b/sysdeps/mach/hurd/i386/htl/pt-setup.c
index c6df0101..b9c41b9e 100644
--- a/sysdeps/mach/hurd/i386/htl/pt-setup.c
+++ b/sysdeps/mach/hurd/i386/htl/pt-setup.c
@@ -98,3 +98,4 @@ __pthread_setup (struct __pthread *thread,
 
   return 0;
 }
+libc_hidden_def (__pthread_setup)
diff --git a/sysdeps/mach/hurd/x86_64/htl/pt-setup.c b/sysdeps/mach/hurd/x86_64/htl/pt-setup.c
index 76a43943..88c39b78 100644
--- a/sysdeps/mach/hurd/x86_64/htl/pt-setup.c
+++ b/sysdeps/mach/hurd/x86_64/htl/pt-setup.c
@@ -91,3 +91,4 @@ __pthread_setup (struct __pthread *thread,
 
   return 0;
 }
+libc_hidden_def (__pthread_setup)
-- 
2.47.2



More information about the Libc-alpha mailing list