[glibc] Linux: sigaltstack syscall number is always available
Florian Weimer
fw@sourceware.org
Tue Mar 3 13:26:00 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1a5f1153a770a6f244f4a0eee0441033a1857990
commit 1a5f1153a770a6f244f4a0eee0441033a1857990
Author: Florian Weimer <fweimer@redhat.com>
Date: Tue Mar 3 12:13:29 2020 +0100
Linux: sigaltstack syscall number is always available
Due to the built-in tables, __NR_sigaltstack is always defined.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diff:
---
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 2f75e26..32a378b 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
More information about the Glibc-cvs
mailing list