home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / djgpp / include / sys / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-30  |  927 b   |  36 lines

  1. /* This is file SIGNAL.H */
  2. /*
  3. ** Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. #ifndef _SIGNAL_H_
  16. #define _SIGNAL_H_
  17.  
  18. #define SIG_DFL ((void (*)(int))(-1))
  19. #define SIG_IGN ((void (*)(int))(-2))
  20.  
  21. typedef enum {
  22.   SIGINT,
  23.   SIGKILL,
  24.   SIGPIPE,
  25.   SIGFPE,
  26.   SIGHUP,
  27.   SIGTERM,
  28.   SIGSEGV,
  29.   SIGTSTP,
  30.   SIGQUIT
  31. } SIGnals;
  32.  
  33. /* void    (*signal(int, void (*)(int))) (int); */
  34.  
  35. #endif
  36.