User Tools

Site Tools


cdc:nos2.source:nam5871:netlgs

NETLGS

Table Of Contents

  • [00009] PROC NETLGS(ADDR,SIZE)
  • [00073] ENTRY PROC QTLGS(ADDR,SIZE)

Source Code

NETLGS.txt
  1. *DECK NETLGS
  2. *IF DEF,STAT
  3. USETEXT AIPDEF
  4. USETEXT NP$DB
  5. USETEXT NP$STAT
  6. USETEXT NP$MODE
  7. USETEXT NP$NWL
  8. *ENDIF
  9. PROC NETLGS(ADDR,SIZE) ;
  10.  
  11. #
  12. *1DC NETLGS
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * NETLGS L.T.NGUYEN 03/30/82
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION:
  18. * PROCESS NETLGS FROM APPLICATION.
  19. *
  20. * 3. METHOD USED:
  21. * GET DATE AND TIME, WRITE HEADER TO ZZSN
  22. * WRITE MESSAGE TO ZZSN. UPDATE THE NSUP COUNT.
  23. * IF I/O ERROR HAS OCCURRED ON STATISTICS FILE,
  24. * CALL NP$PIOE TO PROCESS I/O ERROR.
  25. *
  26. * 4. INPUT PARAMS:
  27. * ADDR - FWA OF MESSAGE.
  28. * SIZE - SIZE OF MESSAGE.
  29. *
  30. * 5. EXIT PARAMS :
  31. * NONE.
  32. *
  33. * 6. ROUTINES CALLED:
  34. * NP$DATE
  35. * NP$CLK
  36. * NP$PIOE - PROCESS I/O ERROR AFTER WRITE OPERATION
  37. * NP$WRTW
  38. *
  39. *
  40.  #
  41. BEGIN
  42. ITEM ADDR ;
  43. ITEM SIZE ;
  44. *IF DEF,STAT
  45. #
  46.   EXTERNAL ROUTINES
  47. #
  48. XREF PROC NP$DATE ; # GET DATE FROM SYSTEM #
  49. XREF PROC NP$CLK ; # GET TIME FROM SYSTEM #
  50. XREF PROC NP$PIOE; # PROCESS I/O ERROR ON DISK FILE #
  51. XREF PROC NP$WRTW ; # WRITE BUFFER TO ZZZZZSN FILE #
  52. XREF PROC NP$SN ;
  53.  
  54. #
  55.   LOCAL VARS
  56. #
  57. ITEM CHARWD C(10) ; # CHARATER FIELD FOR DATE #
  58.  
  59. ARRAY STMSG P(6) ;
  60. BEGIN
  61. ITEM ST$CCA C(0,0,10) = [" "] ;
  62. ITEM ST$MSG3 C(1,0,13) = [" NETLGS DATE "] ;
  63. ITEM ST$DATE C(2,18,10) ;
  64. ITEM ST$MSG4 C(3,18,7) = [" TIME"] ;
  65. ITEM ST$TIME C(4,0,10) ;
  66. ITEM ST$EOLA I(5,0,60) = [0] ;
  67. END
  68.  
  69.  
  70. BEGIN # NETLGS #
  71. *ENDIF
  72.  
  73. ENTRY PROC QTLGS(ADDR,SIZE); # QTRM ENTRY POINT FOR THIS PROC#
  74.  
  75. *IF DEF,STAT
  76. NP$SN(TYPE"LGS") ; # STATISTIC COUNT #
  77.  
  78. IF NOT ACCEPTED
  79. THEN
  80. RETURN ; # APPL. HAS NOT NETTED ON YET #
  81.  
  82. ELSE
  83. BEGIN # WRITE TO ZZZZZSN FILE #
  84. NP$DATE(CHARWD) ; # GET DATE #
  85. ST$DATE = CHARWD ;
  86. NP$CLK(CHARWD) ; # GET TIME #
  87. ST$TIME = CHARWD ;
  88.  
  89. NP$WRTW(SN$FET,STMSG,6) ; # NETLGS HEADER TO ZZSN #
  90. NP$WRTW(SN$FET,ADDR,SIZE) ; # MSG TO ZZSN FILE #
  91. MSGCNT[0] = MSGCNT[0] + 1 ; # UPDATE NSUP COUNT #
  92. #
  93.   CHECK FOR I/O ERROR IN STATISTICS FILE
  94. #
  95. IF SN$AT[0] NQ 0
  96. THEN # I/O ERROR HAS OCCURRED ON FILE#
  97. BEGIN
  98. NP$PIOE(SN$FET); # PROCESS I/O ERROR #
  99. END
  100. END # WRITE TO ZZZZZSN FILE #
  101.  
  102. END
  103. *ENDIF
  104. RETURN ;
  105. END # NETLGS #
  106.  
  107. TERM
  108.  
cdc/nos2.source/nam5871/netlgs.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator