#ifndef _SIGNAL_H #define _SIGNAL_H #include typedef unsigned long int __sigset_t; #ifndef sigset_t typedef __sigset_t sigset_t; #endif #ifndef sig_atomic_t typedef int sig_atomic_t; #endif #ifdef __cplusplus extern "C" { #endif enum Signals { SIGHUP = 1, SIGINT, SIGQUIT, SIGILL, SIGABRT, SIGFPE, SIGKILL, SIGSEGV, SIGPIPE, }; void (*signal(int sig, void (*func)(int)))(int); int tgkill(pid_t tgid, pid_t tid, int sig); int kill(pid_t pid, int sig); #ifdef __cplusplus } #endif #endif