home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / CDOSDSK6.ZIP / CDOSDSK6.TD0 / INCLUDE / CCPM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-16  |  8.3 KB  |  174 lines

  1. /* Concurrent CP/M-86 System Calls */
  2.  
  3.                     /* Auxiliary Device System Calls */
  4. #define    A_ATTACH    165        /* Attach Default Auxiliary Device */
  5. #define    A_CATTACH    167        /* Conditionally Attach Device */
  6. #define    A_DETACH    166        /* Detach Default Auxiliary Device */
  7. #define    A_GET        169        /* Get the Default Auxiliary Device */
  8. #define    A_READ          3        /* Get a Character from Aux Device */
  9. #define    A_READBLK    172        /* Read a Block from Aux Device */
  10. #define    A_SET        168        /* Set Default Aux Device */
  11. #define    A_STATIN      7        /* Aux Device Input Status */
  12. #define    A_STATOUT      8        /* Aux Device Output Status */
  13. #define    A_WRITE          4        /* Output a character to Aux Device */
  14. #define    A_WRITEBLK    173        /* Write a Block to Aux Device */
  15.  
  16.                     /* Console Based System Calls */
  17. #define    C_ASSIGN       149        /* Assign Default Console */
  18. #define    C_ATTACH       146        /* Attach Default Virtual Console */
  19. #define    C_ATTRIB    114        /* Return Console Attributes */
  20. #define    C_CATTACH      162        /* Conditionally Attach Console */
  21. #define    C_DELIMIT        110        /* Default String Delimiter */
  22. #define    C_DETACH    147        /* Detach Virtual Console */
  23. #define    C_GET         153        /* Get the Virtual Console Number */
  24. #define    C_MODE           109        /* Set the Console mode */
  25. #define    C_RAWIO            6        /* Perform Direct I/O */
  26. #define    C_READ             1        /* Read a character from the console */
  27. #define    C_READSTR         10        /* Read a string from the console */
  28. #define    C_SET         148        /* Change the Default Console */
  29. #define    C_STAT            11        /* Get the Input Status */
  30. #define    C_WRITE            2        /* Write a character to the Console */
  31. #define    C_WRITEBLK       111        /* Write a block of characters */
  32. #define    C_WRITESTR         9        /* Write a string */
  33.  
  34.                     /* Device Based System Calls */
  35. #define    DEV_POLL    131        /* poll device */
  36. #define    DEV_FLAGALLOC     87        /* allocate flag */
  37. #define    DEV_FLAGFREE     88        /* free system flag */
  38. #define    DEV_WAITFLAG    132        /* flag wait */
  39. #define    DEV_SETFLAG    133        /* flag set */
  40.  
  41.                     /* Drive Management Functions */
  42. #define    DRV_ACCESS        38        /* Access drive (in LOCK TBL) */
  43. #define    DRV_ALLOCVEC      27        /* Get the Allocation Vector */
  44. #define    DRV_ALLRESET      13        /* Reset all drives */
  45. #define    DRV_DPB           31        /* Get the DPB */
  46. #define    DRV_FLUSH         48        /* Flush internal buffers */
  47. #define    DRV_FREE          39        /* Relinguish access to drive */
  48. #define    DRV_GET           25        /* Get the default Drive */
  49. #define    DRV_GETLABEL     101        /* Get the drives label */
  50. #define    DRV_LOCK     90        /* lock physical drive */
  51. #define    DRV_LOGINVEC      24        /* Get the login vector */
  52. #define    DRV_RESET         37        /* Reset specified drives */
  53. #define    DRV_ROVEC         29        /* Get Read Only drives */
  54. #define    DRV_SET           14        /* Set the default drive */
  55. #define    DRV_SETLABEL     100        /* Set the drive label */
  56. #define    DRV_SETRO         28        /* Set the default drive to Read Only */
  57. #define    DRV_SPACE         46        /* Return the Unalloacted space */
  58. #define    DRV_UNLOCK     91        /* unlock physical drive */
  59.  
  60.                     /* File Management Functions */
  61. #define    F_ATTRIB          30        /* Set file attributes */
  62. #define    F_CLOSE           16        /* Close File */
  63. #define    F_DELETE         19        /* Delete File */
  64. #define    F_DMAGET     52        /* Return DMA address */
  65. #define    F_DMAOFF            26        /* Set DMA Buffer Offset */
  66. #define    F_DMASEG     51        /* Set DMA Segment */
  67. #define    F_DOS        113        /* Handle Functions */
  68. #define    F_ERRMODE         45        /* Set BDOS error mode */
  69. #define    F_LOCK            42        /* Lock Records in a File */
  70. #define    F_MAKE            22        /* Create a file */
  71. #define    F_MULTISEC        44        /* Set the Mutli sector I/O count */
  72. #define    F_OPEN            15        /* Open a file */
  73. #define    F_PARSE          152        /* Initialize an FCB from string */
  74. #define    F_PASSWD         106        /* Set the default password */
  75. #define    F_RANDREC         36        /* Set Random record */
  76. #define    F_READ            20        /* Read Sequential */
  77. #define    F_READRAND        33        /* Read Random */
  78. #define    F_RENAME          23        /* Rename file */
  79. #define    F_SETDATE    116        /* Set File Time and Date Stamp */
  80. #define    F_SFIRST     17        /* Get first Matching file */
  81. #define    F_SIZE            35        /* Get file Size */
  82. #define    F_SNEXT         18        /* Get subsequent files */
  83. #define    F_TIMEDATE       102        /* Return date and time */
  84. #define    F_TRUNCATE        99        /* Truncate the file */
  85. #define    F_UNLOCK          43        /* Unlock File */
  86. #define    F_USERNUM         32        /* Set or return user number */
  87. #define    F_WRITE           21        /* Write Sequential */
  88. #define    F_WRITERAND       34        /* Write Random */
  89. #define    F_WRITEZF      40        /* Write with Zero fill */
  90. #define    F_WRITEXFCB      103        /* Create or update XFCB */
  91.  
  92.                     /* Printer Related system calls */
  93. #define    L_ATTACH       158        /* Attach Default List device */
  94. #define    L_CATTACH      161        /* Conditionally Attach List Device */
  95. #define    L_DETACH    159        /* Detach Virtual Printer */
  96. #define    L_GET         164        /* Get the Default Printer */
  97. #define    L_SET         160        /* Change the Default Printer */
  98. #define    L_WRITE            5        /* Write a character to the Printer */
  99. #define    L_WRITEBLK       112        /* Write a block of characters */
  100.  
  101.                     /* MP/M Memory Allocation */
  102. #define    M_ALLOC          128        /* Allocate Memory Segment */
  103. #define    M_FREE           130        /* Free Memory Segment */
  104.  
  105.                     /* CP/M Memory Alloacation */
  106. #define    MC_ABS            54        /*   */
  107. #define    MC_ALLFREE        58        /*   */
  108. #define    MC_ALLOC          55        /*   */
  109. #define    MC_ALLOCABS       56        /*   */
  110. #define    MC_FREE           57        /*   */
  111. #define    MC_MAX            53        /*   */
  112.  
  113.                     /* Network Function Calls */
  114. #define    N_ATTACH         73        /* Attach Process to Network */
  115. #define    N_ATTRIB     70        /* Set Compatiblilty Attributes */
  116. #define    N_DETACH     74        /* Detach a process from the network */
  117. #define    N_ERRMODE     72        /* Set the Network Error Mode */
  118. #define    N_LOGOFF     65        /* Terminate Link with Server */
  119. #define    N_LOGON         64        /* Log a process to a server */
  120. #define    N_LONGTIME     76        /* Set the Long TimeOut Value */
  121. #define    N_NAME         78        /* Network Names Support */
  122. #define    N_PARATAB     77        /* Get the Parameter table */
  123. #define    N_PASSWORD     75        /* Set the Network Password */
  124. #define    N_RCT         69        /* Set Requester Config Table */
  125. #define    N_SCT         71        /* Get Server Config Table */
  126. #define    N_STAT         68        /* Get Network Status Word */
  127. #define    N_XERROR     79        /* Network Extended Errors */
  128.  
  129.                     /* process control functions: */
  130. #define    P_ABORT          157        /* Terminate a Process */
  131. #define    P_CHAIN           47        /* Chain to a process */
  132. #define    P_CLI            150        /* Interpret command line */
  133. #define    P_CREATE         144        /* Create a process */
  134. #define    P_DELAY        141        /* delay specified number of ticks */
  135. #define    P_DISPATCH    142        /* let other another process run */
  136. #define    P_EXEC         93        /* CDOS 6.0 Exec/Chain Function */
  137. #define    P_EXITCODE     94        /* CDOS 6.0 Get/Set Error Code */
  138. #define    P_LOAD            59        /* Load the specified CMD file */
  139. #define    P_PATH         92        /* locate file in search path */
  140. #define    P_PDADR        156        /* dbl word ptr of process descriptor */
  141. #define    P_PRIORITY       145        /* Set process priority */
  142. #define    P_RPL            151        /* Invoke a system call from RPL */
  143. #define    P_TERM        143        /* Terminate process */
  144. #define    P_TERMCPM       0        /* Terminate process Unconditionally */
  145.  
  146.                     /* Queue Management Functions */
  147. #define    Q_CREAD        138        /* Conditional Read */
  148. #define    Q_CWRITE    140        /* Conditional Write */
  149. #define    Q_DELETE    136        /* Queue Delete */
  150. #define    Q_MAKE        134        /* Create a Queue */
  151. #define    Q_OPEN        135        /* Open a Queue */
  152. #define    Q_READ        137        /* Read from Queue */
  153. #define    Q_WRITE        139        /* Write to Queue */
  154.  
  155.                     /* System Based Calls */
  156. #define    S_BDOSVER         12        /* BDOS version Number */
  157. #define    S_BIOS            50        /* Call BIOS character I/O routine */
  158. #define    S_GETCOUNTRY     96        /* CDOS 6.0 Get Country Data */
  159. #define    S_MEMORY     89        /* allocate SYSDAT memory */
  160. #define    S_OSVER          163        /* Return type and version number */
  161. #define    S_SCB         49        /* CP/M PLUS and DOS PLUS only */
  162. #define    S_SETCOUNTRY     95        /* CDOS 6.0 Set the System Country */
  163. #define    S_SERIAL         107        /* Return the Serial Number */
  164. #define    S_SYSDAT         154        /* Return System data page address */
  165.  
  166.                     /* Time System Calls */
  167. #define    T_GET            105        /* Get the system Time */
  168. #define    T_GETTIME     83        /* Get Binary System Time */
  169. #define    T_GETDATE     85        /* Get Binary System Date */
  170. #define    T_SECONDS        155        /* As above + seconds */
  171. #define    T_SET            104        /* Set the system Time */
  172. #define    T_SETTIME     84        /* Set Binary System Time */
  173. #define    T_SETDATE     86        /* Set Binary System Date */
  174.