signal.h 1.1 KB

123456789101112131415161718192021222324
  1. #define NR_SIGS 16 /* number of signals used */
  2. #define NSIG 16 /* number of signals used */
  3. #define SIGHUP 1 /* hangup */
  4. #define SIGINT 2 /* interrupt (DEL) */
  5. #define SIGQUIT 3 /* quit (ASCII FS) */
  6. #define SIGILL 4 /* illegal instruction (not reset when caught)*/
  7. #define SIGTRAP 5 /* trace trap (not reset when caught) */
  8. #define SIGIOT 6 /* IOT instruction */
  9. #define SIGEMT 7 /* EMT instruction */
  10. #define SIGFPE 8 /* floating point exception */
  11. #define SIGKILL 9 /* kill (cannot be caught or ignored) */
  12. #define SIGBUS 10 /* bus error */
  13. #define SIGSEGV 11 /* segmentation violation */
  14. #define SIGSYS 12 /* bad argument to system call */
  15. #define SIGPIPE 13 /* write on a pipe with no one to read it */
  16. #define SIGALRM 14 /* alarm clock */
  17. #define SIGTERM 15 /* software termination signal from kill */
  18. #define STACK_FAULT 16 /* used by kernel to signal stack fault */
  19. int (*signal())();
  20. #define SIG_DFL (int (*)())0
  21. #define SIG_IGN (int (*)())1