home *** CD-ROM | disk | FTP | other *** search
/ Total Destruction / Total_Destruction.iso / addons / Lccwin32.exe / Lccwin32 / lccpub / include / signal.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-04-21  |  1.1 KB  |  33 lines

  1. #ifndef _LCC_SIGNAL
  2. #define _LCC_SIGNAL
  3.  
  4. #define NSIG 23     /* maximum signal number + 1 */
  5.  
  6. /* Signal types */
  7.  
  8. #define SIGINT        2    /* Interrupt, normally Ctrl-C */
  9. #define SIGILL        4    /* illegal instruction. (Bug in the code generator) */
  10. #define SIGFPE        8    /* floating point problem */
  11. #define SIGSEGV     11    /* segment violation trap 13 */
  12. #define SIGTERM     15    /* termination signal from kill */
  13. #define SIGBREAK    21    /* Ctrl-Break */
  14. #define SIGABRT     22    /* abnormal termination */
  15.  
  16. /* signal action codes */
  17. #define SIG_DFL (void ( *)(int))0       /* default signal action */
  18. #define SIG_IGN (void ( *)(int))1       /* ignore signal */
  19. #define SIG_SGE (void ( *)(int))3       /* signal gets error */
  20. #define SIG_ACK (void ( *)(int))4       /* acknowledge */
  21.  
  22. /* signal error value (returned by signal call on error) */
  23.  
  24. #define SIG_ERR (void ( *)(int))-1       /* signal error value */
  25. /* pointer to exception information pointers structure */
  26. extern void * _pxcptinfoptrs;
  27.  
  28. /* Function prototypes */
  29.  
  30. extern void ( * signal(int, void (*)(int)))(int);
  31. int raise(int);
  32. #endif    /* _LCC_SIGNAL */
  33.