1
0
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:
Adhemerval Zanella
2021-03-15 15:23:40 -03:00
parent d5ddd583da
commit a894053318
14 changed files with 48 additions and 23 deletions

View File

@@ -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)