toaruos/libc/signal/sigaction.c
2022-08-06 18:19:27 +09:00

12 lines
311 B
C

#include <sys/signal.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL3(sigaction, SYS_SIGACTION, int, struct sigaction*, struct sigaction*);
int sigaction(int signum, struct sigaction *act, struct sigaction *oldact) {
__sets_errno(syscall_sigaction(signum, act, oldact));
}