aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_kill.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-12-03 11:43:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-26 13:37:18 -0300
commitb76658451c819c87adb2e7055b19e7600acc2ae6 (patch)
tree0bc61cabe01aa55d33dc1eda7db22912312aa7c8 /nptl/pthread_kill.c
parentdd10230fd89503a709466d45d2a8a2bd865efb5b (diff)
downloadglibc-b76658451c819c87adb2e7055b19e7600acc2ae6.tar.xz
glibc-b76658451c819c87adb2e7055b19e7600acc2ae6.zip
nptl: Move pthread_kill to libc
A new 2.34 version is also provided. Checked on x86_64-linux-gnu.
Diffstat (limited to 'nptl/pthread_kill.c')
-rw-r--r--nptl/pthread_kill.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nptl/pthread_kill.c b/nptl/pthread_kill.c
index 84b40478aa..ad7e011779 100644
--- a/nptl/pthread_kill.c
+++ b/nptl/pthread_kill.c
@@ -18,6 +18,7 @@
#include <unistd.h>
#include <pthreadP.h>
+#include <shlib-compat.h>
int
__pthread_kill (pthread_t threadid, int signo)
@@ -43,4 +44,8 @@ __pthread_kill (pthread_t threadid, int signo)
return (INTERNAL_SYSCALL_ERROR_P (val)
? INTERNAL_SYSCALL_ERRNO (val) : 0);
}
-strong_alias (__pthread_kill, pthread_kill)
+versioned_symbol (libc, __pthread_kill, pthread_kill, GLIBC_2_34);
+
+#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
+compat_symbol (libc, __pthread_kill, pthread_kill, GLIBC_2_0);
+#endif