From a894053318f1ca246d13bb9efa65bd702df6b63e Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 15 Mar 2021 15:23:40 -0300 Subject: 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. --- signal/sigaction.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'signal/sigaction.c') diff --git a/signal/sigaction.c b/signal/sigaction.c index 3bfc17945c..8d9f755ccc 100644 --- a/signal/sigaction.c +++ b/signal/sigaction.c @@ -17,7 +17,7 @@ #include #include - +#include /* 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) -- cgit 1.4.1