home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-09  |  2.1 KB  |  80 lines

  1. /*
  2.  *    @(#) signal.h 2.4 88/08/09 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. /***    signal.h
  12.  */
  13.  
  14. /*
  15.  * No more than 32 signals (1-32) because they are
  16.  * stored in bits in a long.
  17.  */
  18.  
  19. #define    SIGHUP    1    /* hangup */
  20. #define    SIGINT    2    /* interrupt (rubout) */
  21. #define    SIGQUIT    3    /* quit (ASCII FS) */
  22. #define    SIGILL    4    /* illegal instruction (not reset when caught) */
  23. #define    SIGTRAP    5    /* trace trap (not reset when caught) */
  24. #define    SIGIOT    6    /* IOT instruction */
  25. #define    SIGABRT    SIGIOT
  26. #define    SIGEMT    7    /* EMT instruction */
  27. #define    SIGFPE    8    /* floating point exception */
  28. #define    SIGKILL    9    /* kill (cannot be caught or ignored) */
  29. #define    SIGBUS    10    /* bus error */
  30. #define    SIGSEGV    11    /* segmentation violation */
  31. #define    SIGSYS    12    /* bad argument to system call */
  32. #define    SIGPIPE    13    /* write on a pipe with no one to read it */
  33. #define    SIGALRM    14    /* alarm clock */
  34. #define    SIGTERM    15    /* software termination signal from kill */
  35. #define    SIGUSR1    16    /* user defined signal 1 */
  36. #define    SIGUSR2    17    /* user defined signal 2 */
  37. #define    SIGCLD    18    /* death of a child */
  38. #define    SIGPWR    19    /* power-fail restart */
  39.  
  40. #ifndef M_I386
  41. #define    NSIG    20
  42. #else
  43. #define SIGPOLL 20    /* A polled event ocurred */
  44. #define    NSIG    21
  45. #endif
  46.  
  47. #define MAXSIG    32    /* size of u_signal[], NSIG-1 <= MAXSIG*/
  48.             /* MAXSIG is larger than we need now. */
  49.             /* In the future, we can add more signal */
  50.             /* number without changing user.h */
  51.  
  52. #ifdef lint
  53. #define SIG_ERR (void(*)())0
  54. #else
  55. #define SIG_ERR    (void(*)())-1
  56. #endif
  57.  
  58. #define    SIG_DFL    (int (*)())0
  59.  
  60. #ifdef    lint
  61. #define    SIG_IGN    (int (*)())0
  62. #else
  63. #define    SIG_IGN    (int (*)())1
  64. #endif
  65. #if lint
  66. #define SIG_HOLD (void(*)())0
  67. #else
  68. #define SIG_HOLD (void(*)())2
  69. #endif
  70.  
  71. /* The following definitions are only used by kernel */
  72. #ifdef M_KERNEL
  73. #define SIGNO_MASK    0xff
  74. #define SIGDEFER    0x100
  75. #define SIGHOLD        0x200
  76. #define SIGRELSE    0x400
  77. #define SIGIGNORE    0x800
  78. #define SIGPAUSE    0x1000
  79. #endif
  80.