home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / EFFO / forum7.lzh / RICO / C / LIBSOURCE / SIGNAL / signal.h < prev   
Text File  |  2009-11-06  |  1KB  |  30 lines

  1.  
  2. typedef int (* handlerfunc)();
  3. extern handlerfunc signal();
  4.  
  5. /* OS-9 signals */
  6. #define            SIGKILL        0        /* sytem abort (cannot be caught or ignored)*/
  7. #define            SIGWAKE        1        /* wake up */
  8. #define            SIGQUIT        2        /* keyboard abort */
  9. #define            SIGINT        3        /* keyboard interrupt */
  10.  
  11. /* OS-9 error traps */
  12. #define            SIGBUSERR    -1        /* Bus error */
  13. #define            SIGBUS        -1        /* Bus error */
  14. #define            SIGADDERR    -2        /* Address error */
  15. #define            SIGILLINS    -3        /* Illegal instruction */
  16. #define            SIGILL        -3        /* Illegal instruction */
  17. #define            SIGZERODIV    -4        /* Integer zero division */
  18. #define            SIGCHK        -5        /* Range error */
  19. #define            SIGTRAPV    -6        /* Overflow */
  20. #define            SIGFPE        -6        /* Floating point error */
  21. #define            SIGPRIV        -7        /* Privilege violation */
  22. #define            SIG1010        -8        /* 1010 opcode emulator */
  23. #define            SIG1111        -9        /* 1111 opcode emulator */
  24.  
  25. /* special addresses */
  26. #define    SIG_DFL    (handlerfunc) 0        /* Default behaviour (exit with error) */
  27. #define    SIG_IGN    (handlerfunc) 1        /* Ignore signal */
  28.  
  29.  
  30.