home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / glibc-1.06 / sysdeps / unix / sysv / sysv4 / signum.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-24  |  2.8 KB  |  69 lines

  1. /* Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  2.    Contributed by Brendan Kehoe (brendan@cygnus.com).
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. #ifdef    _SIGNAL_H
  20.  
  21. /* This file defines the fake signal functions and signal
  22.    number constants for System V Release 4 UNIX.  */
  23.  
  24. /* Fake signal functions.  */
  25. #define    SIG_ERR    ((__sighandler_t) -1)
  26. #define    SIG_DFL    ((__sighandler_t) 0)
  27. #define    SIG_IGN    ((__sighandler_t) 1)
  28.  
  29.  
  30. /* Signals.  */
  31. #define    SIGHUP        1    /* Hangup (POSIX).  */
  32. #define    SIGINT        2    /* Interrupt (ANSI).  */
  33. #define    SIGQUIT        3    /* Quit (POSIX).  */
  34. #define    SIGILL        4    /* Illegal instruction (ANSI).  */
  35. #define    SIGABRT        SIGIOT    /* Abort (ANSI).  */
  36. #define    SIGTRAP        5    /* Trace trap (POSIX).  */
  37. #define    SIGIOT        6    /* IOT trap.  */
  38. #define    SIGEMT        7    /* EMT trap.  */
  39. #define    SIGFPE        8    /* Floating-point exception (ANSI).  */
  40. #define    SIGKILL        9    /* Kill, unblockable (POSIX).  */
  41. #define    SIGBUS        10    /* Bus error.  */
  42. #define    SIGSEGV        11    /* Segmentation violation (ANSI).  */
  43. #define    SIGSYS        12    /* Bad argument to system call*/
  44. #define    SIGPIPE        13    /* Broken pipe (POSIX).  */
  45. #define    SIGALRM        14    /* Alarm clock (POSIX).  */
  46. #define    SIGTERM        15    /* Termination (ANSI).  */
  47. #define    SIGUSR1        16    /* User-defined signal 1 (POSIX).  */
  48. #define    SIGUSR2        17    /* User-defined signal 2 (POSIX).  */
  49. #define    SIGCHLD        18    /* Child status has changed (POSIX).  */
  50. #define    SIGCLD        SIGCHLD    /* Same as SIGCHLD (System V).  */
  51. #define SIGPWR        19    /* Power going down.  */
  52. #define    SIGWINCH    20    /* Window size change.  */
  53. #define    SIGURG        21    /* Urgent condition on socket.*/
  54. #define    SIGIO        SIGPOLL    /* I/O now possible.  */
  55. #define    SIGPOLL        22    /* Same as SIGIO? (SVID).  */
  56. #define    SIGSTOP        23    /* Stop, unblockable (POSIX).  */
  57. #define    SIGTSTP        24    /* Keyboard stop (POSIX).  */
  58. #define    SIGCONT        25    /* Continue (POSIX).  */
  59. #define    SIGTTIN        26    /* Background read from tty (POSIX).  */
  60. #define    SIGTTOU        27    /* Background write to tty (POSIX).  */
  61. #define    SIGVTALRM    28    /* Virtual alarm clock.  */
  62. #define    SIGPROF        29    /* Profiling alarm clock.  */
  63. #define    SIGXCPU        30    /* CPU limit exceeded.  */
  64. #define    SIGXFSZ        31    /* File size limit exceeded.  */
  65.  
  66. #endif    /* <signal.h> included.  */
  67.  
  68. #define    _NSIG        32    /* Biggest signal number + 1.  */
  69.