[PATCH 1/3] htl: move __pthread_sigstate_destroy into libc.
gfleury
gfleury@disroot.org
Thu Dec 12 22:06:10 GMT 2024
---
htl/Makefile | 2 +-
htl/Versions | 1 +
htl/pt-internal.h | 1 +
sysdeps/mach/hurd/htl/pt-sigstate-destroy.c | 1 +
4 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/htl/Makefile b/htl/Makefile
index b0bc0d97..4c996a9e 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 33a3cfa7..388e6169 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 23fdb73f..6bf18950 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 3e97e9d9..4d9b0812 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)
--
2.39.5
More information about the Libc-alpha
mailing list