diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-12-03 16:45:53 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-26 13:37:18 -0300 |
commit | ff1e342cd1c20d7e21ab77e67414f67feb9ac197 (patch) | |
tree | 059076ff82d667e70579664c5604cc362956830b /nptl | |
parent | b76658451c819c87adb2e7055b19e7600acc2ae6 (diff) | |
download | glibc-ff1e342cd1c20d7e21ab77e67414f67feb9ac197.zip glibc-ff1e342cd1c20d7e21ab77e67414f67feb9ac197.tar.gz glibc-ff1e342cd1c20d7e21ab77e67414f67feb9ac197.tar.bz2 |
nptl: Remove pthread raise implementation
The Linux version already target the current thread by using tgkill
along with getpid and gettid.
For arm, libpthread does not do a intra PLT since it will call the
raise from libc.
Checked on x86_64-linux-gnu.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/Makefile | 1 | ||||
-rw-r--r-- | nptl/Versions | 1 | ||||
-rw-r--r-- | nptl/pt-raise.c | 29 |
3 files changed, 0 insertions, 31 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 1e01d8e..dc56002 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -103,7 +103,6 @@ libpthread-routines = \ pt-cleanup \ pt-interp \ pt-longjmp \ - pt-raise \ pthread_attr_getaffinity \ pthread_attr_getguardsize \ pthread_attr_getstack \ diff --git a/nptl/Versions b/nptl/Versions index 4b91eac..697982b 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -161,7 +161,6 @@ libpthread { pthread_setspecific; pthread_sigmask; pthread_testcancel; - raise; sem_destroy; sem_getvalue; sem_init; diff --git a/nptl/pt-raise.c b/nptl/pt-raise.c deleted file mode 100644 index 711c870..0000000 --- a/nptl/pt-raise.c +++ /dev/null @@ -1,29 +0,0 @@ -/* ISO C raise function for libpthread. - Copyright (C) 2002-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <https://www.gnu.org/licenses/>. */ - -#include <pthread.h> -#include <signal.h> - - -int -raise (int sig) -{ - /* This is what POSIX says must happen. */ - return pthread_kill (pthread_self (), sig); -} |