home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / unixlib / bits / h / signum < prev    next >
Encoding:
Text File  |  2006-09-17  |  2.6 KB  |  101 lines

  1. /* Signal number definitions.
  2.    Copyright (c) 2002, 2003, 2004, 2005, 2006 UnixLib Developers.  */
  3.  
  4. #ifndef __BITS_SIGNUM_H
  5. #define __BITS_SIGNUM_H
  6.  
  7. /* Keep the following in sync with asm_dec.s. */
  8. /* Hangup (POSIX).  */
  9. #define SIGHUP        1
  10. /* Interrupt (ANSI).  */
  11. #define SIGINT        2
  12. /* Quit (POSIX).  */
  13. #define SIGQUIT        3
  14. /* Illegal instruction (ANSI).  */
  15. #define SIGILL        4
  16. /* Abort (ANSI).  */
  17. #define SIGABRT        SIGIOT
  18. /* Trace trap (POSIX).  */
  19. #define SIGTRAP        5
  20. /* IOT trap (4.2 BSD).  */
  21. #define SIGIOT        6
  22. /* EMT trap (4.2 BSD).  */
  23. #define SIGEMT        7
  24. /* Stack extension failed (RISC OS Acorn C compatibility) */
  25. #define SIGSTAK        SIGEMT
  26. /* Floating-point exception (ANSI).  */
  27. #define SIGFPE        8
  28. /* Kill, unblockable (POSIX).  */
  29. #define SIGKILL        9
  30. /* Bus error (4.2 BSD).  */
  31. #define SIGBUS        10
  32. /* Segmentation violation (ANSI).  */
  33. #define SIGSEGV        11
  34. /* Bad argument to system call (4.2 BSD).  */
  35. #define SIGSYS        12
  36. /* Broken pipe (POSIX).  */
  37. #define SIGPIPE        13
  38. /* Alarm clock (POSIX).  */
  39. #define SIGALRM        14
  40. /* Termination (ANSI).  */
  41. #define SIGTERM        15
  42. /* Urgent, or out-of-band data arrives on a socket (4.2 BSD). */
  43. #define SIGURG        16
  44. /* Stop, unblockable (POSIX).  */
  45. #define SIGSTOP        17
  46. /* Keyboard stop, Ctrl-Z (POSIX).  */
  47. #define SIGTSTP        18
  48. /* Continue (POSIX).  */
  49. #define SIGCONT        19
  50. /* Child process has terminated or stopped (POSIX).  */
  51. #define SIGCHLD        20
  52. /* Obsolete name for SIGCHLD (System V).  */
  53. #define SIGCLD        SIGCHLD
  54. /* Background read from tty (POSIX).  */
  55. #define SIGTTIN        21
  56. /* Backgroung write to tty (POSIX).  */
  57. #define SIGTTOU        22
  58. /* File descriptor is ready to perform input or output (4.2 BSD).  */
  59. #define SIGIO        23
  60. /* Similar to SIGIO (System V). */
  61. #define SIGPOLL        SIGIO
  62. /* CPU time limit exceeded (4.2 BSD).  */
  63. #define SIGXCPU        24
  64. /* File size limit exceeded (4.2 BSD).  */
  65. #define SIGXFSZ        25
  66. /* Virtual alarm clock (4.2 BSD).  */
  67. #define SIGVTALRM    26
  68. /* Profiling alarm clock (4.2 BSD).  */
  69. #define SIGPROF        27
  70. /* Window size change (4.3 BSD)  */
  71. #define SIGWINCH    28
  72. /* Information request (4.4 BSD). */
  73. #define SIGINFO        29
  74. /* User-defined signal 1 (POSIX).  */
  75. #define SIGUSR1        30
  76. /* User-defined signal 2 (POSIX).  */
  77. #define SIGUSR2        31
  78. /* Resource lost.  */
  79. #define SIGLOST        32
  80. /* RISC OS error.  */
  81. #define SIGOSERROR    33
  82.  
  83. /* Total number of signals defined. This should be one greater than
  84.    the largest defined signal number.  */
  85. #define _NSIG 34
  86. #define NSIG _NSIG
  87.  
  88. /* Fake signal functions, based on the BSD versions.  */
  89.  
  90. /* Error return.  */
  91. #define SIG_ERR ((__sighandler_t) -1)
  92.  
  93. /* Default action.  */
  94. #define SIG_DFL ((__sighandler_t) 0)
  95.  
  96. /* Ignore signal.  */
  97. #define SIG_IGN ((__sighandler_t) 1)
  98.  
  99.  
  100. #endif /* __BITS_SIGNAL_H */
  101.