COMPILATION LISTING OF SEGMENT available_slots_ Compiled by: Multics PL/I Compiler, Release 27d, of October 11, 1982 Compiled at: Honeywell LISD Phoenix, System M Compiled on: 11/12/82 1212.2 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 available_slots_: proc (q, maxu, res, used) returns (fixed bin); 12 13 /* Procedure to return the number of absentee slots available to a given queue. 14* Input parameters are the queue, the total abs maxu, and the arrays giving the 15* number of slots reserved for each queue and the number in use by each queue. 16* 17* Written by T. Casey, May 1978 18* 19**/ 20 21 dcl q fixed bin; 22 dcl maxu fixed bin; 23 dcl res (4) fixed bin; 24 dcl used (4) fixed bin; 25 26 dcl (i, temp_maxu) fixed bin; 27 28 temp_maxu = maxu; /* copy max abs users */ 29 30 do i = 1 to 4; /* go through all queues */ 31 temp_maxu = temp_maxu - used (i); /* deduct slots in use */ 32 if i < q then /* if this is a higher priority queue */ 33 if res (i) > used (i) then /* and slots must be reserved for it */ 34 temp_maxu = temp_maxu - (res (i)-used (i)); /* deduct them */ 35 end; 36 37 if temp_maxu < 0 then temp_maxu = 0; 38 39 /* if it goes negative, that means that not only this queue, but one or more higher priority queues, 40* are shut off because their slots have been grabbed by jobs from even higher priority queues */ 41 42 return (temp_maxu); 43 44 end available_slots_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 11/12/82 1042.9 available_slots_.pl1 >spec>on>11/12/82>available_slots_.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. i 000100 automatic fixed bin(17,0) dcl 26 set ref 30* 31 32 32 32 32 32* maxu parameter fixed bin(17,0) dcl 22 ref 11 28 q parameter fixed bin(17,0) dcl 21 ref 11 32 res parameter fixed bin(17,0) array dcl 23 ref 11 32 32 temp_maxu 000101 automatic fixed bin(17,0) dcl 26 set ref 28* 31* 31 32* 32 37 37* 42 used parameter fixed bin(17,0) array dcl 24 ref 11 31 32 32 NAME DECLARED BY EXPLICIT CONTEXT. available_slots_ 000012 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 106 116 60 116 Length 260 60 10 125 26 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME available_slots_ 67 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME available_slots_ 000100 i available_slots_ 000101 temp_maxu available_slots_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. return ext_entry NO EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 11 000005 28 000017 30 000022 31 000027 32 000033 35 000047 37 000051 42 000054 ----------------------------------------------------------- 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