home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / glibc-1.06 / sysdeps / unix / bsd / signum.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-15  |  3.0 KB  |  68 lines

  1. /* Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  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 4.2 or 4.3 BSD-derived Unix system.  */
  23.  
  24. /* Fake signal functions.  */
  25. #define    SIG_ERR    ((__sighandler_t) -1) /* Error return.  */
  26. #define    SIG_DFL    ((__sighandler_t) 0) /* Default action.  */
  27. #define    SIG_IGN    ((__sighandler_t) 1) /* Ignore signal.  */
  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 (4.2 BSD).  */
  38. #define    SIGEMT        7    /* EMT trap (4.2 BSD).  */
  39. #define    SIGFPE        8    /* Floating-point exception (ANSI).  */
  40. #define    SIGKILL        9    /* Kill, unblockable (POSIX).  */
  41. #define    SIGBUS        10    /* Bus error (4.2 BSD).  */
  42. #define    SIGSEGV        11    /* Segmentation violation (ANSI).  */
  43. #define    SIGSYS        12    /* Bad argument to system call (4.2 BSD)*/
  44. #define    SIGPIPE        13    /* Broken pipe (POSIX).  */
  45. #define    SIGALRM        14    /* Alarm clock (POSIX).  */
  46. #define    SIGTERM        15    /* Termination (ANSI).  */
  47. #define    SIGURG        16    /* Urgent condition on socket (4.2 BSD).*/
  48. #define    SIGSTOP        17    /* Stop, unblockable (POSIX).  */
  49. #define    SIGTSTP        18    /* Keyboard stop (POSIX).  */
  50. #define    SIGCONT        19    /* Continue (POSIX).  */
  51. #define    SIGCHLD        20    /* Child status has changed (POSIX).  */
  52. #define    SIGCLD        SIGCHLD    /* Same as SIGCHLD (System V).  */
  53. #define    SIGTTIN        21    /* Background read from tty (POSIX).  */
  54. #define    SIGTTOU        22    /* Background write to tty (POSIX).  */
  55. #define    SIGIO        23    /* I/O now possible (4.2 BSD).  */
  56. #define    SIGPOLL        SIGIO    /* Same as SIGIO? (SVID).  */
  57. #define    SIGXCPU        24    /* CPU limit exceeded (4.2 BSD).  */
  58. #define    SIGXFSZ        25    /* File size limit exceeded (4.2 BSD).  */
  59. #define    SIGVTALRM    26    /* Virtual alarm clock (4.2 BSD).  */
  60. #define    SIGPROF        27    /* Profiling alarm clock (4.2 BSD).  */
  61. #define    SIGWINCH    28    /* Window size change (4.3 BSD, Sun).  */
  62. #define    SIGUSR1        30    /* User-defined signal 1 (POSIX).  */
  63. #define    SIGUSR2        31    /* User-defined signal 2 (POSIX).  */
  64.  
  65. #endif    /* <signal.h> included.  */
  66.  
  67. #define    _NSIG        32    /* Biggest signal number + 1.  */
  68.