toaruos/libc/signal/sigaction.c

12 lines
311 B
C
Raw Normal View History

2022-08-06 12:03:39 +03:00
#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));
}