rusignal.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #define NSIG 32
  2. #define SIGHUP 1 /* hangup */
  3. #define SIGINT 2 /* interrupt */
  4. #define SIGQUIT 3 /* quit */
  5. #define SIGILL 4 /* illegal instruction (not reset when caught) */
  6. #define SIGTRAP 5 /* trace trap (not reset when caught) */
  7. #define SIGIOT 6 /* IOT instruction */
  8. #define SIGEMT 7 /* EMT instruction */
  9. #define SIGFPE 8 /* floating point exception */
  10. #define K_INTOVF 1 /* integer overflow */
  11. #define K_INTDIV 2 /* integer divide by zero */
  12. #define K_FLTOVF 3 /* floating overflow */
  13. #define K_FLTDIV 4 /* floating/decimal divide by zero */
  14. #define K_FLTUND 5 /* floating underflow */
  15. #define K_DECOVF 6 /* decimal overflow */
  16. #define K_SUBRNG 7 /* subscript out of range */
  17. #define SIGKILL 9 /* kill (cannot be caught or ignored) */
  18. #define SIGKIL 9
  19. #define SIGBUS 10 /* bus error */
  20. #define SIGSEGV 11 /* segmentation violation */
  21. #define SIGSYS 12 /* bad argument to system call */
  22. #define SIGPIPE 13 /* write on a pipe with no one to read it */
  23. #define SIGALRM 14 /* alarm clock */
  24. #define SIGTERM 15 /* software termination signal from kill */
  25. #define SIGSTOP 17 /* sendable stop signal not from tty */
  26. #define SIGTSTP 18 /* stop signal from tty */
  27. #define SIGCONT 19 /* continue a stopped process */
  28. #define SIGCHLD 20 /* to parent on child stop or exit */
  29. #define SIGTTIN 21 /* to readers pgrp upon background tty read */
  30. #define SIGTTOU 22 /* like TTIN for output if (tp->t_local&LTOSTOP) */
  31. #define SIGTINT 23 /* to pgrp on every input character if LINTRUP */
  32. #define SIGXCPU 24 /* exceeded CPU time limit */
  33. #define SIGXFSZ 25 /* exceeded file size limit */
  34. #define SIGLAB 26 /* file label changed; secure unix only (not reset) */