COMPILATION LISTING OF SEGMENT pause Compiled by: Multics PL/I Compiler, Release 27d, of October 11, 1982 Compiled at: Honeywell LISD Phoenix, System M Compiled on: 10/20/82 1136.6 mst Wed 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 pause: proc; /* program to pause for n seconds */ 12 13 /* Modified 8-17-82 by M. Toussaint to check the number of arguments. */ 14 15 dcl cu_$arg_count ext entry (fixed bin), 16 cu_$arg_ptr ext entry (fixed bin, ptr, fixed bin, fixed bin), 17 com_err_ entry options (variable), 18 cv_dec_check_ entry (char (*), fixed bin) returns (fixed bin (35)), 19 timer_manager_$sleep ext entry (fixed bin (71), bit (2)); 20 21 dcl arg_ptr ptr; 22 23 dcl arg char (arg_len) based (arg_ptr); 24 25 dcl (arg_len, code, count, time) fixed bin, pause_time fixed bin (71); 26 27 dcl error_table_$wrong_no_of_args fixed bin (35) external; 28 29 30 31 call cu_$arg_count (count); 32 33 if count = 0 then pause_time = 10; /* pause for 10 seconds if no argument given */ 34 else if count > 1 then do; /* make sure no more than one argument was given */ 35 code = error_table_$wrong_no_of_args; 36 call com_err_ (code, "pause", "^/Usage: pause {seconds}"); 37 return; 38 end; 39 else do; 40 call cu_$arg_ptr (1, arg_ptr, arg_len, code); 41 time = cv_dec_check_ (arg, code); 42 if code ^= 0 then do; 43 call com_err_ (0, "pause", " ""^a"" is not a decimal number of seconds.", arg); 44 return; 45 end; 46 pause_time = time; 47 end; 48 49 call timer_manager_$sleep (pause_time, "11"b); 50 51 return; 52 53 end; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 10/20/82 1136.6 pause.pl1 >spec>on>phx-dir>pause.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. arg based char unaligned dcl 23 set ref 41* 43* arg_len 000102 automatic fixed bin(17,0) dcl 25 set ref 40* 41 41 43 43 arg_ptr 000100 automatic pointer dcl 21 set ref 40* 41 43 code 000103 automatic fixed bin(17,0) dcl 25 set ref 35* 36* 40* 41* 42 com_err_ 000014 constant entry external dcl 15 ref 36 43 count 000104 automatic fixed bin(17,0) dcl 25 set ref 31* 33 34 cu_$arg_count 000010 constant entry external dcl 15 ref 31 cu_$arg_ptr 000012 constant entry external dcl 15 ref 40 cv_dec_check_ 000016 constant entry external dcl 15 ref 41 error_table_$wrong_no_of_args 000022 external static fixed bin(35,0) dcl 27 ref 35 pause_time 000106 automatic fixed bin(71,0) dcl 25 set ref 33* 46* 49* time 000105 automatic fixed bin(17,0) dcl 25 set ref 41* 46 timer_manager_$sleep 000020 constant entry external dcl 15 ref 49 NAME DECLARED BY EXPLICIT CONTEXT. pause 000037 constant entry external dcl 11 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 340 364 237 350 Length 532 237 24 132 101 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME pause 120 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME pause 000100 arg_ptr pause 000102 arg_len pause 000103 code pause 000104 count pause 000105 time pause 000106 pause_time pause 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. com_err_ cu_$arg_count cu_$arg_ptr cv_dec_check_ timer_manager_$sleep THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. error_table_$wrong_no_of_args LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 11 000036 31 000044 33 000052 34 000057 35 000061 36 000064 37 000111 40 000112 41 000131 42 000157 43 000161 44 000217 46 000220 49 000223 51 000236 ----------------------------------------------------------- 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