aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-15 15:34:42 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-26 13:37:18 -0300
commit70a1e36cbea1463325933a5e622da7bd66a9bdab (patch)
tree982c99993015f743a9bf190a63c47250a64385c2 /nptl
parentff1e342cd1c20d7e21ab77e67414f67feb9ac197 (diff)
downloadglibc-70a1e36cbea1463325933a5e622da7bd66a9bdab.zip
glibc-70a1e36cbea1463325933a5e622da7bd66a9bdab.tar.gz
glibc-70a1e36cbea1463325933a5e622da7bd66a9bdab.tar.bz2
nptl: Move sigaction to libc
The libc version is identical and built with same flags. Checked on x86_64-linux-gnu.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile2
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/sigaction.c33
3 files changed, 0 insertions, 37 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index dc56002..e2528c9 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -212,8 +212,6 @@ libpthread-routines = \
sem_timedwait \
sem_unlink \
sem_wait \
- sigaction \
- libc_sigaction \
tpp \
unwind \
unwind-forcedunwind \
diff --git a/nptl/Versions b/nptl/Versions
index 697982b..fdabab0 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -122,7 +122,6 @@ libpthread {
__pthread_mutexattr_settype;
__pthread_once;
__pthread_setspecific;
- __sigaction;
_exit;
_pthread_cleanup_pop;
_pthread_cleanup_pop_restore;
@@ -167,7 +166,6 @@ libpthread {
sem_post;
sem_trywait;
sem_wait;
- sigaction;
siglongjmp;
}
diff --git a/nptl/sigaction.c b/nptl/sigaction.c
deleted file mode 100644
index 3de724b..0000000
--- a/nptl/sigaction.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* 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 <internal-signals.h>
-
-int
-__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
-{
- if (sig <= 0 || sig >= NSIG || __is_internal_signal (sig))
- {
- __set_errno (EINVAL);
- return -1;
- }
-
- return __libc_sigaction (sig, act, oact);
-}
-libc_hidden_weak (__sigaction)
-weak_alias (__sigaction, sigaction)