toaruos/libc/signal/kill.c
2021-05-31 10:54:11 +09:00

12 lines
200 B
C

#include <signal.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL2(kill, SYS_KILL, int, int);
int kill(int pid, int sig) {
__sets_errno(syscall_kill(pid, sig));
}