signal.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. #ifndef _SIGNAL_H
  7. #define _SIGNAL_H
  8. #ifdef __BSD4_2
  9. #define _NSIG 32 /* number of signals used */
  10. #else
  11. #define _NSIG 16 /* number of signals used */
  12. #endif
  13. #define NSIG _NSIG
  14. #define SIGHUP 1 /* hangup */
  15. #define SIGINT 2 /* interrupt (DEL) */
  16. #define SIGQUIT 3 /* quit (ASCII FS) */
  17. #define SIGILL 4 /* illegal instruction */
  18. #define SIGTRAP 5 /* trace trap (not reset when caught) */
  19. #define SIGABRT 6 /* IOT instruction */
  20. #define SIGIOT 6 /* SIGABRT for people who speak PDP-11 */
  21. #define SIGEMT 7 /* EMT instruction */
  22. #define SIGFPE 8 /* floating point exception */
  23. #define SIGKILL 9 /* kill (cannot be caught or ignored) */
  24. #define SIGBUS 10 /* bus error */
  25. #define SIGSEGV 11 /* segmentation violation */
  26. #define SIGSYS 12 /* bad argument to system call */
  27. #define SIGPIPE 13 /* write on a pipe with no one to read it */
  28. #define SIGALRM 14 /* alarm clock */
  29. #define SIGTERM 15 /* software termination signal from kill */
  30. #ifdef __BSD4_2
  31. #define SIGURG 16 /* urgent condition on IO channel */
  32. #define SIGCHLD 20 /* child process terminated or stopped */
  33. #define SIGCONT 19 /* continue if stopped */
  34. #define SIGSTOP 17 /* stop signal */
  35. #define SIGTSTP 18 /* interactive stop signal */
  36. #define SIGTTIN 21 /* background process wants to read */
  37. #define SIGTTOU 22 /* background process wants to write */
  38. #define SIGIO 23 /* input/output possible signal */
  39. #define SIGPOLL SIGIO /* System V name for SIGIO */
  40. #define SIGXCPU 24 /* exceeded CPU time limit */
  41. #define SIGXFSZ 25 /* exceeded file size limit */
  42. #define SIGVTALRM 26 /* virtual time alarm */
  43. #define SIGPROF 27 /* profiling time alarm */
  44. #define SIGWINCH 28 /* window changed */
  45. #define SIGLOST 29 /* resource lost (eg, record-lock lost) */
  46. #define SIGUSR1 30 /* user defined signal 1 */
  47. #define SIGUSR2 31 /* user defined signal 2 */
  48. #endif
  49. #define SIG_DFL ((void (*)())0) /* default signal handling */
  50. #define SIG_IGN ((void (*)())1) /* ignore signal */
  51. #define SIG_ERR ((void (*)())-1)
  52. void (*signal()) ();
  53. #endif /* _SIGNAL_H */