COMPILATION LISTING OF SEGMENT console_edit Compiled by: Multics PL/I Compiler, Release 27d, of October 11, 1982 Compiled at: Honeywell LISD Phoenix, System M Compiled on: 11/12/82 1257.8 mst Fri Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1982 * 4* * * 5* * Copyright (c) 1972 by Massachusetts Institute of * 6* * Technology and Honeywell Information Systems, Inc. * 7* * * 8* *********************************************************** */ 9 10 11 console_edit: proc; 12 13 /* CONSOLE_REPORT - produce a report of console use 14* 15* Input is the accounting deck for the month 16* THVV 2/71 17* */ 18 19 dcl (path, dn) char (168) aligned, 20 en char (32) aligned, 21 j fixed bin, 22 idc char (8) aligned, 23 ask_ entry options (variable), 24 ask_$ask_line entry options (variable), 25 ask_$ask_clr entry options (variable), 26 ec fixed bin; 27 28 dcl expand_path_ entry (ptr, fixed bin, ptr, ptr, fixed bin), 29 com_err_ entry options (variable), 30 hcs_$make_seg entry (char (*) aligned, char (*) aligned, char (*) aligned, fixed bin (5), 31 ptr, fixed bin); 32 33 dcl (null, addr) builtin; 34 35 1 1 /* BEGIN INCLUDE FILE ... console_report_data.incl.pl1 */ 1 2 1 3 dcl (esp, tsp) ptr; 1 4 1 5 dcl 1 eseg based (esp) aligned, /* declaration of termuseg */ 1 6 2 version fixed bin, /* = 1 */ 1 7 2 nue fixed bin, /* Number of entries. */ 1 8 2 esh (7) fixed bin, 1 9 2 elt (18723), /* One entry per terminal-user combination */ 1 10 3 hrs fixed bin (71), /* Connect time */ 1 11 3 cpu fixed bin (71), /* CPU usage */ 1 12 3 cnt fixed bin, /* Number of logins */ 1 13 3 nxt fixed bin, /* Next entry on chain for terminal. */ 1 14 3 name char (32); /* User name */ 1 15 1 16 dcl 1 tsg based (tsp) aligned, /* Declaration of "termseg" */ 1 17 2 version fixed bin, /* = 1 */ 1 18 2 nterms fixed bin, /* Number of entries */ 1 19 2 nlogins fixed bin, /* Number of logins total */ 1 20 2 f_login fixed bin (71), /* Time of first login */ 1 21 2 l_login fixed bin (71), /* Time of last login */ 1 22 2 tottime fixed bin (71), /* Total connect time */ 1 23 2 totcpu fixed bin (71), /* Total CPU time */ 1 24 2 totnolog fixed bin, 1 25 2 ntypes fixed bin, /* Number of different types */ 1 26 2 typtab (250), /* Table by type */ 1 27 3 t char (32), /* Terminal type */ 1 28 3 c fixed bin (71), /* CPU */ 1 29 3 u fixed bin (71), /* Connect */ 1 30 3 p fixed bin, /* Number of different terminals */ 1 31 3 q fixed bin, /* Number of logins */ 1 32 3 tnolog fixed bin, /* Number of refused logins */ 1 33 3 tnolog1 fixed bin, 1 34 2 tary (9926), /* One entry per terminal */ 1 35 3 tt char (32), /* Terminal type (2741 etc) */ 1 36 3 id char (16), /* Terminal ID code */ 1 37 3 hr fixed bin (71), /* Total connect time */ 1 38 3 cp fixed bin (71), /* Total CPU time. */ 1 39 3 ct fixed bin, /* Count of logins. */ 1 40 3 nolog fixed bin, /* Number of refused logins */ 1 41 3 nolog1 fixed bin, 1 42 3 uc fixed bin, /* Pointer to chain of user entries in termuseg */ 1 43 3 cm char (20) aligned; /* Comment. Location of terminal */ 1 44 1 45 dcl console_report_data_version_1 fixed bin static init (1); 1 46 1 47 /* END INCLUDE FILE ... console_report_data.incl.pl1 */ 36 37 38 /* ============================= */ 39 40 path = "termseg"; 41 call expand_path_ (addr (path), 7, addr (dn), addr (en), ec); 42 call hcs_$make_seg (dn, en, "", 1011b, tsp, ec); 43 if tsp = null then do; 44 er: call com_err_ (ec, "cdei", path); 45 return; 46 end; 47 call ask_$ask_clr; 48 loop: call ask_ ("idcode ", idc); 49 if idc = "callexit" then return; 50 do j = 1 to nterms; 51 if id (j) = idc then go to f1; 52 end; 53 j, nterms = nterms + 1; 54 call ask_$ask_clr (); 55 go to loop; 56 f1: if cm (j) ^= "" then call ask_$ask_line (cm (j), cm (j)); 57 else call ask_$ask_line ("where ", cm (j)); 58 go to loop; 59 60 end; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 11/12/82 1045.2 console_edit.pl1 >spec>on>11/12/82>console_edit.pl1 36 1 11/07/79 0749.0 console_report_data.incl.pl1 >ldd>include>console_report_data.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. addr builtin function dcl 33 ref 41 41 41 41 41 41 ask_ 000010 constant entry external dcl 19 ref 48 ask_$ask_clr 000014 constant entry external dcl 19 ref 47 54 ask_$ask_line 000012 constant entry external dcl 19 ref 56 57 cm 7702 based char(20) array level 3 dcl 1-16 set ref 56 56* 56* 57* com_err_ 000020 constant entry external dcl 28 ref 44 dn 000152 automatic char(168) dcl 19 set ref 41 41 42* ec 000240 automatic fixed bin(17,0) dcl 19 set ref 41* 42* 44* en 000224 automatic char(32) dcl 19 set ref 41 41 42* expand_path_ 000016 constant entry external dcl 28 ref 41 hcs_$make_seg 000022 constant entry external dcl 28 ref 42 id 7666 based char(16) array level 3 dcl 1-16 ref 51 idc 000236 automatic char(8) dcl 19 set ref 48* 49 51 j 000234 automatic fixed bin(17,0) dcl 19 set ref 50* 51* 53* 56 56 56 57 nterms 1 based fixed bin(17,0) level 2 dcl 1-16 set ref 50 53 53* null builtin function dcl 33 ref 43 path 000100 automatic char(168) dcl 19 set ref 40* 41 41 44* tary 7656 based structure array level 2 dcl 1-16 tsg based structure level 1 dcl 1-16 tsp 000242 automatic pointer dcl 1-3 set ref 42* 43 50 51 53 53 56 56 56 57 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. console_report_data_version_1 internal static fixed bin(17,0) initial dcl 1-45 eseg based structure level 1 dcl 1-5 esp automatic pointer dcl 1-3 NAMES DECLARED BY EXPLICIT CONTEXT. console_edit 000027 constant entry external dcl 11 er 000130 constant label dcl 44 f1 000240 constant label dcl 56 ref 51 loop 000161 constant label dcl 48 ref 55 58 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 400 424 306 410 Length 614 306 24 154 72 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME console_edit 212 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME console_edit 000100 path console_edit 000152 dn console_edit 000224 en console_edit 000234 j console_edit 000236 idc console_edit 000240 ec console_edit 000242 tsp console_edit THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out_desc call_ext_out return ext_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. ask_ ask_$ask_clr ask_$ask_line com_err_ expand_path_ hcs_$make_seg NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 11 000026 40 000034 41 000037 42 000065 43 000124 44 000130 45 000153 47 000154 48 000161 49 000200 50 000203 51 000213 52 000223 53 000225 54 000232 55 000237 56 000240 57 000264 58 000305 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved