aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2024-12-13 00:06:10 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-14 23:11:45 +0100
commitdca0807a4d8b9f5ebae4a4131fee8f7cdd13d07f (patch)
tree8ef30e0b9b49694b212c7a5d6e5e65169e2f7eca
parent335ba9b6c1db7030264de7d9e38047f645326e54 (diff)
downloadglibc-dca0807a4d8b9f5ebae4a4131fee8f7cdd13d07f.zip
glibc-dca0807a4d8b9f5ebae4a4131fee8f7cdd13d07f.tar.gz
glibc-dca0807a4d8b9f5ebae4a4131fee8f7cdd13d07f.tar.bz2
htl: move __pthread_sigstate_destroy into libc.
Message-ID: <20241212220612.782313-1-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions1
-rw-r--r--htl/pt-internal.h1
-rw-r--r--sysdeps/mach/hurd/htl/pt-sigstate-destroy.c1
4 files changed, 4 insertions, 1 deletions
diff --git a/htl/Makefile b/htl/Makefile
index b0bc0d9..4c996a9 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -118,7 +118,6 @@ libpthread-routines := \
pt-machdep \
pt-spin \
pt-sigstate-init \
- pt-sigstate-destroy \
pt-sigstate \
pt-kill \
pt-getcpuclockid \
@@ -211,6 +210,7 @@ routines := \
pt-pthread_self \
pt-self pt-equal \
pt-setschedparam \
+ pt-sigstate-destroy \
# routines
shared-only-routines = forward
diff --git a/htl/Versions b/htl/Versions
index 33a3cfa..388e616 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -94,6 +94,7 @@ libc {
__pthread_attr_setstack;
__pthread_condattr_init;
__pthread_default_condattr;
+ __pthread_sigstate_destroy;
}
}
diff --git a/htl/pt-internal.h b/htl/pt-internal.h
index 23fdb73..6bf1895 100644
--- a/htl/pt-internal.h
+++ b/htl/pt-internal.h
@@ -306,6 +306,7 @@ extern error_t __pthread_sigstate_init (struct __pthread *thread);
/* Destroy the signal state data structures associated with thread
*THREAD. */
extern void __pthread_sigstate_destroy (struct __pthread *thread);
+libc_hidden_proto (__pthread_sigstate_destroy)
/* Modify thread *THREAD's signal state. */
extern error_t __pthread_sigstate (struct __pthread *__restrict thread, int how,
diff --git a/sysdeps/mach/hurd/htl/pt-sigstate-destroy.c b/sysdeps/mach/hurd/htl/pt-sigstate-destroy.c
index 3e97e9d..4d9b081 100644
--- a/sysdeps/mach/hurd/htl/pt-sigstate-destroy.c
+++ b/sysdeps/mach/hurd/htl/pt-sigstate-destroy.c
@@ -26,3 +26,4 @@ __pthread_sigstate_destroy (struct __pthread *thread)
{
_hurd_sigstate_delete (thread->kernel_thread);
}
+libc_hidden_def (__pthread_sigstate_destroy)