This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 09/26] Linux: sigaltstack syscall number is always available
- From: Florian Weimer <fweimer at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Sun, 09 Feb 2020 21:20:14 +0100
- Subject: [PATCH 09/26] Linux: sigaltstack syscall number is always available
- References: <cover.1581279333.git.fweimer@redhat.com>
Due to the built-in tables, __NR_sigaltstack is always defined.
---
sysdeps/unix/sysv/linux/sigstack.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sysdeps/unix/sysv/linux/sigstack.c b/sysdeps/unix/sysv/linux/sigstack.c
index 2f75e2643a..32a378bd26 100644
--- a/sysdeps/unix/sysv/linux/sigstack.c
+++ b/sysdeps/unix/sysv/linux/sigstack.c
@@ -22,7 +22,6 @@
#include <sys/syscall.h>
-#ifdef __NR_sigaltstack
int
sigstack (struct sigstack *ss, struct sigstack *oss)
{
@@ -61,6 +60,3 @@ sigstack (struct sigstack *ss, struct sigstack *oss)
}
link_warning (sigstack, "the `sigstack' function is dangerous. `sigaltstack' should be used instead.")
-#else
-# include <signal/sigstack.c>
-#endif
--
2.24.1