00001 #ifndef namdef_h 00002 #define namdef_h 00003 00004 #define NAM_C_BID 2 00005 #define NAM_C_MAXRSS 255 00006 #define NAM_C_MAXRSSLCL 255 00007 #define NAM_M_PWD 0x1 00008 #define NAM_M_FILL_1 0x2 00009 #define NAM_M_FILL_2 0x4 00010 #define NAM_M_SYNCHK 0x8 00011 #define NAM_M_NOCONCEAL 0x10 00012 #define NAM_M_SLPARSE 0x20 00013 #define NAM_M_SRCHXABS 0x40 00014 #define NAM_M_NO_SHORT_UPCASE 0x80 00015 #define NAM_C_UFS 0 00016 00017 #define NAM_C_NO_RFS 0 00018 #define NAM_C_RMS11 1 00019 #define NAM_C_RMS20 2 00020 #define NAM_C_RMS32 3 00021 #define NAM_C_FCS11 4 00022 #define NAM_C_RT11FS 5 00023 #define NAM_C_TOPS20FS 7 00024 #define NAM_C_TOPS10FS 8 00025 #define NAM_C_RMS32S 10 00026 #define NAM_C_CPMFS 11 00027 #define NAM_C_MS_DOSFS 12 00028 #define NAM_C_ULTRIX32_FS 13 00029 #define NAM_C_ULTRIX11_FS 14 00030 #define DAP_K_SNADTF_FS 15 00031 00032 #define NAM_C_DVI 16 00033 00034 #define NAM_M_IFI 0x10000 00035 #define NAM_M_SRCHNMF 0x40000000 00036 #define NAM_M_SVCTX 0x80000000 00037 #define NAM_K_BLN_V2 56 00038 #define NAM_C_BLN_V2 56 00039 #define NAM_M_EXP_VER 0x1 00040 #define NAM_M_EXP_TYPE 0x2 00041 #define NAM_M_EXP_NAME 0x4 00042 #define NAM_M_WILD_VER 0x8 00043 #define NAM_M_WILD_TYPE 0x10 00044 #define NAM_M_WILD_NAME 0x20 00045 #define NAM_M_EXP_DIR 0x40 00046 #define NAM_M_EXP_DEV 0x80 00047 #define NAM_M_WILDCARD 0x100 00048 #define NAM_M_DIR_LVLS_G7 0x200 00049 #define NAM_M_WILD_SFDG7 0x400 00050 #define NAM_M_SEARCH_LIST 0x800 00051 #define NAM_M_CNCL_DEV 0x1000 00052 #define NAM_M_ROOT_DIR 0x2000 00053 #define NAM_M_LOWVER 0x4000 00054 #define NAM_M_HIGHVER 0x8000 00055 #define NAM_M_PPF 0x10000 00056 #define NAM_M_NODE 0x20000 00057 #define NAM_M_QUOTED 0x40000 00058 #define NAM_M_GRP_MBR 0x80000 00059 #define NAM_M_WILD_DIR 0x100000 00060 #define NAM_M_DIR_LVLS 0xE00000 00061 #define NAM_M_WILD_UFD 0x1000000 00062 #define NAM_M_WILD_SFD1 0x2000000 00063 #define NAM_M_WILD_SFD2 0x4000000 00064 #define NAM_M_WILD_SFD3 0x8000000 00065 #define NAM_M_WILD_SFD4 0x10000000 00066 #define NAM_M_WILD_SFD5 0x20000000 00067 #define NAM_M_WILD_SFD6 0x40000000 00068 #define NAM_M_WILD_SFD7 0x80000000 00069 #define NAM_M_WILD_GRP 0x1000000 00070 #define NAM_M_WILD_MBR 0x2000000 00071 #define NAM_M_DID 0x1 00072 #define NAM_M_FID 0x2 00073 #define NAM_M_RES_DID 0x4 00074 #define NAM_M_RES_FID 0x8 00075 #define NAM_M_RES_ESCAPE 0x10 00076 #define NAM_M_RES_UNICODE 0x20 00077 00078 #define NAM_K_BLN_DIRWC 96 00079 #define NAM_C_BLN_DIRWC 96 00080 #define NAM_K_BLN 96 00081 #define NAM_C_BLN 96 00082 00083 #define NAM_V_PWD 0 00084 #define NAM_V_FILL_1 1 00085 #define NAM_V_FILL_2 2 00086 #define NAM_V_SYNCHK 3 00087 #define NAM_V_NOCONCEAL 4 00088 #define NAM_V_SLPARSE 5 00089 #define NAM_V_SRCHXABS 6 00090 #define NAM_V_NO_SHORT_UPCASE 7 00091 #define NAM_V_IFI 16 00092 #define NAM_V_SRCHNMF 30 00093 #define NAM_V_SVCTX 31 00094 #define NAM_V_EXP_VER 0 00095 #define NAM_V_EXP_TYPE 1 00096 #define NAM_V_EXP_NAME 2 00097 #define NAM_V_WILD_VER 3 00098 #define NAM_V_WILD_TYPE 4 00099 #define NAM_V_WILD_NAME 5 00100 #define NAM_V_EXP_DIR 6 00101 #define NAM_V_EXP_DEV 7 00102 #define NAM_V_WILDCARD 8 00103 #define NAM_V_DIR_LVLS_G7 9 00104 #define NAM_V_WILD_SFDG7 10 00105 #define NAM_V_SEARCH_LIST 11 00106 #define NAM_V_CNCL_DEV 12 00107 #define NAM_V_ROOT_DIR 13 00108 #define NAM_V_LOWVER 14 00109 #define NAM_V_HIGHVER 15 00110 #define NAM_V_PPF 16 00111 #define NAM_V_NODE 17 00112 #define NAM_V_QUOTED 18 00113 #define NAM_V_GRP_MBR 19 00114 #define NAM_V_WILD_DIR 20 00115 #define NAM_V_DIR_LVLS 21 00116 #define NAM_S_DIR_LVLS 3 00117 #define NAM_V_WILD_UFD 24 00118 #define NAM_V_WILD_SFD1 25 00119 #define NAM_V_WILD_SFD2 26 00120 #define NAM_V_WILD_SFD3 27 00121 #define NAM_V_WILD_SFD4 28 00122 #define NAM_V_WILD_SFD5 29 00123 #define NAM_V_WILD_SFD6 30 00124 #define NAM_V_WILD_SFD7 31 00125 #define NAM_V_WILD_GRP 24 00126 #define NAM_V_WILD_MBR 25 00127 #define NAM_V_DID 0 00128 #define NAM_V_FID 1 00129 #define NAM_V_RES_DID 2 00130 #define NAM_V_RES_FID 3 00131 #define NAM_V_RES_ESCAPE 4 00132 #define NAM_V_RES_UNICODE 5 00133 #define NAML_V_NO_SHORT_OUTPUT 0 00134 #define NAML_V_LONG_RESULT_ESCAPE 0 00135 #define NAML_V_FILESYS_NAME_UCS2 1 00136 #define NAML_V_LONG_RESULT_DID 2 00137 #define NAML_V_LONG_RESULT_FID 3 00138 #define NAML_V_LONG_RESULT_UNICODE 4 00139 00140 #define NAML_C_BID 4 00141 00142 #define NAML_C_MAXRSS 4095 00143 #define NAML_M_PWD 0x1 00144 #define NAML_M_FILL_1 0x2 00145 #define NAML_M_FILL_2 0x4 00146 #define NAML_M_SYNCHK 0x8 00147 #define NAML_M_NOCONCEAL 0x10 00148 #define NAML_M_SLPARSE 0x20 00149 #define NAML_M_SRCHXABS 0x40 00150 #define NAML_M_NO_SHORT_UPCASE 0x80 00151 #define NAML_C_UFS 0 00152 00153 #define NAML_C_NO_RFS 0 00154 #define NAML_C_RMS11 1 00155 #define NAML_C_RMS20 2 00156 #define NAML_C_RMS32 3 00157 #define NAML_C_FCS11 4 00158 #define NAML_C_RT11FS 5 00159 #define NAML_C_TOPS20FS 7 00160 #define NAML_C_TOPS10FS 8 00161 #define NAML_C_RMS32S 10 00162 #define NAML_C_CPMFS 11 00163 #define NAML_C_MS_DOSFS 12 00164 #define NAML_C_ULTRIX32_FS 13 00165 #define NAML_C_ULTRIX11_FS 14 00166 00167 #define NAML_C_DVI 16 00168 00169 #define NAML_M_IFI 0x10000 00170 #define NAML_M_SRCHNMF 0x40000000 00171 #define NAML_M_SVCTX 0x80000000 00172 #define NAML_K_BLN_V2 56 00173 #define NAML_C_BLN_V2 56 00174 #define NAML_M_EXP_VER 0x1 00175 #define NAML_M_EXP_TYPE 0x2 00176 #define NAML_M_EXP_NAME 0x4 00177 #define NAML_M_WILD_VER 0x8 00178 #define NAML_M_WILD_TYPE 0x10 00179 #define NAML_M_WILD_NAME 0x20 00180 #define NAML_M_EXP_DIR 0x40 00181 #define NAML_M_EXP_DEV 0x80 00182 #define NAML_M_WILDCARD 0x100 00183 #define NAML_M_DIR_LVLS_G7 0x200 00184 #define NAML_M_WILD_SFDG7 0x400 00185 #define NAML_M_SEARCH_LIST 0x800 00186 #define NAML_M_CNCL_DEV 0x1000 00187 #define NAML_M_ROOT_DIR 0x2000 00188 #define NAML_M_LOWVER 0x4000 00189 #define NAML_M_HIGHVER 0x8000 00190 #define NAML_M_PPF 0x10000 00191 #define NAML_M_NODE 0x20000 00192 #define NAML_M_QUOTED 0x40000 00193 #define NAML_M_GRP_MBR 0x80000 00194 #define NAML_M_WILD_DIR 0x100000 00195 #define NAML_M_DIR_LVLS 0xE00000 00196 #define NAML_M_WILD_UFD 0x1000000 00197 #define NAML_M_WILD_SFD1 0x2000000 00198 #define NAML_M_WILD_SFD2 0x4000000 00199 #define NAML_M_WILD_SFD3 0x8000000 00200 #define NAML_M_WILD_SFD4 0x10000000 00201 #define NAML_M_WILD_SFD5 0x20000000 00202 #define NAML_M_WILD_SFD6 0x40000000 00203 #define NAML_M_WILD_SFD7 0x80000000 00204 #define NAML_M_WILD_GRP 0x1000000 00205 #define NAML_M_WILD_MBR 0x2000000 00206 #define NAML_M_DID 0x1 00207 #define NAML_M_FID 0x2 00208 #define NAML_M_RES_DID 0x4 00209 #define NAML_M_RES_FID 0x8 00210 #define NAML_M_RES_ESCAPE 0x10 00211 #define NAML_M_RES_UNICODE 0x20 00212 #define NAML_M_LONG_RESULT_ESCAPE 0x1 00213 #define NAML_M_FILESYS_NAME_UCS2 0x2 00214 #define NAML_M_LONG_RESULT_DID 0x4 00215 #define NAML_M_LONG_RESULT_FID 0x8 00216 #define NAML_M_LONG_RESULT_UNICODE 0x10 00217 #define NAML_M_NO_SHORT_OUTPUT 0x1 00218 00219 #define NAML_K_BLN 248 00220 #define NAML_C_BLN 248 00221 00222 struct _namdef { 00223 unsigned char nam_b_bid; 00224 unsigned char nam_b_bln; 00225 unsigned char nam_b_rss; 00226 unsigned char nam_b_rsl; 00227 char *nam_l_rsa; 00228 union { 00229 unsigned char nam_b_nop; 00230 struct { 00231 unsigned nam_v_pwd : 1; 00232 unsigned nam_v_fill_1 : 1; 00233 unsigned nam_v_fill_2 : 1; 00234 unsigned nam_v_synchk : 1; 00235 unsigned nam_v_noconceal : 1; 00236 unsigned nam_v_slparse : 1; 00237 unsigned nam_v_srchxabs : 1; 00238 unsigned nam_v_no_short_upcase : 1; 00239 }; 00240 }; 00241 unsigned char nam_b_rfs; 00242 unsigned char nam_b_ess; 00243 unsigned char nam_b_esl; 00244 char *nam_l_esa; 00245 union { 00246 struct _namdef *nam_l_rlf; 00247 struct _namldef *nam_l_rlf_naml; 00248 }; 00249 char nam_t_dvi [16]; 00250 union { 00251 unsigned short int nam_w_fid [3]; 00252 struct { 00253 unsigned short int nam_w_fid_num; 00254 unsigned short int nam_w_fid_seq; 00255 union { 00256 unsigned short int nam_w_fid_rvn; 00257 struct { 00258 unsigned char nam_b_fid_rvn; 00259 unsigned char nam_b_fid_nmx; 00260 }; 00261 }; 00262 }; 00263 }; 00264 union { 00265 unsigned short int nam_w_did [3]; 00266 struct { 00267 unsigned short int nam_w_did_num; 00268 unsigned short int nam_w_did_seq; 00269 union { 00270 unsigned short int nam_w_did_rvn; 00271 struct { 00272 unsigned char nam_b_did_rvn; 00273 unsigned char nam_b_did_nmx; 00274 }; 00275 }; 00276 }; 00277 }; 00278 union { 00279 unsigned long nam_l_wcc; // check. is index. drop long later. was int. 00280 struct { 00281 unsigned namdef_$_fill_1 : 16; 00282 unsigned nam_v_ifi : 1; 00283 unsigned namdef_$_fill_2 : 13; 00284 unsigned nam_v_srchnmf : 1; 00285 unsigned nam_v_svctx : 1; 00286 }; 00287 }; 00288 union { 00289 unsigned int nam_l_fnb; 00290 struct { 00291 unsigned nam_v_exp_ver : 1; 00292 unsigned nam_v_exp_type : 1; 00293 unsigned nam_v_exp_name : 1; 00294 unsigned nam_v_wild_ver : 1; 00295 unsigned nam_v_wild_type : 1; 00296 unsigned nam_v_wild_name : 1; 00297 unsigned nam_v_exp_dir : 1; 00298 unsigned nam_v_exp_dev : 1; 00299 unsigned nam_v_wildcard : 1; 00300 unsigned nam_v_dir_lvls_g7 : 1; 00301 unsigned nam_v_wild_sfdg7 : 1; 00302 unsigned nam_v_search_list : 1; 00303 unsigned nam_v_cncl_dev : 1; 00304 unsigned nam_v_root_dir : 1; 00305 unsigned nam_v_lowver : 1; 00306 unsigned nam_v_highver : 1; 00307 unsigned nam_v_ppf : 1; 00308 unsigned nam_v_node : 1; 00309 unsigned nam_v_quoted : 1; 00310 unsigned nam_v_grp_mbr : 1; 00311 unsigned nam_v_wild_dir : 1; 00312 unsigned nam_v_dir_lvls : 3; 00313 }; 00314 struct { 00315 unsigned namdef_$_fill_4 : 24; 00316 unsigned nam_v_wild_ufd : 1; 00317 unsigned nam_v_wild_sfd1 : 1; 00318 unsigned nam_v_wild_sfd2 : 1; 00319 unsigned nam_v_wild_sfd3 : 1; 00320 unsigned nam_v_wild_sfd4 : 1; 00321 unsigned nam_v_wild_sfd5 : 1; 00322 unsigned nam_v_wild_sfd6 : 1; 00323 unsigned nam_v_wild_sfd7 : 1; 00324 }; 00325 struct { 00326 unsigned namdef_$_fill_5 : 24; 00327 unsigned nam_v_wild_grp : 1; 00328 unsigned nam_v_wild_mbr : 1; 00329 unsigned nam_v_fill_5_ : 6; 00330 }; 00331 }; 00332 unsigned char nam_b_node; 00333 unsigned char nam_b_dev; 00334 unsigned char nam_b_dir; 00335 unsigned char nam_b_name; 00336 unsigned char nam_b_type; 00337 unsigned char nam_b_ver; 00338 union { 00339 unsigned char nam_b_nmc; 00340 struct { 00341 unsigned nam_v_did : 1; 00342 unsigned nam_v_fid : 1; 00343 unsigned nam_v_res_did : 1; 00344 unsigned nam_v_res_fid : 1; 00345 unsigned nam_v_res_escape : 1; 00346 unsigned nam_v_res_unicode : 1; 00347 unsigned namdef_$_fill_3 : 2; 00348 }; 00349 }; 00350 char namdef_$_fill_6 [1]; 00351 char *nam_l_node; 00352 char *nam_l_dev; 00353 char *nam_l_dir; 00354 char *nam_l_name; 00355 char *nam_l_type; 00356 char *nam_l_ver; 00357 unsigned short int nam_w_first_wild_dir; 00358 unsigned short int nam_w_long_dir_levels; 00359 unsigned int namdef_$_fill_7 [1]; 00360 }; 00361 00362 struct _namldef { 00363 unsigned char naml_b_bid; 00364 unsigned char naml_b_bln; 00365 unsigned char naml_b_rss; 00366 unsigned char naml_b_rsl; 00367 char *naml_l_rsa; 00368 union { 00369 unsigned char naml_b_nop; 00370 struct { 00371 unsigned naml_v_pwd : 1; 00372 unsigned naml_v_fill_1 : 1; 00373 unsigned naml_v_fill_2 : 1; 00374 unsigned naml_v_synchk : 1; 00375 unsigned naml_v_noconceal : 1; 00376 unsigned naml_v_slparse : 1; 00377 unsigned naml_v_srchxabs : 1; 00378 unsigned naml_v_no_short_upcase : 1; 00379 }; 00380 }; 00381 unsigned char naml_b_rfs; 00382 unsigned char naml_b_ess; 00383 unsigned char naml_b_esl; 00384 char *naml_l_esa; 00385 union { 00386 struct _namdef *naml_l_rlf; 00387 struct _namldef *naml_l_rlf_naml; 00388 }; 00389 char naml_t_dvi [16]; 00390 union { 00391 unsigned short int naml_w_fid [3]; 00392 struct { 00393 unsigned short int naml_w_fid_num; 00394 unsigned short int naml_w_fid_seq; 00395 union { 00396 unsigned short int naml_w_fid_rvn; 00397 struct { 00398 unsigned char naml_b_fid_rvn; 00399 unsigned char naml_b_fid_nmx; 00400 }; 00401 }; 00402 }; 00403 }; 00404 union { 00405 unsigned short int naml_w_did [3]; 00406 struct { 00407 unsigned short int naml_w_did_num; 00408 unsigned short int naml_w_did_seq; 00409 union { 00410 unsigned short int naml_w_did_rvn; 00411 struct { 00412 unsigned char naml_b_did_rvn; 00413 unsigned char naml_b_did_nmx; 00414 }; 00415 }; 00416 }; 00417 }; 00418 union { 00419 unsigned int naml_l_wcc; 00420 struct { 00421 unsigned namldef_$_fill_1 : 16; 00422 unsigned naml_v_ifi : 1; 00423 unsigned namldef_$_fill_2 : 13; 00424 unsigned naml_v_srchnmf : 1; 00425 unsigned naml_v_svctx : 1; 00426 }; 00427 }; 00428 union { 00429 unsigned int naml_l_fnb; 00430 struct { 00431 unsigned naml_v_exp_ver : 1; 00432 unsigned naml_v_exp_type : 1; 00433 unsigned naml_v_exp_name : 1; 00434 unsigned naml_v_wild_ver : 1; 00435 unsigned naml_v_wild_type : 1; 00436 unsigned naml_v_wild_name : 1; 00437 unsigned naml_v_exp_dir : 1; 00438 unsigned naml_v_exp_dev : 1; 00439 unsigned naml_v_wildcard : 1; 00440 unsigned naml_v_dir_lvls_g7 : 1; 00441 unsigned naml_v_wild_sfdg7 : 1; 00442 unsigned naml_v_search_list : 1; 00443 unsigned naml_v_cncl_dev : 1; 00444 unsigned naml_v_root_dir : 1; 00445 unsigned naml_v_lowver : 1; 00446 unsigned naml_v_highver : 1; 00447 unsigned naml_v_ppf : 1; 00448 unsigned naml_v_node : 1; 00449 unsigned naml_v_quoted : 1; 00450 unsigned naml_v_grp_mbr : 1; 00451 unsigned naml_v_wild_dir : 1; 00452 unsigned naml_v_dir_lvls : 3; 00453 }; 00454 struct { 00455 unsigned namldef_$_fill_4 : 24; 00456 unsigned naml_v_wild_ufd : 1; 00457 unsigned naml_v_wild_sfd1 : 1; 00458 unsigned naml_v_wild_sfd2 : 1; 00459 unsigned naml_v_wild_sfd3 : 1; 00460 unsigned naml_v_wild_sfd4 : 1; 00461 unsigned naml_v_wild_sfd5 : 1; 00462 unsigned naml_v_wild_sfd6 : 1; 00463 unsigned naml_v_wild_sfd7 : 1; 00464 }; 00465 struct { 00466 unsigned namldef_$_fill_5 : 24; 00467 unsigned naml_v_wild_grp : 1; 00468 unsigned naml_v_wild_mbr : 1; 00469 unsigned naml_v_fill_6_ : 6; 00470 }; 00471 }; 00472 unsigned char naml_b_node; 00473 unsigned char naml_b_dev; 00474 unsigned char naml_b_dir; 00475 unsigned char naml_b_name; 00476 unsigned char naml_b_type; 00477 unsigned char naml_b_ver; 00478 union { 00479 unsigned char naml_b_nmc; 00480 struct { 00481 unsigned naml_v_did : 1; 00482 unsigned naml_v_fid : 1; 00483 unsigned naml_v_res_did : 1; 00484 unsigned naml_v_res_fid : 1; 00485 unsigned naml_v_res_escape : 1; 00486 unsigned naml_v_res_unicode : 1; 00487 unsigned namldef_$_fill_3 : 2; 00488 }; 00489 }; 00490 char namldef_$_fill_6 [1]; 00491 char *naml_l_node; 00492 char *naml_l_dev; 00493 char *naml_l_dir; 00494 char *naml_l_name; 00495 char *naml_l_type; 00496 char *naml_l_ver; 00497 unsigned short int naml_w_first_wild_dir; 00498 unsigned short int naml_w_long_dir_levels; 00499 unsigned int namldef_$_fill_7 [1]; 00500 unsigned int naml_l_long_defname_size; 00501 char *naml_l_long_defname; 00502 unsigned int naml_l_long_filename_size; 00503 char *naml_l_long_filename; 00504 unsigned int naml_l_long_node_size; 00505 char *naml_l_long_node; 00506 unsigned int naml_l_long_dev_size; 00507 char *naml_l_long_dev; 00508 unsigned int naml_l_long_dir_size; 00509 char *naml_l_long_dir; 00510 unsigned int naml_l_long_name_size; 00511 char *naml_l_long_name; 00512 unsigned int naml_l_long_type_size; 00513 char *naml_l_long_type; 00514 unsigned int naml_l_long_ver_size; 00515 char *naml_l_long_ver; 00516 unsigned int naml_l_long_expand_size; 00517 char *naml_l_long_expand; 00518 unsigned int naml_l_long_expand_alloc; 00519 int naml_l_reserved_mbz_9; 00520 unsigned int naml_l_long_result_size; 00521 char *naml_l_long_result; 00522 unsigned int naml_l_long_result_alloc; 00523 int naml_l_reserved_mbz_8; 00524 unsigned int naml_l_filesys_name_size; 00525 char *naml_l_filesys_name; 00526 unsigned int naml_l_filesys_name_alloc; 00527 union { 00528 unsigned int naml_l_output_flags; 00529 struct { 00530 unsigned naml_v_long_result_escape : 1; 00531 unsigned naml_v_filesys_name_ucs2 : 1; 00532 unsigned naml_v_long_result_did : 1; 00533 unsigned naml_v_long_result_fid : 1; 00534 unsigned naml_v_long_result_unicode : 1; 00535 unsigned naml_v_fill_7_ : 3; 00536 }; 00537 }; 00538 union { 00539 unsigned int naml_l_input_flags; 00540 struct { 00541 unsigned naml_v_no_short_output : 1; 00542 unsigned naml_v_fill_8_ : 7; 00543 }; 00544 }; 00545 int naml_l_reserved_mbz_7; 00546 unsigned long long naml_q_user_context; 00547 int naml_l_reserved_mbz_6; 00548 int naml_l_reserved_mbz_5; 00549 int naml_l_reserved_mbz_4; 00550 int naml_l_reserved_mbz_3; 00551 int naml_l_reserved_mbz_2; 00552 int naml_l_reserved_mbz_1; 00553 }; 00554 00555 extern struct _namdef cc_rms_nam; 00556 00557 extern struct _namldef cc_rms_naml; 00558 00559 #endif 00560 00561