diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-05-28 14:56:06 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-05-28 14:56:06 -0400 |
commit | b4cd7036bea6c6440fbbcdaebe53c864c87a5646 (patch) | |
tree | 260670ad9a9637c8c36d84b9cf77ec412017b038 /src/signal/sigaction.c | |
parent | a69b11fd8974a898a26081950bd4add7c82ea45d (diff) |
integrate jkmalloc/prep for readonly
Diffstat (limited to 'src/signal/sigaction.c')
-rw-r--r-- | src/signal/sigaction.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/signal/sigaction.c b/src/signal/sigaction.c index f95301e9..1e9db8cb 100644 --- a/src/signal/sigaction.c +++ b/src/signal/sigaction.c @@ -1,9 +1,8 @@ -#if 0 #include <stddef.h> -#include <sys/types.h> #include <signal.h> #include "_syscall.h" +#include "_safety.h" int sigaction(int sig, const struct sigaction * restrict act, struct sigaction * restrict oact) { @@ -12,7 +11,7 @@ int sigaction(int sig, const struct sigaction * restrict act, struct sigaction * struct linux_action { union { void (*handler)(int); - void (*action)(int, struct sigaction *, void *); + void (*action)(int, siginfo_t *, void *); } fn; unsigned long flags; void (*restorer)(void); @@ -27,6 +26,7 @@ int sigaction(int sig, const struct sigaction * restrict act, struct sigaction * #ifdef SA_SIGINFO if (act->sa_flags & SA_SIGINFO) { a.fn.action = act->sa_sigaction; + } #endif a.flags = act->sa_flags; @@ -51,6 +51,3 @@ int sigaction(int sig, const struct sigaction * restrict act, struct sigaction * /* POSIX(1) */ - - -#endif |