mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
signal: Add __libc_sigaction
The generic implementation basically handle the system agnostic logic (filtering out the invalid signals) while the __libc_sigaction is the function with implements the system and architecture bits. Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <internal-signals.h>
|
||||
|
||||
/* If ACT is not NULL, change the action for SIG to *ACT.
|
||||
If OACT is not NULL, put the old action for SIG in *OACT. */
|
||||
@@ -30,10 +30,7 @@ __sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
|
||||
return -1;
|
||||
}
|
||||
|
||||
__set_errno (ENOSYS);
|
||||
return -1;
|
||||
return __libc_sigaction (sig, act, oact);
|
||||
}
|
||||
libc_hidden_def (__sigaction)
|
||||
stub_warning (sigaction)
|
||||
|
||||
weak_alias (__sigaction, sigaction)
|
||||
|
Reference in New Issue
Block a user