aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfleury <gfleury@disroot.org>2025-08-15 20:14:51 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-08-16 01:44:27 +0200
commitedcc9ca48c803eca5ede520616fc719438cb6929 (patch)
treebc244a0e4c511e0e6c5970807cdea81993308cfa
parentde8351f4de2f8a320c6c1363cd589d82f629b4c9 (diff)
downloadglibc-edcc9ca48c803eca5ede520616fc719438cb6929.zip
glibc-edcc9ca48c803eca5ede520616fc719438cb6929.tar.gz
glibc-edcc9ca48c803eca5ede520616fc719438cb6929.tar.bz2
htl: move pthread_kill into libc.
Message-ID: <20250815181500.107433-11-gfleury@disroot.org>
-rw-r--r--htl/Makefile2
-rw-r--r--htl/Versions6
-rw-r--r--sysdeps/hurd/htl/pt-kill.c9
-rw-r--r--sysdeps/mach/hurd/i386/libc.abilist3
-rw-r--r--sysdeps/mach/hurd/i386/libpthread.abilist2
-rw-r--r--sysdeps/mach/hurd/x86_64/libc.abilist3
-rw-r--r--sysdeps/mach/hurd/x86_64/libpthread.abilist2
7 files changed, 18 insertions, 9 deletions
diff --git a/htl/Makefile b/htl/Makefile
index 3ec68aa..0acd3a8 100644
--- a/htl/Makefile
+++ b/htl/Makefile
@@ -41,7 +41,6 @@ libpthread-routines := \
pt-setup \
pt-spin \
pt-sigstate-init \
- pt-kill \
pt-getname-np \
pt-setname-np \
sem_close \
@@ -153,6 +152,7 @@ routines := \
pt-init-specific \
pt-key-create \
pt-key-delete \
+ pt-kill \
pt-machdep \
pt-mutex-checklocked \
pt-mutex-consistent \
diff --git a/htl/Versions b/htl/Versions
index 078aa8b..06977e6 100644
--- a/htl/Versions
+++ b/htl/Versions
@@ -4,6 +4,7 @@ libc {
pthread_self;
__pthread_get_cleanup_stack;
__pthread_key_create;
+ __pthread_kill;
__pthread_self;
pthread_attr_getdetachstate;
pthread_attr_getinheritsched;
@@ -53,6 +54,7 @@ libc {
pthread_getconcurrency;
pthread_key_create;
pthread_key_delete;
+ pthread_kill;
pthread_mutex_destroy;
pthread_mutex_getprioceiling;
pthread_mutex_init;
@@ -196,6 +198,7 @@ libc {
pthread_cancel;
pthread_getconcurrency;
pthread_getcpuclockid;
+ pthread_kill;
pthread_setconcurrency;
pthread_setschedprio;
pthread_yield;
@@ -291,9 +294,6 @@ libpthread {
pthread_join;
- pthread_kill;
- __pthread_kill;
-
pthread_mutex_transfer_np;
pthread_testcancel;
diff --git a/sysdeps/hurd/htl/pt-kill.c b/sysdeps/hurd/htl/pt-kill.c
index 77be247..f3a283f 100644
--- a/sysdeps/hurd/htl/pt-kill.c
+++ b/sysdeps/hurd/htl/pt-kill.c
@@ -22,6 +22,8 @@
#include <hurd/signal.h>
#include <pt-internal.h>
+#include <shlib-compat.h>
+#include <ldsodefs.h>
int
__pthread_kill (pthread_t thread, int sig)
@@ -52,4 +54,9 @@ __pthread_kill (pthread_t thread, int sig)
__spin_lock (&ss->lock);
return _hurd_raise_signal (ss, sig, &detail);
}
-strong_alias (__pthread_kill, pthread_kill)
+
+versioned_symbol (libc, __pthread_kill, pthread_kill, GLIBC_2_43);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
+compat_symbol (libpthread, __pthread_kill, pthread_kill, GLIBC_2_12);
+#endif
diff --git a/sysdeps/mach/hurd/i386/libc.abilist b/sysdeps/mach/hurd/i386/libc.abilist
index 1128ca2..6056958 100644
--- a/sysdeps/mach/hurd/i386/libc.abilist
+++ b/sysdeps/mach/hurd/i386/libc.abilist
@@ -30,6 +30,7 @@ GLIBC_2.11 mkstemps F
GLIBC_2.11 mkstemps64 F
GLIBC_2.12 __pthread_get_cleanup_stack F
GLIBC_2.12 __pthread_key_create F
+GLIBC_2.12 __pthread_kill F
GLIBC_2.12 __pthread_self F
GLIBC_2.12 pthread_attr_destroy F
GLIBC_2.12 pthread_attr_getdetachstate F
@@ -78,6 +79,7 @@ GLIBC_2.12 pthread_getschedparam F
GLIBC_2.12 pthread_getspecific F
GLIBC_2.12 pthread_key_create F
GLIBC_2.12 pthread_key_delete F
+GLIBC_2.12 pthread_kill F
GLIBC_2.12 pthread_mutex_destroy F
GLIBC_2.12 pthread_mutex_getprioceiling F
GLIBC_2.12 pthread_mutex_init F
@@ -2642,6 +2644,7 @@ GLIBC_2.42 ullabs F
GLIBC_2.43 pthread_cancel F
GLIBC_2.43 pthread_getconcurrency F
GLIBC_2.43 pthread_getcpuclockid F
+GLIBC_2.43 pthread_kill F
GLIBC_2.43 pthread_setconcurrency F
GLIBC_2.43 pthread_setschedprio F
GLIBC_2.43 pthread_yield F
diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist
index 3c7c8d9..afb9e60 100644
--- a/sysdeps/mach/hurd/i386/libpthread.abilist
+++ b/sysdeps/mach/hurd/i386/libpthread.abilist
@@ -1,6 +1,5 @@
GLIBC_2.12 __mutex_lock_solid F
GLIBC_2.12 __mutex_unlock_solid F
-GLIBC_2.12 __pthread_kill F
GLIBC_2.12 __pthread_mutex_transfer_np F
GLIBC_2.12 __pthread_spin_destroy F
GLIBC_2.12 __pthread_spin_init F
@@ -25,7 +24,6 @@ GLIBC_2.12 pthread_detach F
GLIBC_2.12 pthread_exit F
GLIBC_2.12 pthread_getattr_np F
GLIBC_2.12 pthread_join F
-GLIBC_2.12 pthread_kill F
GLIBC_2.12 pthread_mutex_transfer_np F
GLIBC_2.12 pthread_spin_destroy F
GLIBC_2.12 pthread_spin_init F
diff --git a/sysdeps/mach/hurd/x86_64/libc.abilist b/sysdeps/mach/hurd/x86_64/libc.abilist
index 8b5d0c8..b17e198 100644
--- a/sysdeps/mach/hurd/x86_64/libc.abilist
+++ b/sysdeps/mach/hurd/x86_64/libc.abilist
@@ -393,6 +393,7 @@ GLIBC_2.38 __progname D 0x8
GLIBC_2.38 __progname_full D 0x8
GLIBC_2.38 __pthread_get_cleanup_stack F
GLIBC_2.38 __pthread_key_create F
+GLIBC_2.38 __pthread_kill F
GLIBC_2.38 __pthread_self F
GLIBC_2.38 __ptsname_r_chk F
GLIBC_2.38 __pwrite64 F
@@ -1561,6 +1562,7 @@ GLIBC_2.38 pthread_getschedparam F
GLIBC_2.38 pthread_getspecific F
GLIBC_2.38 pthread_key_create F
GLIBC_2.38 pthread_key_delete F
+GLIBC_2.38 pthread_kill F
GLIBC_2.38 pthread_mutex_clocklock F
GLIBC_2.38 pthread_mutex_consistent F
GLIBC_2.38 pthread_mutex_consistent_np F
@@ -2324,6 +2326,7 @@ GLIBC_2.42 ullabs F
GLIBC_2.43 pthread_cancel F
GLIBC_2.43 pthread_getconcurrency F
GLIBC_2.43 pthread_getcpuclockid F
+GLIBC_2.43 pthread_kill F
GLIBC_2.43 pthread_setconcurrency F
GLIBC_2.43 pthread_setschedprio F
GLIBC_2.43 pthread_yield F
diff --git a/sysdeps/mach/hurd/x86_64/libpthread.abilist b/sysdeps/mach/hurd/x86_64/libpthread.abilist
index f8d7ee6..f1fef47 100644
--- a/sysdeps/mach/hurd/x86_64/libpthread.abilist
+++ b/sysdeps/mach/hurd/x86_64/libpthread.abilist
@@ -5,7 +5,6 @@ GLIBC_2.38 __errno_location F
GLIBC_2.38 __h_errno_location F
GLIBC_2.38 __mutex_lock_solid F
GLIBC_2.38 __mutex_unlock_solid F
-GLIBC_2.38 __pthread_kill F
GLIBC_2.38 __pthread_mutex_transfer_np F
GLIBC_2.38 __pthread_spin_destroy F
GLIBC_2.38 __pthread_spin_init F
@@ -45,7 +44,6 @@ GLIBC_2.38 pthread_getattr_np F
GLIBC_2.38 pthread_hurd_cond_timedwait_np F
GLIBC_2.38 pthread_hurd_cond_wait_np F
GLIBC_2.38 pthread_join F
-GLIBC_2.38 pthread_kill F
GLIBC_2.38 pthread_mutex_transfer_np F
GLIBC_2.38 pthread_spin_destroy F
GLIBC_2.38 pthread_spin_init F