User Tools

Site Tools


cdc:nos2.source:nam5871:ns_rpv

NS$RPV

Table Of Contents

  • [00009] PROC NS$RPV
  • [00011] NS$RPV - REPRIEVE PROCESSOR.
  • [00015] REPRIEVE PROCESSOR.
  • [00046] PROC NS$DBG
  • [00052] PROC NETDMB
  • [00053] PROC NETPUT
  • [00054] PROC NETSETF
  • [00055] PROC NS$FBH
  • [00056] PROC RSJCR
  • [00057] PROC TSBINFO
  • [00058] PROC WRITER

Source Code

NS$RPV.txt
  1. *DECK NS$RPV
  2. USETEXT COM$NS
  3. USETEXT NAT$NS
  4. USETEXT NPT$NS
  5. USETEXT PFC$NS
  6. USETEXT SMB$NS
  7. USETEXT SMD$NS
  8.  
  9. PROC NS$RPV; # REPRIEVE PROCESSOR #
  10.  
  11. # TITLE NS$RPV - REPRIEVE PROCESSOR. #
  12.  
  13. BEGIN # NS$RPV #
  14. #
  15. ** NS$RPV - REPRIEVE PROCESSOR.
  16. *
  17. * J.C. LEE 1981
  18. *
  19. * THIS ROUTINE DOES REPRIEVE PROCESSING.
  20. *
  21. * PROC NS$RPV
  22. *
  23. * ENTRY:
  24. * NONE.
  25. *
  26. * EXIT:
  27. * NONE.
  28. *
  29. * METHOD:
  30. * SET DUMP RECORD NUMBER FOR REPRIEVE DUMP.
  31. * DUMP FL/EXC PACKAGE
  32. * IF NS INITIALIZATION NOT COMPLETE:
  33. * DO NOT RESTART NS.
  34. * ELSE
  35. * CLEAN UP NATS.
  36. * IF LOADING REMOTE NPU:
  37. * SEND NPU/IN/N
  38. * IF NS ALREADY NETTED-ON:
  39. * FLUSH AIP TRACE FILE.
  40. *
  41. #
  42.  
  43. $BEGIN
  44. XREF
  45. BEGIN
  46. PROC NS$DBG; # TRACE PROCEDURE CALL #
  47. END
  48. $END
  49.  
  50. XREF
  51. BEGIN
  52. PROC NETDMB; # BINARY DUMP FL/EXCHANGE PACKAGE #
  53. PROC NETPUT; # AIP NETPUT #
  54. PROC NETSETF; # GET ZZZZZDN FILE FWA #
  55. PROC NS$FBH; # FORMAT ABH #
  56. PROC RSJCR; # RESET JOB CONTROL REGISTER #
  57. PROC TSBINFO; # LOCATE TSB #
  58. PROC WRITER; # FLUSH TRACE FILE ZZZZZDN #
  59. END
  60.  
  61. ITEM I I; # LOOP VARIABLE #
  62. ITEM NATFWA U; # NAT TSB FWA #
  63. ITEM NATSIZE U; # NAT SIZE #
  64. ITEM NEXTNATTSB U; # NEXT NAT IN NAT LIST #
  65. ITEM ZZDNFWA I; # FWA OF AIP TRACE FILE ZZZZZDN #
  66.  
  67. BASED ARRAY ZZDNFET [0:0] P(1);
  68. BEGIN
  69. ITEM ZZDNWORDS U(00,00,60);
  70. END
  71.  
  72. CONTROL EJECT;
  73.  
  74. $BEGIN
  75. NS$DBG("RPV"); # TRACE CALL #
  76. $END
  77.  
  78. ZDMBID$DN[0] = 7; # SET DUMP RECORD NUMBER FOR REPRIEVE DUMP #
  79. NETDMB(ZDMBID[0],0); # DUMP FL/EXC PACKAGE #
  80.  
  81. IF NOT NSINITDONE
  82. THEN # INITIALIZATION NOT COMPLETE #
  83. BEGIN # DO NOT RESTART NS #
  84. RSJCR(1,1,0); # SET CONROL REG 1 TO 0 #
  85. END
  86.  
  87. ELSE
  88.  
  89. BEGIN
  90.  
  91. NEXTNATTSB = NPT$NLHEAD[0]; # HEAD PTR OF NAT LIST #
  92.  
  93. FOR I = 0 WHILE NEXTNATTSB NQ 0
  94. DO # MORE NAT TO CLEAN UP #
  95. BEGIN
  96. TSBINFO(NATSIZE,NATFWA,NEXTNATTSB); # LOCATE NAT #
  97. P<NAT> = NATFWA; # FWA OF NAT #
  98. NEXTNATTSB = NAT$NLFP[0]; # NEXT NAT IN LIST #
  99.  
  100. IF NAT$F$RMTL[0]
  101. THEN # LOADING REMOTE NPU #
  102. BEGIN # SEND NPU/IN/N #
  103. NS$FBH(LNPUIN,TRUE); # FORMAT ABH #
  104. PFCSFC[0] = NPUINN; # SET PFC/SFC #
  105. NPUPO[0] = NAT$PN[0]; # SET PORT NUMBER #
  106. NPUSP[0] = NAT$SPN[0]; # SET SUBPORT NUMBER #
  107. NPULT[0] = LOADTYPE"LT$REMOT"; # SET LOAD TYPE #
  108. NETPUT(ABH$WORD,SMB$BUFFER); # SEND NPU/IN/N #
  109. END
  110. END # END FOR LOOP #
  111. END
  112.  
  113.  
  114. IF NSNETON
  115. THEN # NETON WAS SUCCESSFUL #
  116. BEGIN
  117. NETSETF(FALSE,ZZDNFWA); # GET TRACE FILE FWA #
  118. P<ZZDNFET> = ZZDNFWA;
  119. IF P<ZZDNFET> NQ 0
  120. THEN # ZZZZZDN FILE EXISTS #
  121. WRITER(ZZDNFET); # FLUSH AIP TRACE FILE #
  122. END
  123.  
  124. RETURN;
  125. END # NS$RPV #
  126. TERM
cdc/nos2.source/nam5871/ns_rpv.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator