#include #include #include /* Send a signal to a process */ sighandler_t signal(int signum, sighandler_t handler) { sighandler_t ret; asm volatile("int $0x80" : "=a" (ret) : "0" (SYSCALL_SIGNAL), "c" (2), "S" (&signum)); if ((int) ret >= 0) return ret; errno = -((int) ret); return SIG_ERR; }