banan-os/libc/signal.cpp

13 lines
192 B
C++
Raw Normal View History

#include <signal.h>
#include <sys/syscall.h>
#include <unistd.h>
int raise(int sig)
{
return syscall(SYS_RAISE, sig);
2023-07-21 19:27:38 +03:00
}
int kill(pid_t pid, int sig)
{
return syscall(SYS_KILL, pid, sig);
}