toaruos/libc/signal/kill.c

12 lines
200 B
C
Raw Normal View History

#include <signal.h>
#include <syscall.h>
#include <syscall_nums.h>
2018-10-08 04:23:10 +03:00
#include <errno.h>
2021-05-31 04:47:02 +03:00
DEFN_SYSCALL2(kill, SYS_KILL, int, int);
int kill(int pid, int sig) {
2021-05-31 04:47:02 +03:00
__sets_errno(syscall_kill(pid, sig));
}