signal.h 357 B

123456789101112131415161718192021
  1. #ifndef __SIGNAL
  2. #define __SIGNAL
  3. typedef int sig_atomic_t;
  4. #define SIG_DFL ((void (*)(int))0)
  5. #define SIG_ERR ((void (*)(int))-1)
  6. #define SIG_IGN ((void (*)(int))1)
  7. #define SIGABRT 6
  8. #define SIGFPE 8
  9. #define SIGILL 4
  10. #define SIGINT 2
  11. #define SIGSEGV 11
  12. #define SIGTERM 15
  13. void (*signal(int, void (*)(int)))(int);
  14. int raise(int);
  15. #endif /* __SIGNAL */