User Tools

Site Tools


cdc:nos2.source:nam5871:lfgdb

Table of Contents

LFGDB

Table Of Contents

  • [00002] PROC LFGDB
  • [00005] DIRECTORY BUFFER FORMAT.
  • [00020] PROC LFGDIR

Source Code

LFGDB.txt
  1. *DECK LFGDB
  2. PROC LFGDB;
  3. BEGIN
  4. #
  5. *** LFGDB - DIRECTORY BUFFER FORMAT.
  6. *
  7. * LFGDB CONTAINS THE FORMAT FOR THE NLF DIRECTORY BUFFER
  8. * HEADER AND ENTRIES.
  9. *
  10. #
  11. CONTROL STEXT;
  12. COMMON DB; # DIRECTORY BUFFER #
  13. BEGIN
  14. ARRAY DIRB [0:O"1000"] S(1);
  15. BEGIN
  16. ITEM DIRB$WORD U;
  17. END
  18. END
  19. END TERM
  20. PROC LFGDIR; # NLF/NCF DIRECTORY FORMATS/DEFS #
  21. BEGIN # LFGDIR #
  22. CONTROL STEXT;
  23. DEF DIR$IDENT # O"7000" #; # OPLD IDENTIFIER #
  24. DEF DIR$HDRL # 2 #; # DIRECTORY HEADER LENGTH #
  25. DEF DIR$ENTRYL # 2 #; # DIRECTORY ENTRY LENGTH #
  26. DEF DIR$RT$FH # O"7700" #; # FILE HEADER RECORD TYPE #
  27. DEF DIR$RT$NC # O"1603" #; # NCB RECORD TYPE #
  28. DEF DIR$RT$NX # O"1630" #; # NPU XREF TABLE RECORD TYPE #
  29. DEF DIR$RT$PH # O"2010" #; # PHYLINK TABLE RECORD TYPE #
  30. COMMON DIR$COM;
  31. BEGIN # DIR$COM #
  32. ITEM NLFDIRFWA U; # FWA OF DEFAULT NLF DIRECTORY RECORD #
  33. BASED ARRAY DIR [0:0] S(DIR$HDRL);
  34. BEGIN # OPLD DIRECTORY #
  35. ITEM DIR$HDRWD1 U(00,00,60); # HEADER WORD ONE #
  36. ITEM DIR$HDRWD2 U(01,00,60); # HEADER WORD TWO #
  37. ITEM DIR$ID U(00,00,12); # SET TO 7000 #
  38. ITEM DIR$ZERO U(00,12,12); # ZEROED #
  39. ITEM DIR$FID C(00,42,03); # FILE ID, "NCF" OR "NLF" #
  40. ITEM DIR$WC U(01,48,12); # DIRECTORY LENGTH #
  41. ITEM DIR$NLFEW1 U(00,00,60); # NLF DIRECTORY ENTRY WORD ONE #
  42. ITEM DIR$RNAME C(00,00,06); # RECORD NAME IN DISPLAY CODE #
  43. ITEM DIR$NCFEW1 U(00,00,60); # NCF DIRECTORY ENTRY WORD ONE #
  44. ITEM DIR$NCFRT U(00,00,12); # NCF RECORD TYPE #
  45. ITEM DIR$NCFNID U(00,12,08); # NPU NODE NUMBER #
  46. ITEM DIR$NCBSZ U(00,20,16); # NCB SIZE #
  47. ITEM DIR$EW2 U(01,00,60); # DIRECTORY ENTRY WORD TWO #
  48. ITEM DIR$RL U(01,00,30); # RECORD LENGTH #
  49. ITEM DIR$RSA U(01,30,30); # RELATIVE SECTOR ADDRESS #
  50. END
  51. END # DIR$COM #
  52. END # LFGDIR #
  53. TERM
cdc/nos2.source/nam5871/lfgdb.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator