home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s300 / 1.ddi / CHAP3 / XIGNAL.H < prev   
Encoding:
C/C++ Source or Header  |  1988-05-02  |  2.3 KB  |  100 lines

  1. /***********************************************************************
  2.  
  3. FILE
  4.     xignal.h    (IBM-PC version)
  5.  
  6. LAST UPDATE
  7.     22 May 1985  by  Haam
  8.         downgrade requirement for envir.h
  9.     02 October 1985  by  Haam
  10.         add stuff for Compupro
  11.     10 September 1987  by  Haam
  12.         name change to xignal
  13.  
  14.     Copyright(c) 1984-1988  D.M. Auslander and C.H. Tham
  15.  
  16. ***********************************************************************/
  17.  
  18. /**********************  locals - for IBM-PC  **********************/
  19.  
  20. #if IBMPC
  21.  
  22. #define XIGALL      0               /* vectors 0 to 15 */
  23.  
  24. #define XIGTMR      1
  25. #define XIGKB       2
  26. #define XIGCGA      3
  27. #define XIGCOM2     4
  28. #define XIGCOM1     5
  29. #define XIGLPT2     6
  30. #define XIGFDSK     7
  31. #define XIGPRN      8
  32.  
  33. #define XIGFPE      9
  34.  
  35. #define XIGAUX      XIGCOM1
  36. #define XIGLPT1     XIGPRN
  37.  
  38.  
  39. #define NXIG        10
  40.  
  41.  
  42. #define XIGTMR0     XIGTMR      /* compatibility with Compupro version */
  43. #define XIGKEYB     XIGKB
  44.  
  45. #endif  /* if IBMPC */
  46.  
  47.  
  48. /**********************  locals - for Compupro  **********************/
  49.  
  50. #if COMPUPRO
  51.  
  52. #define XIGALL      0
  53.  
  54. #define XIGPIO4     1
  55. #define XIGSRX4     3
  56. #define XIGSTX4     4
  57. #define XIGSRX2     5
  58. #define XIGSTX2     6
  59.  
  60. #define XIGTMR0     12
  61. #define XIGTMR1     13
  62. #define XIGTMR2     14
  63. #define XIGSCRN     17
  64. #define XIGKEYB     18
  65.  
  66. #define XIGFPE      20
  67.  
  68.  
  69. #define NXIG        21
  70.  
  71.  
  72. #define XIGTMR      XIGTMR0     /* compatibility with IBM version */
  73. #define XIGKB       XIGKEYB
  74.  
  75. #endif  /* if COMPUPRO */
  76.  
  77.  
  78. /***************  Some Standard Xignal Definitions  ***************/
  79.  
  80. extern XIG_IGN();           /* actual functions are used instead of */
  81. extern XIG_DFL();           /*  casting (*int())() since some       */
  82. extern BADXIG();            /*  compilers cannot perform the cast.  */
  83.  
  84. #ifndef KERNEL
  85. int (* xignal())();
  86. #endif
  87.  
  88.  
  89. /******  Floating Point Stuff, modelled on UNIX definitions  ******/
  90.  
  91. #define     FPE_INTOVF  0x1         /* integer overflow */
  92. #define     FPE_INTDIV  0x2         /* integer divide by zero */
  93. #define     FPE_FLTOVF  0x3         /* floating overflow */
  94. #define     FPE_FLTDIV  0x4         /* floating divide by zero */
  95. #define     FPE_FLTUND  0x5         /* floating underflow */
  96.  
  97.  
  98. #define XIGALRM     XIGTMR  /* Unix to Local xignal number mapping */
  99.  
  100.