home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mint095b.zoo / doc / signal.h < prev    next >
C/C++ Source or Header  |  1992-05-17  |  2KB  |  61 lines

  1. #ifndef _SIGNAL_H
  2. #define _SIGNAL_H
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. #define    NSIG        31        /* number of signals recognized */
  9.  
  10. #define    SIGNULL        0        /* not really a signal */
  11. #define SIGHUP        1        /* hangup signal */
  12. #define SIGINT        2        /* sent by ^C */
  13. #define SIGQUIT        3        /* quit signal */
  14. #define SIGILL        4        /* illegal instruction */
  15. #define SIGTRAP        5        /* trace trap */
  16. #define SIGABRT        6        /* abort signal */
  17. #define SIGPRIV        7        /* privilege violation */
  18. #define SIGFPE        8        /* divide by zero */
  19. #define SIGKILL        9        /* cannot be ignored */
  20. #define SIGBUS        10        /* bus error */
  21. #define SIGSEGV        11        /* illegal memory reference */
  22. #define SIGSYS        12        /* bad argument to a system call */
  23. #define SIGPIPE        13        /* broken pipe */
  24. #define SIGALRM        14        /* alarm clock */
  25. #define SIGTERM        15        /* software termination signal */
  26.  
  27. #define SIGURG        16        /* urgent condition on I/O channel */
  28. #define SIGSTOP        17        /* stop signal not from terminal */
  29. #define SIGTSTP        18        /* stop signal from terminal */
  30. #define SIGCONT        19        /* continue stopped process */
  31. #define SIGCHLD        20        /* child stopped or exited */
  32. #define SIGTTIN        21        /* read by background process */
  33. #define SIGTTOU        22        /* write by background process */
  34. #define SIGIO        23        /* I/O possible on a descriptor */
  35. #define SIGXCPU        24        /* CPU time exhausted */
  36. #define SIGXFSZ        25        /* file size limited exceeded */
  37. #define SIGVTALRM    26        /* virtual timer alarm */
  38. #define SIGPROF        27        /* profiling timer expired */
  39. #define SIGWINCH    28        /* window size changed */
  40. #define SIGUSR1        29        /* user signal 1 */
  41. #define SIGUSR2        30        /* user signal 2 */
  42.  
  43. #define       SIG_DFL    0
  44. #define       SIG_IGN    1
  45.  
  46. /* sigaction: extended POSIX signal handling facility */
  47.  
  48. struct sigaction {
  49.     ulong    sa_handler;    /* pointer to signal handler */
  50.     ulong    sa_mask;    /* additional signals masked during delivery */
  51.     ushort    sa_flags;    /* signal specific flags */
  52. /* signal flags */
  53. #define SA_NOCLDSTOP    1    /* don't send SIGCHLD when child stops */
  54. };
  55.  
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60. #endif /* _SIGNAL_H */
  61.