home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / HITECH-C / Z80V309.EXE / lha / SIGNAL.H < prev    next >
Text File  |  1979-11-30  |  1KB  |  30 lines

  1. /*
  2.  *    Signal definitions for CP/M
  3.  */
  4. #ifdef    unix
  5. #define NSIG 17
  6.  
  7. #define    SIGHUP    1    /* hangup    (not used by terminal driver) */
  8. #define    SIGINT    2    /* interrupt (^C or BREAK) */
  9. #define    SIGQUIT    3    /* quit      (^\) */
  10. #define    SIGILL    4    /* illegal instruction (not reset when caught) */
  11. #define    SIGTRAP    5    /* trace trap (not reset when caught) */
  12. #define    SIGIOT    6    /* IOT instruction */
  13. #define    SIGEMT    7    /* EMT instruction */
  14. #define    SIGFPE    8    /* floating point exception */
  15. #define    SIGKILL    9    /* kill (cannot be caught or ignored) */
  16. #define    SIGBUS    10    /* bus error */
  17. #define    SIGSEGV    11    /* segmentation violation */
  18. #define    SIGSYS    12    /* bad argument to system call */
  19. #define    SIGPIPE    13    /* write on a pipe with no one to read it */
  20. #define    SIGALRM    14    /* alarm clock */
  21. #define    SIGTERM    15    /* software termination signal from kill */
  22. #else    unix
  23. #define    SIGINT    1        /* control-C */
  24. #endif    unix
  25.  
  26. #define    SIG_DFL    ((void (*)(int))0)    /* default action is to exit */
  27. #define    SIG_IGN    ((void (*)(int))1)    /* ignore them */
  28.  
  29. extern void (*    signal(int, void (*)(int)))(int);
  30.