home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gccdist / gcc / include / dvidef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-27  |  11.4 KB  |  204 lines

  1. /*    DVIDEF - Get Device and Volume Information Data Identifier Definitions    */
  2.  
  3. #define DVI$_DEVCHAR 2
  4. #define DVI$_DEVCLASS 4
  5. #define DVI$_DEVTYPE 6
  6. #define DVI$_DEVBUFSIZ 8
  7. #define DVI$_DEVDEPEND 10
  8. #define DVI$_UNIT 12
  9. #define DVI$_PID 14
  10. #define DVI$_OWNUIC 16
  11. #define DVI$_VPROT 18
  12. #define DVI$_ERRCNT 20
  13. #define DVI$_OPCNT 22
  14. #define DVI$_RECSIZ 24
  15. #define DVI$_MAXBLOCK 26
  16. #define DVI$_DEVDEPEND2 28
  17. #define DVI$_REFCNT 30
  18. #define DVI$_DEVNAM 32
  19. #define DVI$_VOLNAM 34
  20. #define DVI$_SECTORS 36
  21. #define DVI$_TRACKS 38
  22. #define DVI$_CYLINDERS 40
  23. #define DVI$_FREEBLOCKS 42
  24. #define DVI$_LOGVOLNAM 44
  25. #define DVI$_VOLNUMBER 46
  26. #define DVI$_VOLCOUNT 48
  27. #define DVI$_ROOTDEVNAM 50
  28. #define DVI$_NEXTDEVNAM 52
  29. #define DVI$_TRANSCNT 54
  30. #define DVI$_MOUNTCNT 56
  31. #define DVI$_CLUSTER 58
  32. #define DVI$_MAXFILES 60
  33. #define DVI$_SERIALNUM 62
  34. #define DVI$_ACPPID 64
  35. #define DVI$_ACPTYPE 66
  36.  
  37. #define DVI$_CONCEALED 68               /* Device is a concealed device - BOOLEAN - 1 byte */
  38. /*                                                                          */
  39. /** THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVCHAR LONGWORD     */
  40. /*                                                                          */
  41. #define DVI$_REC 70                     /* DEVICE RECORD ORIENTED           */
  42. #define DVI$_CCL 72                     /* CARRIAGE CONTROL DEVICE          */
  43. #define DVI$_TRM 74                     /* DEVICE IS A TERMINAL             */
  44. #define DVI$_DIR 76                     /* DEVICE IS DIRECTORY STRUCTURED   */
  45. #define DVI$_SDI 78                     /* DEVICE IS SINGLE DIRECTORY STRUCTURED  */
  46. #define DVI$_SQD 80                     /* SEQUENTIAL BLOCK-ORIENTED DEVICE (I.E., MAGTAPE)  */
  47. #define DVI$_SPL 82                     /* DEVICE BEING SPOOLED             */
  48. #define DVI$_OPR 84                     /* DEVICE IS AN OPERATOR            */
  49. #define DVI$_RCT 86                     /* DISK CONTAINS RCT (DEC STANDARD 166 DISK)  */
  50. #define DVI$_NET 88                     /* NETWORK DEVICE                   */
  51. #define DVI$_FOD 90                     /* FILES-ORIENTED DEVICE (I.E., DISK AND MT)  */
  52. #define DVI$_DUA 92                     /* DEVICE IS DUAL PORTED            */
  53. #define DVI$_SHR 94                     /* DEVICE SHAREABLE                 */
  54. #define DVI$_GEN 96                     /* DEVICE IS A GENERIC DEVICE       */
  55. #define DVI$_AVL 98                     /* DEVICE AVAILABLE FOR USE         */
  56. #define DVI$_MNT 100                    /* DEVICE IS MOUNTED                */
  57. #define DVI$_MBX 102                    /* DEVICE IS A MAILBOX              */
  58. #define DVI$_DMT 104                    /* DEVICE MARKED FOR DISMOUNT       */
  59. #define DVI$_ELG 106                    /* DEVICE HAS ERROR LOGGING ENABLED  */
  60. #define DVI$_ALL 108                    /* DEVICE IS ALLOCATED              */
  61. #define DVI$_FOR 110                    /* DEVICE IS MOUNTED FOREIGN (I.E., NON-FILE STRUCTURED)  */
  62. #define DVI$_SWL 112                    /* DEVICE IS SOFTWARE WRITE LOCKED  */
  63. #define DVI$_IDV 114                    /* DEVICE CAPABLE OF PROVIDING INPUT  */
  64. #define DVI$_ODV 116                    /* DEVICE CAPABLE OF PROVIDING OUTPUT  */
  65. #define DVI$_RND 118                    /* DEVICE ALLOWS RANDOM ACCESS      */
  66. #define DVI$_RTM 120                    /* DEVICE IS REALTIME IN NATURE     */
  67. #define DVI$_RCK 122                    /* DEVICE HAS READ CHECKING ENABLED  */
  68. #define DVI$_WCK 124                    /* DEVICE HAS WRITE CHECKING ENABLED  */
  69. /*                                                                          */
  70. /**  THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVDEPEND LONGWORD  */
  71. /**  (AS DEFINED FOR TERMINALS: TTDEF IN STARDEFQZ.SDL)                     */
  72. /*                                                                          */
  73. #define DVI$_TT_PASSALL 126
  74. #define DVI$_TT_NOECHO 128
  75. #define DVI$_TT_NOTYPEAHD 130
  76. #define DVI$_TT_ESCAPE 132
  77. #define DVI$_TT_HOSTSYNC 134
  78. #define DVI$_TT_TTSYNC 136
  79. #define DVI$_TT_SCRIPT 138
  80. #define DVI$_TT_LOWER 140
  81. #define DVI$_TT_MECHTAB 142
  82. #define DVI$_TT_WRAP 144
  83. #define DVI$_TT_CRFILL 146
  84. #define DVI$_TT_LFFILL 148
  85. #define DVI$_TT_SCOPE 150
  86. #define DVI$_TT_REMOTE 152
  87. #define DVI$_TT_EIGHTBIT 154
  88. #define DVI$_TT_MBXDSABL 156
  89. #define DVI$_TT_NOBRDCST 158
  90. #define DVI$_TT_READSYNC 160
  91. #define DVI$_TT_MECHFORM 162
  92. #define DVI$_TT_HALFDUP 164
  93. #define DVI$_TT_MODEM 166
  94. #define DVI$_TT_OPER 168
  95. #define DVI$_TT_PAGE 170                /*                                  */
  96. /**  THE FOLLOWING CODES ARE THE INDIVIDUAL BITS OF THE DEVDEPEND2 LONGWORD */
  97. /**  (AS DEFINED FOR TERMINALS: TT2DEF IN STARDEFQZ.SDL)                    */
  98. /*                                                                          */
  99. #define DVI$_TT_LOCALECHO 172
  100. #define DVI$_TT_AUTOBAUD 174
  101. #define DVI$_TT_HANGUP 176
  102. #define DVI$_TT_MODHANGUP 178
  103. #define DVI$_TT_BRDCSTMBX 180
  104. #define DVI$_TT_DMA 182
  105. #define DVI$_TT_ALTYPEAHD 184
  106. #define DVI$_TT_SETSPEED 186
  107. #define DVI$_TT_DCL_MAILBX 188          /* TEMP DEFINITIONS FOR DCL SPAWN   */
  108. #define DVI$_TT_EDITING 190
  109. #define DVI$_TT_INSERT 192
  110. #define DVI$_TT_FALLBACK 194
  111. #define DVI$_TT_DIALUP 196
  112. #define DVI$_TT_SECURE 198
  113. #define DVI$_TT_DISCONNECT 200
  114. #define DVI$_TT_PASTHRU 202
  115. #define DVI$_TT_SIXEL 204
  116. #define DVI$_TT_DRCS 206
  117. #define DVI$_TT_PRINTER 208
  118. #define DVI$_TT_APP_KEYPAD 210
  119. #define DVI$_TT_SYSPWD 212
  120. #define DVI$_TT_ANSICRT 214
  121. #define DVI$_TT_REGIS 216
  122. #define DVI$_TT_BLOCK 218
  123. #define DVI$_TT_AVO 220
  124. #define DVI$_TT_EDIT 222
  125. #define DVI$_TT_DECCRT 224              /*                                  */
  126. /**  THE FOLLOWING CODES ARE REGULAR ITEMS                                  */
  127. /*                                                                          */
  128. #define DVI$_STS 226                    /* STATUS LONGWORD                  */
  129. #define DVI$_DEVSTS 228                 /* DEVICE STATUS WORD               */
  130. #define DVI$_DEVCHAR2 230               /* Second device characteristics longword - VALUE - 4 bytes  */
  131. #define DVI$_FULLDEVNAM 232             /* Fully qualified device name      */
  132. #define DVI$_LOCKID 234                 /* Device lock id - VALUE - 4 bytes */
  133. #define DVI$_ALLDEVNAM 236              /* Allocation class + device name   */
  134. #define DVI$_VOLSETMEM 238              /* Volume set member                */
  135. #define DVI$_DEVLOCKNAM 240             /* Device lock name                 */
  136. /*                                                                          */
  137. /** THE FOLLOWING CODES SUPPORT FEATURES OF DUAL-PATH AND SHADOW-SET DEVICES */
  138. /*                                                                          */
  139. #define DVI$_ALLOCLASS 242              /* Allocation class of host(s)      */
  140. #define DVI$_ALT_HOST_AVAIL 244         /* Alternate host is active         */
  141. #define DVI$_ALT_HOST_NAME 246          /* Name of host serving alternate path */
  142. #define DVI$_ALT_HOST_TYPE 248          /* Type of alternate host           */
  143. #define DVI$_HOST_AVAIL 250             /* Primary host is active           */
  144. #define DVI$_HOST_COUNT 252             /* Number of paths to the device    */
  145. #define DVI$_HOST_NAME 254              /* Name of host serving the primary path */
  146. #define DVI$_HOST_TYPE 256              /* Type of primary host (today one of "V785", "V780", "V750" or "HS50") */
  147. #define DVI$_REMOTE_DEVICE 258          /* Device is not connected to local node */
  148. #define DVI$_SERVED_DEVICE 260          /* Device is served to the cluster  */
  149. #define DVI$_SHDW_CATCHUP_COPYING 262   /* Catch-up copy is in progress     */
  150. #define DVI$_SHDW_MASTER 264            /* Device is "virtual" master device for shadow set */
  151. #define DVI$_SHDW_MASTER_NAME 266       /* Name of the "virtual" master device for a shadow set */
  152. #define DVI$_SHDW_MEMBER 268            /* Device is one of the volumes making a shadow set */
  153. #define DVI$_SHDW_MERGE_COPYING 270     /* Merge copy is in progress        */
  154. #define DVI$_SHDW_NEXT_MBR_NAME 272     /* Name of the next device in shadow set */
  155. /*                                                                          */
  156. /**  THE FOLLOWING CODES ARE REGULAR ITEMS                                  */
  157. /*                                                                          */
  158. #define DVI$_TT_PHYDEVNAM 274           /* Terminal physical device name - STRING - 64 bytes */
  159. #define DVI$_TT_DECCRT2 276             /* DEC_CRT level 2 part of devdepend2 longword for  */
  160. /* terminals.                                                               */
  161. #define DVI$_MEDIA_NAME 278             /* Decoded media name from UCB$L_MEDIA_ID field (ie. RK07 ) */
  162. #define DVI$_MEDIA_TYPE 280             /* Decoded media type from UCB$L_MEDIA_ID field (ie. DM ) */
  163. #define DVI$_MEDIA_ID 282               /* NONdecoded media id from UCB$L_MEDIA_ID */
  164. /*                                                                          */
  165. /** THE FOLLOWING CODES ARE CONTINGENCY ITEMS FOR SHADOW SUPPORT.  IF THEY  */
  166. /** ARE NOT USED, THE NEXT RELEASE OF VMS CAN REUSE THESE POSITIONS FOR OTHER */
  167. /** ITEMS.  IF THEY ARE USED, A SYNONYM WITH MORE MEANING SHOULD BE DEFINED. */
  168. /*                                                                          */
  169. #define DVI$_SHDW_SPARE_BIT_1 284       /* A spare boolean                  */
  170. #define DVI$_SHDW_SPARE_BIT_2 286       /* A spare boolean                  */
  171. #define DVI$_SHDW_SPARE_STRING_1 288    /* A spare character string         */
  172. #define DVI$_SHDW_SPARE_STRING_2 290    /* A spare character string         */
  173. #define DVI$_SHDW_SPARE_INTEGER_1 292   /* A spare longword integer         */
  174. #define DVI$_SHDW_SPARE_INTEGER_2 294   /* A spare longword integer         */
  175. /****    ADD NEW ITEM-CODES IMMEDIATELY BEFORE THIS COMMENT *****            */
  176. /*                                                                          */
  177. /* Define flag bits in the item code.                                       */
  178. /*                                                                          */
  179. #define DVI$M_SECONDARY 1
  180. #define DVI$M_NOREDIRECT 32768
  181. struct dvidef {
  182.     unsigned dvi$v_secondary : 1;       /* Use secondary device characteristics */
  183.     unsigned dvi$v_item_code : 10;      /* Space for item code              */
  184.     unsigned dvi$v_fill_0 : 4;          /* Spare flags                      */
  185.     unsigned dvi$v_noredirect : 1;      /* Don't redirect to virtual terminal */
  186.     } ;
  187. /*                                                                          */
  188. /* Constant form of name for past compatibility.                            */
  189. /*                                                                          */
  190. #define DVI$C_SECONDARY 1
  191. /*                                                                          */
  192. /* The following ACP type codes are formally defined in $AQBDEF             */
  193. /* These synonyms are available to user programs and they are               */
  194. /* guaranteed to be consistent by ASSUME's in SYSGETDEV.  Additions         */
  195. /* to the ACP type codes in $AQBDEF should be reflected here and            */
  196. /* in the ASSUMES in SYSGETDEV.                                             */
  197. /*                                                                          */
  198. #define DVI$C_ACP_F11V1 1               /* FILES-11 STRUCTURE LEVEL 1       */
  199. #define DVI$C_ACP_F11V2 2               /* FILES-11 STRUCTURE LEVEL 2       */
  200. #define DVI$C_ACP_MTA 3                 /* MAGTAPE                          */
  201. #define DVI$C_ACP_NET 4                 /* NETWORKS                         */
  202. #define DVI$C_ACP_REM 5                 /* REMOTE I/O                       */
  203. #define DVI$C_ACP_JNL 6                 /* JOURNAL                          */
  204.