home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / MARK_WC2.LZH / INCLUDE / SIGNAL.H < prev    next >
C/C++ Source or Header  |  1988-04-27  |  3KB  |  95 lines

  1. /*
  2.  * signals.h -- signals for the Atari ST.
  3.  *
  4.  * Copyright (c) 1986-1987, Mark Williams Company, Chicago
  5.  * This file and its contents may not be copied or distributed
  6.  * without permission.
  7.  */
  8.  
  9. #ifndef     SIG_H
  10. #define     SIG_H
  11. /*
  12.  * arguments to signal
  13.  */
  14. #define SIG_DFL    ((int(*)())0)
  15. #define SIG_IGN    ((int(*)())1)
  16.  
  17. /*
  18.  * M68000 machine exceptions
  19.  */
  20. #define SIGBUS    2            /* Bus error */
  21. #define SIGADDR    3            /* Address error */
  22. #define SIGILL    4            /* Illegal instruction */
  23. #define SIGDIV    5            /* Zero divide */
  24. #define SIGCHK    6            /* chk instruction */
  25. #define SIGOVF    7            /* trapv instruction */
  26. #define SIGPRIV    8            /* Privilege violation */
  27. #define SIGTRAC    9            /* Trace trap */
  28. #define SIGLINA    10            /* 1010 emulation */
  29. #define SIGLINF    11            /* line 1111 emulation */
  30.  
  31. /*
  32.  * M68000 trap instructions
  33.  */
  34. #define SIGT0    32            /* trap $0 */
  35. #define SIGT1    33            /* trap $1 */
  36. #define SIGT2    34            /* trap $2 */
  37. #define SIGT3    35            /* trap $3 */
  38. #define SIGT4    36            /* trap $4 */
  39. #define SIGT5    37            /* trap $5 */
  40. #define SIGT6    38            /* trap $6 */
  41. #define SIGT7    39            /* trap $7 */
  42. #define SIGT8    40            /* trap $8 */
  43. #define SIGT9    41            /* trap $9 */
  44. #define SIGT10    42            /* trap $10 */
  45. #define SIGT11    43            /* trap $11 */
  46. #define SIGT12    44            /* trap $12 */
  47. #define SIGT13    45            /* trap $13 */
  48. #define SIGT14    46            /* trap $14 */
  49. #define SIGT15    47            /* trap $15 */
  50.  
  51. /*
  52.  * GEM-DOS aliases
  53.  */
  54. #define SIGDOS    SIGT1            /* GEM-DOS vector */
  55. #define SIGGEM    SIGT2            /* AES/VDI/GSX vector */
  56. #define SIGBIOS    SIGT13            /* BIOS vector */
  57. #define SIGXBIOS SIGT14            /* XBIOS vector */
  58.  
  59. /*
  60.  * COHERENT/V7 assignments, unassigned traps
  61.  */
  62. #define SIGHUP    SIGT3            /* Hangup */
  63. #define    SIGINT    SIGT4            /* Interrupt */
  64. #define SIGQUIT    SIGT5            /* Quit */
  65. #define SIGALRM    SIGT6            /* Alarm */
  66. #define SIGTERM    SIGT7            /* Software termination signal */
  67. #define SIGREST    SIGT8            /* Restart */
  68. #define SIGSYS    SIGT9            /* Bad argument to system call */
  69. #define    SIGPIPE    SIGT10            /* Write to pipe with no readers */
  70. #define SIGKILL    SIGT11            /* Kill */
  71. #define SIGTRAP    SIGT12            /* Breakpoint */
  72. #define    SIGSEGV    SIGBUS            /* Segmentation violation */
  73.  
  74. #define NSIG    48
  75.  
  76. /*
  77.  * GEM-DOS logical vectors.
  78.  *
  79.  * These cannot be set with signal() because they are called in an
  80.  * unusual way, and must return in the same manner.
  81.  * They are included for completeness.
  82.  */
  83. #define ETVTIMER    256
  84. #define ETVCRITIC    257
  85. #define ETVTERM        258
  86.  
  87. /*
  88.  * For the benefit of user programs:
  89.  */
  90. int    (*signal())();
  91.  
  92. #endif
  93.  
  94. /* End of signal.h */
  95.