]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: move pthread_kill into libc.
authorgfleury <gfleury@disroot.org>
Fri, 15 Aug 2025 18:14:51 +0000 (20:14 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 15 Aug 2025 23:44:27 +0000 (01:44 +0200)
Message-ID: <20250815181500.107433-11-gfleury@disroot.org>

htl/Makefile
htl/Versions
sysdeps/hurd/htl/pt-kill.c
sysdeps/mach/hurd/i386/libc.abilist
sysdeps/mach/hurd/i386/libpthread.abilist
sysdeps/mach/hurd/x86_64/libc.abilist
sysdeps/mach/hurd/x86_64/libpthread.abilist

index 3ec68aa8425b1d5f39fd54e58fc799804dddbf4e..0acd3a88683e79e822ce640db037d6905f20b217 100644 (file)
@@ -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 \
index 078aa8b33a12de96f368f800b7f72512af1ec661..06977e677b2d285a46374cdc79c55ed5a304ad8c 100644 (file)
@@ -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;
index 77be247f2bb142394ff1e331be4a71150c9f92f5..f3a283f284e9a79be5d8efd4261b954b290481c7 100644 (file)
@@ -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
index 1128ca24969354ff813d20ad48836a3f6ee5d543..6056958fcd574358704d651e4f555b9822a1b58c 100644 (file)
@@ -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
index 3c7c8d939866ecc0956ce8166b9cdd3d9a675f33..afb9e6064d055f1733bd5d37a2eb9172a4026ecc 100644 (file)
@@ -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
index 8b5d0c8871c30c505c4ef622256bc1a5a01919c8..b17e1980b513029f12a5fcb97b1ed6b7935a0af1 100644 (file)
@@ -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
index f8d7ee6bfde45bdf90cd54a43934dc7802a15da4..f1fef475ad379bd7eba8b3ce103b0850977e2c49 100644 (file)
@@ -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