home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c329 / 2.img / INCL_A / SIGNAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-23  |  1.4 KB  |  60 lines

  1. /*  signal.h
  2.  *  ANSI C Runtime Library
  3.  */
  4.  
  5. #ifndef _SIGNAL_H
  6. #define _SIGNAL_H
  7.  
  8. typedef int sig_atomic_t;
  9.  
  10. #define SIG_DFL         ((void (*)(int)) 0)
  11. #define SIG_IGN         ((void (*)(int)) 1)
  12. #define SIG_ERR         ((void (*)(int)) (-1))
  13.  
  14. #define SIGINT          2
  15. #define SIGILL          4
  16. #define SIGABRT         6
  17. #define SIGFPE          8
  18. #define SIGSEGV         11
  19. #define SIGTERM         15
  20.  
  21. /* standard bsd signals in addition to these */
  22. #define SIGHUP          1
  23. /* SIGINT */
  24. #define SIGQUIT         3
  25. /* SIGILL */
  26. #define SIGTRAP         5
  27. #define SIGIOT          SIGABRT
  28. #define SIGEMT          7
  29. /* SIGFPE */
  30. #define SIGKILL         9
  31. #define SIGBUS          10
  32. /* SIGSEGV */
  33. #define SIGSYS          12
  34. #define SIGPIPE         13
  35. #define SIGALRM         14
  36. /* SIGTERM */
  37. #define SIGURG          17
  38. #define SIGSTOP         18
  39. #define SIGTSTP         19
  40. #define SIGCONT         20
  41. #define SIGCHLD         21
  42. #define SIGCLD          SIGCHLD
  43. #define SIGTTIN         22
  44. #define SIGTTOU         23
  45. #define SIGIO           24
  46. #define SIGXCPU         25
  47. #define SIGXTIM         26
  48. #define SIGXFSZ         27
  49. #define SIGVTALRM       28
  50. #define SIGPROF         29
  51. #define SIGWINCH        30
  52. #define SIGUSR1         31
  53. #define SIGUSR2         32
  54.  
  55. #define _SIGMAX         SIGUSR2
  56.  
  57. void (*signal(int sig, void (*func)(int)))(int);
  58. int raise(int sig);
  59. #endif  /* _SIGNAL_H */
  60.