toaruos/libc/signal/signal.c

11 lines
320 B
C
Raw Normal View History

#include <signal.h>
#include <syscall.h>
#include <syscall_nums.h>
2021-05-31 04:47:02 +03:00
DEFN_SYSCALL2(signal, SYS_SIGNAL, int, void *);
/* XXX This syscall interface is screwy, doesn't allow for good errno handling */
sighandler_t signal(int signum, sighandler_t handler) {
return (sighandler_t)syscall_signal(signum, (void *)handler);
}