home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  2.2 KB  |  70 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8.  
  9. #ident    "@(#)head.sys:signal.h    1.3.1.1"
  10.  
  11. #define    SIGHUP    1    /* hangup */
  12. #define    SIGINT    2    /* interrupt (rubout) */
  13. #define    SIGQUIT    3    /* quit (ASCII FS) */
  14. #define    SIGILL    4    /* illegal instruction (not reset when caught)*/
  15. #define    SIGTRAP    5    /* trace trap (not reset when caught) */
  16. #define    SIGIOT    6    /* IOT instruction */
  17. #define SIGABRT 6    /* used by abort, replace SIGIOT in the  future */
  18. #define    SIGEMT    7    /* EMT instruction */
  19. #define    SIGFPE    8    /* floating point exception */
  20. #define    SIGKILL    9    /* kill (cannot be caught or ignored) */
  21. #define    SIGBUS    10    /* bus error */
  22. #define    SIGSEGV    11    /* segmentation violation */
  23. #define    SIGSYS    12    /* bad argument to system call */
  24. #define    SIGPIPE    13    /* write on a pipe with no one to read it */
  25. #define    SIGALRM    14    /* alarm clock */
  26. #define    SIGTERM    15    /* software termination signal from kill */
  27. #define    SIGUSR1    16    /* user defined signal 1 */
  28. #define    SIGUSR2    17    /* user defined signal 2 */
  29. #define    SIGCLD    18    /* death of a child */
  30. #define    SIGPWR    19    /* power-fail restart */
  31. #define SIGWINCH 20    /* window change */
  32.  
  33.             /* SIGPHONE only used in UNIX/PC */
  34. /*#define SIGPHONE 21*/    /* handset, line status change */
  35.  
  36. #define SIGPOLL 22    /* pollable event occured */
  37.  
  38. #define    NSIG    23    /* The valid signal number is from 1 to NSIG-1 */
  39. #define MAXSIG    32    /* size of u_signal[], NSIG-1 <= MAXSIG*/
  40.             /* MAXSIG is larger than we need now. */
  41.             /* In the future, we can add more signal */
  42.             /* number without changing user.h */
  43.  
  44. #if lint
  45. #define SIG_ERR (void(*)())0
  46. #else
  47. #define SIG_ERR    (void(*)())-1
  48. #endif
  49. #define    SIG_DFL    (void(*)())0
  50. #if lint
  51. #define    SIG_IGN    (void (*)())0
  52. #else
  53. #define    SIG_IGN    (void (*)())1
  54. #endif
  55. #if lint
  56. #define SIG_HOLD (void(*)())0
  57. #else
  58. #define SIG_HOLD (void(*)())2
  59. #endif
  60.  
  61. /* The following definitions are only used by kernel */
  62. #ifdef INKERNEL
  63. #define SIGNO_MASK    0xff
  64. #define SIGDEFER    0x100
  65. #define SIGHOLD        0x200
  66. #define SIGRELSE    0x400
  67. #define SIGIGNORE    0x800
  68. #define SIGPAUSE    0x1000
  69. #endif
  70.