summaryrefslogtreecommitdiff
path: root/nptl/pt-raise.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-12-03 16:45:53 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-26 13:37:18 -0300
commitff1e342cd1c20d7e21ab77e67414f67feb9ac197 (patch)
tree059076ff82d667e70579664c5604cc362956830b /nptl/pt-raise.c
parentb76658451c819c87adb2e7055b19e7600acc2ae6 (diff)
downloadglibc-ff1e342cd1c20d7e21ab77e67414f67feb9ac197.tar.gz
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/pt-raise.c')
-rw-r--r--nptl/pt-raise.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/nptl/pt-raise.c b/nptl/pt-raise.c
deleted file mode 100644
index 711c870fab..0000000000
--- 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);
-}