User Tools

Site Tools


cdc:nos2.source:nam5871:textss

TEXTSS

Table Of Contents

  • [00002] PROC TEXTSS
  • [00003] TEXTSS - SYMPL TEXT FOR SERVICES AND SCHEDULING.
  • [00007] SYMPL TEXT FOR SERVICES AND SCHEDULING.
  • [00046] SVL - STATISTICS VALUE LIST.
  • [00070] TPOINT - LABELED COMMON BLOCK.
  • [00092] RPVBLK - LABELLED COMMON BLOCK FOR REPRIEVE PROCESSING.
  • [00113] SSBUILD - LABELED COMMON BLOCK FOR SUPERVISORY APPLICATION BUILD
  • [00140] WTABLES - LABELED COMMON BLOCK.
  • [00158] WRQ - WORKLIST REQUEST QUEUE.
  • [00176] WDF - WORKLIST DEFINITIONS TABLE.
  • [00211] QWD - QUEUE TO WORKLIST DEFINITIONS TABLE.
  • [00229] SWT - STATUS WORKLIST DEFINITIONS.
  • [00255] LDRINFO - MAIN PROGRAM/OVERLAY LOAD INFORMATION.
  • [00271] EACPM - LOADER ABSOLUTE CENTRAL MEMORY TABLE. (5400 TABLE)
  • [00290] EAHPM - LOADER ABSOLUTE CENTRAL MEMORY TABLE FOR HEGHER LEVEL OVLY
  • [00308] ODT - OVERLAY DEFINITION TABLE.
  • [00332] OVCONTROL - CONTROL OF EXECUTION OF OVERLAYS.
  • [00345] ORC - OVERLAY REQUEST COUNTER.
  • [00360] ORT - OVERLAY REQUEST TABLE.
  • [00380] OVLFET - FILE ENVIRONMENTAL TABLE FOR OVERLAY LOADING.
  • [00416] RT - ROLLOUT TABLE.
  • [00433] PGMROLL - PROGRAM ROLLOUT TABLE.
  • [00453] BUFFERS - LABELLED COMMON BLOCK.
  • [00466] WCBUF - WORD COUNT BUFFER.
  • [00484] ABHBUF - APPLICATION BLOCK HEADER BUFFER.
  • [00497] MSGBUF - MESSAGE BLOCK BUFFER.
  • [00518] SSCOM - LABELED COMMON BLOCK.
  • [00532] NSUP - SUPERVISORY STATUS WORD
  • [00553] SSIPTQ - SS LINKAGE FOR OUTGOING TRAFFIC QUEUE.
  • [00576] SSITRQ - SS LINKAGE FOR OUTGOING TRAFFIC QUEUE.
  • [00604] TRQ1 - TIMER REQUEST QUEUE.
  • [00641] SSWLE - WORKLIST NUMBERS FOR SERVICES AND SCHEDULING.
  • [00657] LOADBASE - POINT WHERE OVERLAYS ARE LOADED.
  • [00672] SSMEM - ADDRESS OF *MEMLOC*.
  • [00686] TXTALEN - LENGTH OF AIP TEXT AREA.
  • [00703] CLOCKS - LABELED COMMON BLOCK.
  • [00732] CCARD - LABELED COMMON BLOCK.
  • [00750] SSINTR - LABELED COMMON BLOCK.
  • [00771] STATBUF - LABELED COMMON BLOCK.

Source Code

TEXTSS.txt
  1. *DECK TEXTSS
  2. PROC TEXTSS;
  3. # TITLE TEXTSS - SYMPL TEXT FOR SERVICES AND SCHEDULING. #
  4.  
  5. BEGIN # TEXTSS #
  6. #
  7. ** TEXTSS - SYMPL TEXT FOR SERVICES AND SCHEDULING.
  8. *
  9. * S.H. FISCHER. 81/07/23.
  10. * D.G. DEPEW. 81/08/14.
  11. * C.J. BRION 82/06/10, 83/06/06, 83/12/12.
  12. *
  13. * THIS PROC GENERATES A SYMPL TEXT FOR COMPILING SERVICES
  14. * AND SCHEDULING.
  15. * IT CONTAINS DEFINITIONS OF SYMBOLS, PARAMETERS, COMMON BLOCKS ECT.
  16. * USED THROUGHOUT THE PROGRAM.
  17. #
  18.  
  19.  
  20. CONTROL STEXT ;
  21.  
  22.  
  23.  
  24.  
  25. DEF DEFMC$ # 500 #; # DEFAULT MC VALUE #
  26. DEF MRT # 05 #; # MINIMUM ROLLOUT TIME #
  27. DEF MFRT$ # 2 #; # MINIMUM FORCED ROLLOUT TIME #
  28. DEF MAXNULL$ # 03 #; # MAX NUMBER NULL NETGETS WITH #
  29. # OUT ACTIVITY BEFORE FORCE ROLL#
  30.  
  31. DEF OFSIZ$ # 7 #; # SIZE OF OVLFILE FET #
  32. DEF NWDF$ # 47 #; # NUMBER OF WORKLIST DEFINITIONS#
  33. DEF NMSGBUF$ # 199 #; # NUMBER OF ENTRIES IN MSGBUF-1 #
  34. DEF NODT$ # 06 #; # NUMBER OF OVLY DEFINITIONS #
  35. DEF NRT$ # 06 #; # NUM OF ENTRIES IN ROLLOUT TBL #
  36. DEF NSVT$ # 10 #; # NUMBER OF SS STATISTICS VALUES#
  37. DEF NSWT$ # 9 #; # NUMBER OF STATUS WORKLIST DEF #
  38. DEF NTBL$ # 47 #; # NUMBER OF MANAGED TABLES #
  39. DEF SSBUILD$ # 4 #; # SUPERVISORY APPL BUILD MSG LEN#
  40. DEF SWAP$BLK # 1 #; # BLOCK TYPE ONE #
  41. DEF SWAP$MSG # 2 #; # BLOCK TYPE TWO #
  42. DEF SWAP$DELAY # 700 #; # DELAY IN MILLISECONDS BEFORE #
  43. # AN UNFORCED NETWAIT IS DONE #
  44.  
  45. #
  46. ** SVL - STATISTICS VALUE LIST.
  47. *
  48. * THIS STATUS LIST DEFINES THE ENTRIES IN THE STATISTICS VALUES
  49. * TABLE(SVT) WHICH SS MAINTAINS.
  50. *
  51. #
  52. STATUS SVL
  53. UNKNOWN,
  54. AQE, # NUMBER OF CALLS TO SSTAQE #
  55. ETS, # NUMBER OF CALLS TO SSTETS #
  56. RAS1, # NUMBER OF CALLS TO RAS FROM SSTATS #
  57. RAS2, # NUMBER OF CALLS TO RAS FROM SSTDFL #
  58. RAS3, # NUMBER OF CALLS TO RAS FROM SSTSDA #
  59. RCM, # NUMBER OF CALLS TO SSTRCM #
  60. RQE, # NUMBER OF CALLS TO SSTRQE #
  61. RTS, # NUMBER OF CALLS TO SSTRTS #
  62. SDA, # NUMBER OF CALLS TO SSTSDA #
  63. WNR; # NUMBER OF CALLS TO SSTSDA #
  64.  
  65.  
  66.  
  67.  
  68.  
  69. #
  70. ** TPOINT - LABELED COMMON BLOCK.
  71. *
  72. * THIS LABELED COMMON BLOCK IS FIRST IN MEMORY AND IS USED TO LOCATE
  73. * IMPORTANT PARTS OF THE PROGRAM WHEN A LOAD MAP IS NOT AVAILABLE.
  74. *
  75. #
  76.  
  77.  
  78. COMMON TPOINT;
  79. BEGIN # TPOINT #
  80.  
  81.  
  82. ARRAY TPA [00:15] S(1);
  83. BEGIN
  84. ITEM TPA$NAME C(00,00,07); # DISPLAY CODE POINTER NAME #
  85. ITEM TPA$ADDR U(00,42,18); # ADDRESS OF NAMED THINGY #
  86. END
  87.  
  88.  
  89. END # TPOINT #
  90.  
  91. #
  92. ** RPVBLK - LABELLED COMMON BLOCK FOR REPRIEVE PROCESSING.
  93. *
  94. * THIS COMMON BLOCK IS USED TO SET THE REPRIEVE PARAMETER BLOCK
  95. * IN A PROGRAM DEPENDENT MANNER IF NEEDED.
  96. #
  97.  
  98. COMMON RPVCOM;
  99.  
  100. BEGIN # RPVCOM #
  101.  
  102. ARRAY RPVBLK [00:00] S(25);
  103. BEGIN
  104. ITEM RPV$WORD0 U(00,00,60);
  105. ITEM RPV$ADDR U(01,00,60) = [0];
  106. ITEM RPV$WORD2 U(02,00,60);
  107. END
  108.  
  109.  
  110. END # RPVCOM #
  111.  
  112. #
  113. ** SSBUILD - LABELED COMMON BLOCK FOR SUPERVISORY APPLICATION BUILD
  114. * MESSAGE.
  115. *
  116. * THIS COMMON BLOCK IS USED FOR SUPERVISORY APPLICATIONS BUILD
  117. * MESSAGE. THE APPLICATION NAME IS SUPPLIED BY THE APPLICATION
  118. * PROGRAM AT INITIALIZATION TIME, AND THE BUILD DATE AND TIME IS
  119. * SUPPLIED BY THE COMPASS ROUTINE *SSSPAT*.
  120. *
  121. #
  122.  
  123.  
  124. COMMON SSBUILD;
  125. BEGIN # SSBUILD #
  126.  
  127.  
  128. ARRAY SBUILD[00:00] S(SSBUILD$);
  129. BEGIN
  130. ITEM SBD$ANAME C(00,00,04); # SUPERVISORY APPL NAME #
  131. END
  132.  
  133.  
  134. END # SSBUILD #
  135.  
  136.  
  137.  
  138.  
  139. #
  140. ** WTABLES - LABELED COMMON BLOCK.
  141. *
  142. * THIS COMMON BLOCK CONTAINS THE DEFINITION AND STATUS OF
  143. * THE PROGRAM. THE TABLES ARE BUILT AT INITIALIZATION TIME
  144. * AND UPDATED AT THE PROGRAM OPERATES. PARTS OF THE PROGRAM
  145. * ARE SCHEDULED FOR EXECUTION USING THESE TABLES AS WORK
  146. * NEEDS TO BE DONE.
  147. *
  148. #
  149.  
  150.  
  151. COMMON WTABLES ;
  152. BEGIN # WTABLES #
  153.  
  154.  
  155.  
  156.  
  157. #
  158. ** WRQ - WORKLIST REQUEST QUEUE.
  159. *
  160. *
  161. * THIS ITEM HAS A BIT SET FOR EACH TYPE 0 WORKLIST REQUEST
  162. * TO BE EXECUTED. BIT 12 CORRESPONDS TO THE FIRST WORKLIST
  163. * DEFINITION AND HAS THE HIGHEST PRIORITY, BIT 13
  164. * CORRESPONDS TO THE SECOND WORKLIST DEFINITION AND IS NEXT
  165. * IN PRIORITY ECT.
  166. *
  167. #
  168.  
  169.  
  170. ITEM WRQ U ; # WORKLIST REQUEST QUEUE #
  171.  
  172.  
  173.  
  174.  
  175. #
  176. ** WDF - WORKLIST DEFINITIONS TABLE.
  177. *
  178. * THIS ARRAY CONTAINS THE WORKLIST DEFINITIONS FOR THE PROGRAM.
  179. * THERE ARE THREE TYPES OF ENTRIES.
  180. *
  181. * RESIDENT ROUTINE.
  182. * WDF$TYPE = 0.
  183. * WDF$RADD = RESIDENT ROUTINE ADDRESS.
  184. *
  185. * STATUS WORKLIST LINKAGE ADDRESS.
  186. * WDF$TYPE = 1.
  187. * WDF$CADD = ADDRES OF CELL TO CHANGE.
  188. *
  189. * OVERLAY RESIDENT ROUTINE.
  190. * WDF$TYPE = 2.
  191. * WDF$OVN = OVERLAY NUMBER.
  192. * WDF$OEN = OVERLAY ROUTINE ENTRY NUMBER.
  193. *
  194. #
  195.  
  196.  
  197.  
  198. ARRAY WDF[0:NWDF$] S(1); #WORKLIST DEFINITIONS TABLE #
  199. BEGIN
  200. ITEM WDF$TYPE U(00,00,12); #WLE TYPE #
  201. ITEM WDF$RADD U(00,42,18); #ROUTINE ADDRESS #
  202. ITEM WDF$CADD U(00,42,18); #CELL ADDRESS #
  203. ITEM WDF$OVN U(00,12,12); #OVERLAY NUMBER #
  204. ITEM WDF$OEN U(00,24,12); #OVERLAY ENTRY NUMBER #
  205. END
  206.  
  207.  
  208.  
  209.  
  210. #
  211. ** QWD - QUEUE TO WORKLIST DEFINITIONS TABLE.
  212. *
  213. * THIS ARRAY CONTAINS THE WORKLIST NUMBERS FOR THE VARIOUS QUEUES.
  214. * WHEN AN ENTRY IS MADE IN A QUEUE THIS NUMBER DENOTES THE
  215. * WORKLIST DEFINITION ENTRY TO PROCESS THE QUEUE.
  216. *
  217. #
  218.  
  219.  
  220. ARRAY QWD[0:NTBL$] S(1); #QUEUE TO WORKLIST DEFINITIONS TABLE #
  221. BEGIN
  222. ITEM QWD$WLN U(00,48,12); #WORKLIST NUMBERS FOR QUEUES #
  223. END
  224.  
  225.  
  226.  
  227.  
  228. #
  229. ** SWT - STATUS WORKLIST DEFINITIONS.
  230. *
  231. *
  232. *
  233. * THIS ARRAY CONTAINS THE CURRENT CONDITIONS TO BE WATCHED
  234. * FOR THE MONITORS AND THE ADDRESSES TO BE EXECUTED WHEN
  235. * THE CONDITIONS CHANGE.
  236. *
  237. #
  238.  
  239.  
  240. ARRAY SWT [00:NSWT$] S(3);
  241. BEGIN
  242. ITEM SWT$ADDR1 U(00,06,18); #ADDR OF 1ST CELL TO BE WATCHED #
  243. ITEM SWT$ADDR2 U(00,24,18); #ADDR OF 2ND CELL TO BE WATCHED #
  244. ITEM SWT$RTN U(00,42,18); #ADDR OF ROUTINE TO CALL #
  245. ITEM SWT$INIT1 U(01,00,60); #INITIAL VALUE OF CELL ONE #
  246. ITEM SWT$INIT2 U(02,00,60); #INITIAL VALUE OF CELL TWO #
  247. END
  248.  
  249. ITEM SWTA U; # NUMBER OF ACTIVE SWT ENTRIES #
  250.  
  251.  
  252.  
  253.  
  254. #
  255. ** LDRINFO - MAIN PROGRAM/OVERLAY LOAD INFORMATION.
  256. *
  257. * THE FOLLOWING BASED ARRAY IS USED TO DETERMINE FROM WHENCE THE
  258. * PROGRAM WAS LOADED. IT MUST POINT TO LOCATION 64B OF PROGRAM FL.
  259. #
  260.  
  261. BASED ARRAY LDRINFO[00:00] S(1);
  262. BEGIN
  263. ITEM LDI$NAME C(00,00,07); # CONTROL STATEMENT VERB #
  264. ITEM LDI$LB B(01,41,01); # LOAD FROM SYSTEM FLAG #
  265. END
  266.  
  267.  
  268.  
  269.  
  270. #
  271. ** EACPM - LOADER ABSOLUTE CENTRAL MEMORY TABLE. (5400 TABLE)
  272. *
  273. * THIS TABLE LOADED AT 100B IS USED TO LOAD THE OVERLAY FROM THE
  274. * SYSTEM, AND THEN FROM THE OVERLAY FILE AS THE PROGRAM EXECUTES.
  275. #
  276.  
  277. BASED ARRAY EACPM[00:00] S(8);
  278. BEGIN
  279. ITEM EAC$NEP U(00,42,18); # NUMBER OF ENTRY POINTS #
  280. ITEM EAC$WCS U(01,00,18); # 0,0 OVERLAY LENGTH #
  281. ITEM EAC$MIFL U(01,42,18); # 0,0 OVERLAY LAST WORD ADDR+1 #
  282. ITEM EAC$HHA U(04,42,18); # HIGHEST HIGH ADDRESS ALL OVLS #
  283. ITEM EAC$DL U(06,42,18); # FAST OVL DIRECTORY LENGTH #
  284. END
  285.  
  286.  
  287.  
  288.  
  289. #
  290. ** EAHPM - LOADER ABSOLUTE CENTRAL MEMORY TABLE FOR HEGHER LEVEL OVLY
  291. *
  292. * THIS TABLE, SITUATED AT THE VERY BEGINNING OF THE OVERLAY, GIVES
  293. * INFORMATION ABOUT THE OVERLAY.
  294. #
  295. BASED ARRAY EAHPM [00:00] S(1);
  296. BEGIN
  297. ITEM EAH$NEP U(00,42,18);
  298. ITEM EAH$WCS U(01,00,18);
  299. ITEM EAH$MIFL U(01,42,18);
  300. ITEM EAH$EP C(04,00,07);
  301. ITEM EAH$EPA U(04,42,18);
  302. END
  303.  
  304.  
  305.  
  306.  
  307. #
  308. ** ODT - OVERLAY DEFINITION TABLE.
  309. *
  310. * THIS ARRAY IS PART OF THE EACPM ARRAY.
  311. * THE START OF THIS ARRAY DEPENDS ON THE NUMBER OF 0,0 OVERLAY
  312. * ENTRY POINTS DEFINED AND IS SET AT INITIALIZATION TIME.
  313. * EACH ENTRY CONTAINS THE NAME, THE LENGTH, AND THE
  314. * DISK ADDRESS FOR THE OVERLAY.
  315. #
  316.  
  317. BASED ARRAY ODT [00:00] S(2);
  318. BEGIN
  319. ITEM ODT$NAME C(00,00,07); # OVERLAY NAME #
  320. ITEM ODT$FWA U(00,42,18); # FIRST WORD ADDR OF OVERLAY #
  321. ITEM ODT$WRD0 I(00,00,60);
  322. ITEM ODT$LVL U(01,00,12); # OVERLAY LEVEL NUMBER #
  323. ITEM ODT$PLVL U(01,00,06); # PRIMARY OVERLAY LEVEL NUMBER #
  324. ITEM ODT$PRU U(01,24,18); # RELATIVE DISK PRU ADDRESS #
  325. ITEM ODT$LWA U(01,42,18); # LAST WORD ADDR + 1 OF OVERLAY #
  326. END
  327.  
  328.  
  329.  
  330.  
  331. #
  332. ** OVCONTROL - CONTROL OF EXECUTION OF OVERLAYS.
  333. *
  334. * THIS SET OF ITEMS IS USED FOR EXECUTING OVERLAYS.
  335. *
  336. #
  337.  
  338.  
  339. ITEM OVNUM I; # NUMBER OF OVERLAY CURRENTLY EXECUTING #
  340. ITEM OVENUM I; # NUMBER OF OVERLAY ENTRY POINT TO EXECUTE#
  341.  
  342.  
  343.  
  344. #
  345. ** ORC - OVERLAY REQUEST COUNTER.
  346. *
  347. * THIS ITME CONTAINS THE NUMBER OF OUTSTANDING OVERLAY REQUESTS
  348. * MADE. IT CORRESPONDS TO THE NUMBER OF BITS SET IN THE OVERLAY
  349. * REQUEST TABLE.
  350. *
  351. #
  352.  
  353.  
  354. ITEM ORC I; # OVERLAY REQUEST COUNT #
  355.  
  356.  
  357.  
  358.  
  359. #
  360. ** ORT - OVERLAY REQUEST TABLE.
  361. *
  362. * THIS ARRAY CONTAINS BIT MAPS WHICH ARE SET WHEN AN OVERLAY REQUEST
  363. * IS MADE. EACH ENTRY CORRESPONDS TO AN ENTRY IN THE OVERLAY
  364. * DEFINITION TABLE. THE ENTRIES CONTAIN A BIT MAP, WITH EACH BIT
  365. * CORRESPONDING WITH AN ENTRY POINT IN THE OVERLAY.
  366. *
  367. #
  368.  
  369.  
  370. ARRAY ORT [00:NODT$] S(1);
  371. BEGIN
  372. ITEM ORT$MAP U(00,12,48); # ENTRY POINT BIT MAP #
  373. ITEM ORT$WORD U(00,00,60);
  374. END
  375.  
  376.  
  377.  
  378.  
  379. #
  380. ** OVLFET - FILE ENVIRONMENTAL TABLE FOR OVERLAY LOADING.
  381. *
  382. * THIS FET IS USED TO TRANSFER OVERLAYS FROM THE SYSTEM FILE
  383. * TO THE OVLFILE DURING INITIALIZATION OF THE PROGRAM.
  384. * IT THEN IS USED TO LOAD THE OVERLAYS IN FOR EXECUTION.
  385. * OVERLAYS ARE LOADED FROM A FILE WITHOUT RECALL WHICH
  386. * IS PROHIBITED BY THE OPERATION SYSTEM.
  387. * ANY DATA THAT IS NEEDED BY THE OVERLAY IS LOADED AS PART
  388. * OF THE OVERLAY WHICH WAS EXTENDED BEFORE IT WAS WRITTEN
  389. * TO THE FILE.
  390. *
  391. #
  392.  
  393.  
  394. ARRAY OVLFET [00:00] S(OFSIZ$);
  395. BEGIN
  396. ITEM OF$WORD U(00,00,60); # FIRST WORD OF FET #
  397. ITEM OF$LFN C(00,00,07); # FILE NAME--WILL BE *OVLFILE* #
  398. ITEM OF$LNAT U(00,42,08); # COMB LEVEL NR AND ABN TERM CODE#
  399. ITEM OF$CODE U(00,50,10); # CIO FUNCTION CODE #
  400. ITEM OF$CBIT B(00,59,01); # I/O COMPLETE BIT #
  401. ITEM OF$R B(01,12,01); # RANDOM ACCESS FLAG #
  402. ITEM OF$L U(01,36,06); # FET LENGTH IN EXCESS OF 5 WORDS#
  403. ITEM OF$FIRST U(01,42,18); # ADDRESS OF FIRST WORD OF BUFFER#
  404. ITEM OF$IN U(02,00,60); # NEXT DATA IN POINTER #
  405. ITEM OF$OUT U(03,00,60); # NEXT DATA OUT POINTER #
  406. ITEM OF$LIMIT U(04,42,18); # LAST WORD ADDRESS +1 OF BUFFER #
  407. ITEM OF$LA U(05,00,60); # LIST ADDRESS(STORED AS WHOLE WD#
  408. ITEM OF$RR U(06,31,29); # RANDOM REQUEST RELATIVE PRU ADD#
  409. ITEM OF$CRI U(06,00,30); # CURRENT RANDOM INDEX #
  410. END
  411.  
  412.  
  413.  
  414.  
  415. #
  416. ** RT - ROLLOUT TABLE.
  417. *
  418. * THIS ARRAY CONTAINS THE BIT POSITION AND WORD ADDRESS OF THE
  419. * COMPLETE STATUS FLAGS TO BE CHECKED BY *SSSWNR*.
  420. *
  421. #
  422.  
  423.  
  424. ARRAY RT [00:NRT$] S(1);
  425. BEGIN
  426. ITEM RT$EC U(00,48,12); # ENTRY COUNT #
  427. ITEM RT$BPOS U(00,00,30); # BIT POSITION OF STATUS FLAG #
  428. ITEM RT$WADD U(00,30,30); # STATUS WORD ADDRESS #
  429. ITEM RT$WORD I(00,00,60);
  430. END
  431.  
  432. #
  433. ** PGMROLL - PROGRAM ROLLOUT TABLE.
  434. *
  435. * THIS ARRAY DEFINES THE PROGRAM FORCED ROLLOUT INDICATORS.
  436. * THE NUMBER OF NULL NETGETS ALLOWED WITHOUT ACTIVITY BEFORE A
  437. * FORCED ROLLOUT CONDITION FOR THE PROGRAM EXISTS.
  438. #
  439.  
  440. ARRAY PGMROLL [00:00] S(1);
  441. BEGIN
  442. ITEM PGM$NUGETS U(00,42,18); # NUMBER NULL NETGETS ALLOWED #
  443. ITEM PGM$FOROLL B(00,00,01); # FORCED ROLLOUT FLAG #
  444. END
  445.  
  446. END # WTABLES #
  447.  
  448.  
  449.  
  450.  
  451.  
  452. #
  453. ** BUFFERS - LABELLED COMMON BLOCK.
  454. *
  455. * COMMON BLOCK OF BUFFERS FOR WC, HEADER, SMS AND DATA. THESE
  456. * ARE INTERMEDIATE BUFFERS FOR INCOMING/OUTGOING SMS OR DATA
  457. * FROM/TO THE APPROPRIATE QUEUES.
  458. #
  459.  
  460.  
  461.  
  462.  
  463. COMMON BUFFERS;
  464. BEGIN # BUFFERS #
  465. #
  466. ** WCBUF - WORD COUNT BUFFER.
  467. *
  468. * WCBUF IS A ONE WORD ARRAY FOR INCOMING AND OUTGOING WC.
  469. #
  470. ARRAY WCBUF[00:01] S(1);
  471. BEGIN
  472. ITEM WCB$WORD U(00,00,60); # FULL WORD REFERENCE #
  473. ITEM WCB$SMID U(00,00,12); # INTERNAL ID ASSIGNED TO SM #
  474. ITEM WCB$FLAGS U(00,12,12); # REFERENCE FLAG FIELDS #
  475. ITEM WCB$IAF B(00,12,01); # INPUT ALLOW FLAG #
  476. ITEM WCB$HAF B(00,13,01); # HOP ALERT FLAG #
  477. ITEM WCB$WC U(00,48,12); # ENTRY-SIZE #
  478. END
  479.  
  480.  
  481.  
  482.  
  483. #
  484. ** ABHBUF - APPLICATION BLOCK HEADER BUFFER.
  485. *
  486. * ABHBUF IS A ONE WORD ARRAY FOR INCOMING AND OUTGOING HEADER.
  487. #
  488. ARRAY ABHBUF[00:01] S(1);
  489. BEGIN
  490. ITEM ABH$WORD U(00,00,60); # FULL WORD REFERENCE #
  491. END
  492.  
  493.  
  494.  
  495.  
  496. #
  497. ** MSGBUF - MESSAGE BLOCK BUFFER.
  498. *
  499. * BUFFER FOR SUPERVISORY MESSAGES OR DATA. THIS BUFFER IS DIVIDED
  500. * INTO 2 EQUAL SIZE PARTS, EACH PART CONTAINING (NMSGBUF$ + 1)/2
  501. * NUMBER OF ENTRIES. PART ONE CONTAINS INCOMING SM OR DATA
  502. * AND PART TWO CONTAINS OUTGOING SM OR DATA.
  503. #
  504. ARRAY MSGBUF[00:NMSGBUF$] S(1);
  505. BEGIN
  506. ITEM MSG$CHAR C(00,00,110); # INCOMING TEXT REFERENCE #
  507. ITEM MSG$WORD U(00,00,60); # FULL WORD REFERENCE #
  508. ITEM MSG$PSFC U(00,00,16); # PFC/SFC #
  509. ITEM MSG$ZERO U(00,48,12); # ZERO BYTE / LINE TERMINATOR #
  510. END
  511.  
  512. END # BUFFERS #
  513.  
  514.  
  515.  
  516.  
  517. #
  518. ** SSCOM - LABELED COMMON BLOCK.
  519. *
  520. * THIS COMMON BLOCK CONTAINS VARIOUS ITEMS AND ARRAYS FOR
  521. * SERVICES AND SCHEDULING. SOME BASED ARRAYS AND ITEMS ARE
  522. * USED TO PASS ADDRESS AND VALUE INFORMATION FROM THE PROGRAM
  523. * TO VARIOUS SERVICES AND SCHEDULING ROUTINES. THESE VALUES ARE
  524. * SET BY THE PROGRAM INITIALIZATION ROUTINES.
  525. *
  526. #
  527.  
  528.  
  529. COMMON SSCOM;
  530. BEGIN # SSCOM #
  531. #
  532. ** NSUP - SUPERVISORY STATUS WORD
  533. *
  534. * NSUP IS THE WORD USED BY AIP MONITOR TO SENSE THE
  535. * STATE OF NETWORK COMMUNICATIONS.
  536. #
  537.  
  538. ARRAY NSUP[00:00] S(1); # SUPERVISORY STATUS WORD #
  539. BEGIN
  540. ITEM NSUP$WORD U(00,00,60); # FULL WORD #
  541. ITEM NSUP$COMP B(00,00,01); # COMPLETION BIT #
  542. ITEM NSUP$NAMA B(00,02,01); # NAM AVAILABLE BIT #
  543. ITEM NSUP$DAIN B(00,03,01); # DATA MESSAGE AVAILABLE BIT #
  544. ITEM NSUP$SMIN B(00,04,01); # SUPERVISORY MESSAGE AVAIL BIT #
  545. ITEM NSUP$DDEV B(00,05,01); # DATA DELIVERABLE BIT #
  546. ITEM NSUP$MC U(00,30,30); # DEBUG LOG FILE MESSAGE COUNT #
  547. END
  548.  
  549.  
  550.  
  551.  
  552. #
  553. ** SSIPTQ - SS LINKAGE FOR OUTGOING TRAFFIC QUEUE.
  554. *
  555. * THE FOLLOWING BASED ARRAYS AND ITEMS ARE SET BY INITIALIZATION
  556. * AND ARE USED TO PASS THE LOCATION OF THE *OTQ* TO *SSACNI*.
  557. *
  558. #
  559.  
  560.  
  561. BASED ARRAY SSIOTQ [00:00] S(1);
  562. BEGIN
  563. ITEM SSOTQ U(00,00,60);
  564. END
  565.  
  566.  
  567. BASED ARRAY SSIOTQL [00:00] S(1);
  568. BEGIN
  569. ITEM SSOTQL U(00,00,60);
  570. END
  571.  
  572.  
  573.  
  574.  
  575. #
  576. ** SSITRQ - SS LINKAGE FOR OUTGOING TRAFFIC QUEUE.
  577. *
  578. * THE FOLLOWING BASED ARRAYS AND ITEMS ARE SET BY INITIALIZATION
  579. * AND ARE USED TO PASS THE LOCATION OF THE *TRQ* TO THE TIMER
  580. * ROUTINES.
  581. *
  582. #
  583.  
  584.  
  585. BASED ARRAY SSITRQ [00:00] S(1);
  586. BEGIN
  587. ITEM SSTRQ U(00,00,60);
  588. END
  589.  
  590.  
  591. BASED ARRAY SSITRQL [00:00] S(1);
  592. BEGIN
  593. ITEM SSTRQL U(00,00,60);
  594. END
  595.  
  596. ARRAY SS$SWAPW S(1);
  597. BEGIN
  598. ITEM SS$TSEC U(00,00,24); # TIME IN SECONDS #
  599. ITEM SS$TMILLI U(00,24,36); # TIME IN MILLISECONDS #
  600. ITEM SS$TWORD U(00,00,60)= [0]; # ENTIRE TIMESTAMP #
  601. END
  602.  
  603. #
  604. ** TRQ1 - TIMER REQUEST QUEUE.
  605. *
  606. * TRQ IS USED TO RETAIN TIMER REQUESTS UNTIL THE TIME
  607. * HAS EXPIRED. THEN THE TIMER REQUEST BLOCK IS RETURNED
  608. * TO THE REQUESTER. IT IS USED ONLY BY THE FOLLOWING
  609. * SS ROUTINES:
  610. * *SSCATR*, *SSCCRT*, AND *SSCRTR*.
  611. *
  612. * THIS BASED ARRAY DEFINES THE ITEMS IN THE TIMER BLOCK.
  613. * THE STORAGE FOR THE QUEUE IS THE *TRQ* WITHIN MANAGED TABLES.
  614. * THIS BASED ARRAY MUST BE POINTED BEFORE EACH USE TO THE
  615. * SAME ADDRESS AS THE BASED ARRAY *TRQ*.
  616. * THIS IS DONE USING THE ITEM *SSTRQ* WHICH VALUE IS ALWAYS
  617. * THE CURRENT START OF THE STORAGE FOR *TRQ*.
  618. *
  619. #
  620.  
  621.  
  622.  
  623.  
  624. BASED ARRAY TRQ1 [00:00] S(4);
  625. BEGIN
  626. ITEM TRQ1$WD0 U(00,00,60); # OVERLAPPING WORD 0 #
  627. ITEM TRQ1$ENTRY U(00,48,12); # ENTRY SIZE #
  628. ITEM TRQ1$WD1 U(01,00,60); # OVERLAPPING WORD 1 #
  629. ITEM TRQ1$CNUM U(01,18,18); # CANCEL NUMBER #
  630. ITEM TRQ1$WD2 U(02,00,60); # OVERLAPPING WORD 2 #
  631. ITEM TRQ1$FDQ U(03,00,60); # OVERLAPPING WORD 3 #
  632. ITEM TRQ1$FTIME U(03,00,24); # FIRE TIME #
  633. ITEM TRQ1$DELAY U(03,24,18); # DELAY TIME #
  634. ITEM TRQ1$QNUM U(03,42,18); # Q NUMBER #
  635. END
  636.  
  637.  
  638.  
  639.  
  640. #
  641. ** SSWLE - WORKLIST NUMBERS FOR SERVICES AND SCHEDULING.
  642. *
  643. * THESE ITEMS ARE USED TO PASS TO SERVICES AND SCHEDULING THE
  644. * WORKLIST NUMBERS ASSIGNED TO ROUTINES WITHIN SERVICES AND
  645. * SCHEDULING BY THE PROGRAM.
  646. *
  647. #
  648.  
  649.  
  650. ITEM SSCRTRW; # WLE FOR RETURN TIMER REQUEST #
  651. ITEM SSOEOPW; # WLE FOR OVERLAY EXECUTION #
  652.  
  653.  
  654.  
  655.  
  656. #
  657. ** LOADBASE - POINT WHERE OVERLAYS ARE LOADED.
  658. *
  659. * THIS ITEM CONTAINS THE LWA+1 OF THE (0,0) OVERLAY.
  660. * OVERLAYS ARE LOADED STARTING AT THIS POINT AND
  661. * WHEN NO OVERLAYS ARE NEEDED MANAGED TABLE STORAGE
  662. * STARTS AT THE SAME ADDRESS AND EXTENDS TO THE END
  663. * OF THE FIELD LENGTH.
  664. *
  665. #
  666. ITEM LOADBASE I; # FWA+1 OF (0,0) OVERLAY #
  667.  
  668.  
  669.  
  670.  
  671. #
  672. ** SSMEM - ADDRESS OF *MEMLOC*.
  673. *
  674. * THIS ITEM CONTAINS THE ADDRES OF *MEMLOC* WHICH IS NEEDED
  675. * BY SERVICES AND SCHEDULING AND IS DEFINED WITHIN THE
  676. * MANAGED TABLE DEFINITIONS. IT IS SET AT INITIALIZATION TIME.
  677. *
  678. #
  679.  
  680. ITEM SSMEM; # ADDRESS OF MEMLOC #
  681.  
  682.  
  683.  
  684.  
  685. #
  686. ** TXTALEN - LENGTH OF AIP TEXT AREA.
  687. *
  688. * THIS ITEM CONTAINS THE LENGTH OF THE AIP TEXT AREA.
  689. * IT IS NEEDED BY *SSACNI* AS A NETGETL PARAMETER.
  690. * IT SHOULD BE SET TO MAXIMUN LENGTH IN CM WORDS OF A
  691. * BLOCK THE APPLICATION PROGRAM CAN ACCEPT.
  692. * IT SHOULD BE INITIALIZED BY EACH INDIVIDUAL APPLICATION
  693. * PROGRAM AT INITIALIZATION TIME.
  694. #
  695.  
  696. ITEM TXTALEN;
  697.  
  698.  
  699. END # SSCOM #
  700.  
  701.  
  702. #
  703. ** CLOCKS - LABELED COMMON BLOCK.
  704. *
  705. * THIS COMMON BLOCK CONTAINS THE CURRENT TIME OF THE DAY.
  706. * THE TIMES ARE UPDATED AT THE TOP OF THE MAIN LOOP
  707. * AND UPON SPECIAL CALLS TO *SSCUTD*.
  708. *
  709. #
  710.  
  711. COMMON CLOCKS;
  712. BEGIN # CLOCKS #
  713. ARRAY CTM[00:00] S(5);
  714. BEGIN
  715. ITEM CTM$PWD U(00,00,60); # OVERLAP WORD (PACKED FORM) #
  716. ITEM CTM$PDT U(00,30,30); # OVERLAP MODDHHMMSS (PACKED) #
  717. ITEM CTM$PDATE U(00,24,18); # YYMODD (PACKED FORM) #
  718. ITEM CTM$PCLK U(00,42,18); # HHMMSS (PACKED FORM) #
  719. ITEM CTM$DATE C(01,00,10); # YY/MM/DD. (DISPLAY CODE) #
  720. ITEM CTM$CLOCK C(02,00,10); # HH.MM.SS. (DISPLAY CODE) #
  721. ITEM CTM$RT U(03,00,60); # FULL RTIME WORD-OVERLAP #
  722. ITEM CTM$RTSEC U(03,00,24); # SECONDS #
  723. ITEM CTM$RTMIL U(03,24,36); # MILLISECONDS #
  724. ITEM CTM$FTIME U(04,00,24); # SECONDS #
  725. END
  726. END # CLOCKS #
  727.  
  728.  
  729.  
  730.  
  731. #
  732. ** CCARD - LABELED COMMON BLOCK.
  733. *
  734. * THIS COMMON BLOCK CONTAINS PARAMETERS FROM THE PROGRAM
  735. * CALL CARD.
  736. *
  737. #
  738.  
  739.  
  740.  
  741. COMMON CCARD;
  742. BEGIN # CCARD #
  743. ITEM NET$ONF B; # NET ON FLAG (MUST BE FIRST IN COMMON) #
  744. ITEM MC U; # VALUE OF MC FROM CONTROL CARD #
  745. END # CCARD #
  746.  
  747.  
  748.  
  749. #
  750. ** SSINTR - LABELED COMMON BLOCK.
  751. *
  752. * THIS COMMON BLOCK CONTAINS CELLS USED TO START
  753. * STATUS WORKLIST DRIVEN ROUTINES IN SERVICES AND SCHEDULING.
  754. * THE ROUTINE MAY TEMPORARY NOT START AS IT MAY BE BUSY WITH
  755. * CURRENT WORK.
  756. *
  757. #
  758.  
  759.  
  760.  
  761. COMMON SSINTR;
  762. BEGIN # SSINTR #
  763. ITEM ISSACNI I; # INTERRUPT FOR PROC SSACNI #
  764. ITEM SSOVLD B; # INTERRUPT FOR PROC SSOCOL WHEN OVERLAY
  765.   EXECUTION DONE #
  766. ITEM DISABLE I; # WORD FOR DISABLED TYPE 1 WLE-S #
  767. END # SSINTR #
  768.  
  769.  
  770. #
  771. ** STATBUF - LABELED COMMON BLOCK.
  772. *
  773. * THIS COMMON BLOCK CONTAINS ITEMS USED FOR STATISTICS GATHERING.
  774. *
  775. #
  776. COMMON STATBUF;
  777. BEGIN # STATBUF #
  778. ARRAY SVT [01:NSVT$] S(1);
  779. BEGIN
  780. ITEM SVT$VAL I(00,00,60);
  781. END
  782. END # STATBUF #
  783.  
  784.  
  785. END #TEXTSS #
  786. TERM
cdc/nos2.source/nam5871/textss.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator