home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / glibc-1.06 / sysdeps / stub / signum.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-12  |  2.0 KB  |  57 lines

  1. /* Copyright (C) 1991 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. /* Fake signal functions.  */
  22. extern void EXFUN(_sig_ign, (int sig));
  23. extern void EXFUN(_sig_dfl, (int sig));
  24.  
  25. #define    SIG_ERR    /* Error return.  */    \
  26.     ((void EXFUN((*), (int sig))) 0)
  27. #define    SIG_DFL    /* Default action.  */    \
  28.     _sig_dfl
  29. #define    SIG_IGN    /* Ignore signal.  */    \
  30.     _sig_ign
  31.  
  32.  
  33. /* ANSI signals.  */
  34. #define    SIGABRT    1    /* Abnormal termination.  */
  35. #define    SIGFPE    2    /* Erroneous arithmetic operation.  */
  36. #define    SIGILL    3    /* Illegal instruction.  */
  37. #define    SIGINT    3    /* Interactive attention signal.  */
  38. #define    SIGSEGV    4    /* Invalid access to storage.  */
  39. #define    SIGTERM    5    /* Termination request.  */
  40.  
  41. /* POSIX signals.  */
  42. #define    SIGHUP    6    /* Hangup.  */
  43. #define    SIGQUIT    7    /* Quit.  */
  44. #define    SIGPIPE    8    /* Broken pipe.  */
  45. #define    SIGKILL    9    /* Kill (cannot be blocked, caught, or ignored).  */
  46. #define    SIGALRM    10    /* Alarm clock.  */
  47. #define    SIGSTOP    11    /* Stop (cannot be blocked, caught, or ignored).  */
  48. #define    SIGTSTP    12    /* Keyboard stop.  */
  49. #define    SIGCONT    13    /* Continue.  */
  50. #define    SIGCHLD    14    /* Child terminated or stopped.  */
  51. #define    SIGTTIN    15    /* Background read from control terminal.  */
  52. #define    SIGTTOU    16    /* Background write to control terminal.  */
  53.  
  54. #endif    /* <signal.h> included.  */
  55.  
  56. #define    _NSIG    17
  57.