COMPILATION LISTING OF SEGMENT gtss_get_user_state_ Compiled by: Multics PL/I Compiler, Release 28d, of October 4, 1983 Compiled at: Honeywell Multics Op. - System M Compiled on: 12/10/84 1341.5 mst Mon Options: optimize map 1 /* *********************************************************** 2* * * 3* * * 4* * Copyright, (C) Honeywell Information Systems Inc., 1981 * 5* * * 6* * * 7* *********************************************************** */ 8 9 10 gtss_get_user_state_: proc (u_state_p); 11 dcl u_state_p parm ptr; 12 13 14 /** Return a pointer to the gtss user_state segment in the 15*user's home directory, creating and initializing the segment if 16*it does not exist. 17* 18* Author: Mel Wilson 26mar79 19**/ 20 21 call user_info_$homedir (home_path); 22 23 call hcs_$make_seg (home_path, "gtss_user_state_.gtss", "gtss_user_state_", 24 fixed ("01010"b), u_state_ptr, c); 25 if u_state_ptr = null () then do; 26 call com_err_ (c, "gtss_get_user_state_", 27 "Error in hcs_$make_seg."); 28 u_state_p = null (); 29 return; 30 end; 31 32 u_state_p = u_state_ptr; 33 34 if c = 0 then do; /* newly created segment must be initialized */ 35 snumb_sequence = 1; 36 entry_count = 0; 37 end; 38 39 return; 40 41 dcl home_path char (128); 42 dcl c fixed bin (35); 43 44 dcl com_err_ entry options (variable); 45 dcl error_table_$name_not_found ext; 46 dcl error_table_$segknown ext; 47 dcl hcs_$make_seg entry (char (*), char (*), char (*), fixed bin (5), 48 ptr, fixed bin (35)); 49 dcl user_info_$homedir entry (char (*)); 50 1 1 /* BEGIN INCLUDE FILE gtss_snumb_xref_.incl.pl1 */ 1 2 /* 1 3* Created: (MWilson Multics) 03/26/79 1152.0 mst Mon 1 4**/ 1 5 1 6 dcl u_state_ptr ptr; 1 7 dcl 1 gtss_snumb_xref_ based (u_state_ptr), 1 8 3 snumb_sequence pic "9999", 1 9 3 entry_count fixed bin, 1 10 3 snumb_entry (100), 1 11 4 snumb char (5), 1 12 4 jout_id bit (12), 1 13 4 activity fixed bin, 1 14 4 status fixed bin; 1 15 1 16 /* * snumb_entry.status key values * */ 1 17 1 18 dcl (READING_RMT, INITIATED) init(3) static int options(constant); 1 19 dcl EXECUTING init(9) static int options(constant); 1 20 dcl WAIT_MEDIA init(11) static int options(constant); 1 21 dcl TERMINATING init(15) static int options(constant); 1 22 dcl OUTPUT_WAITING init(16) static int options(constant); 1 23 dcl (OUTPUT_COMPLETE, COMPLETE) init(17) static int options(constant); 1 24 1 25 /* END INCLUDE FILE gtss_snumb_xref_.incl.pl1 */ 51 52 53 end gtss_get_user_state_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 12/10/84 1044.1 gtss_get_user_state_.pl1 >spec>on>7105>gtss_get_user_state_.pl1 51 1 09/09/83 1714.2 gtss_snumb_xref_.incl.pl1 >ldd>include>gtss_snumb_xref_.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. c 000140 automatic fixed bin(35,0) dcl 42 set ref 23* 26* 34 com_err_ 000010 constant entry external dcl 44 ref 26 entry_count 1 based fixed bin(17,0) level 2 dcl 1-7 set ref 36* gtss_snumb_xref_ based structure level 1 unaligned dcl 1-7 hcs_$make_seg 000012 constant entry external dcl 47 ref 23 home_path 000100 automatic char(128) unaligned dcl 41 set ref 21* 23* snumb_sequence based picture(4) level 2 packed unaligned dcl 1-7 set ref 35* u_state_p parameter pointer dcl 11 set ref 10 28* 32* u_state_ptr 000142 automatic pointer dcl 1-6 set ref 23* 25 32 35 36 user_info_$homedir 000014 constant entry external dcl 49 ref 21 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. COMPLETE internal static fixed bin(17,0) initial dcl 1-23 EXECUTING internal static fixed bin(17,0) initial dcl 1-19 INITIATED internal static fixed bin(17,0) initial dcl 1-18 OUTPUT_COMPLETE internal static fixed bin(17,0) initial dcl 1-23 OUTPUT_WAITING internal static fixed bin(17,0) initial dcl 1-22 READING_RMT internal static fixed bin(17,0) initial dcl 1-18 TERMINATING internal static fixed bin(17,0) initial dcl 1-21 WAIT_MEDIA internal static fixed bin(17,0) initial dcl 1-20 error_table_$name_not_found external static fixed bin(17,0) dcl 45 error_table_$segknown external static fixed bin(17,0) dcl 46 NAME DECLARED BY EXPLICIT CONTEXT. gtss_get_user_state_ 000042 constant entry external dcl 10 NAMES DECLARED BY CONTEXT OR IMPLICATION. fixed builtin function ref 23 23 null builtin function ref 25 28 STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 262 300 205 272 Length 466 205 16 151 55 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME gtss_get_user_state_ 152 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME gtss_get_user_state_ 000100 home_path gtss_get_user_state_ 000140 c gtss_get_user_state_ 000142 u_state_ptr gtss_get_user_state_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out_desc return ext_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. com_err_ hcs_$make_seg user_info_$homedir NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 10 000037 21 000047 23 000057 25 000127 26 000133 28 000165 29 000170 32 000171 34 000174 35 000176 36 000202 39 000203 ----------------------------------------------------------- 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