aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-08-15 20:14:59 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-08-16 01:44:51 +0200
commit80412aee3efd94fa950b6609f84d3912ad7b5aa4 (patch)
treeadf124e377ca0175009e1eb47063476bebf0f600
parentb6616efe8c5a94dc39f7d9da861fa15722ce834f (diff)
downloadglibc-80412aee3efd94fa950b6609f84d3912ad7b5aa4.zip
glibc-80412aee3efd94fa950b6609f84d3912ad7b5aa4.tar.gz
glibc-80412aee3efd94fa950b6609f84d3912ad7b5aa4.tar.bz2
htl: move __pthread_setup into libc.
Message-ID: <20250815181500.107433-19-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h2
-rw-r--r--sysdeps/mach/hurd/i386/htl/pt-setup.c1
-rw-r--r--sysdeps/mach/hurd/x86_64/htl/pt-setup.c1
5 files changed, 5 insertions, 2 deletions
diff --git a/htl/Makefile b/htl/Makefile
index ab78372..995bcef 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 \
pt-sigstate-destroy \
diff --git a/htl/Versions b/htl/Versions
index 1c7e82c..3145618 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 24d0964..f816aca 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 c6df010..b9c41b9 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 76a4394..88c39b7 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)