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

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