mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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>
This commit is contained in:
@ -22,7 +22,6 @@
|
|||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
|
|
||||||
|
|
||||||
#ifdef __NR_sigaltstack
|
|
||||||
int
|
int
|
||||||
sigstack (struct sigstack *ss, struct sigstack *oss)
|
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.")
|
link_warning (sigstack, "the `sigstack' function is dangerous. `sigaltstack' should be used instead.")
|
||||||
#else
|
|
||||||
# include <signal/sigstack.c>
|
|
||||||
#endif
|
|
||||||
|
Reference in New Issue
Block a user