toaruos/libc/signal/kill.c

12 lines
224 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>
DEFN_SYSCALL2(send_signal, SYS_KILL, uint32_t, uint32_t);
int kill(int pid, int sig) {
2018-10-08 04:23:10 +03:00
__sets_errno(syscall_send_signal(pid, sig));
}