COMPILATION LISTING OF SEGMENT expand_config_deck_msg_ Compiled by: Multics PL/I Compiler, Release 28d, of October 4, 1983 Compiled at: Honeywell Multics Op. - System M Compiled on: 01/17/85 0835.8 mst Thu Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1984 * 4* * * 5* *********************************************************** */ 6 expand_config_deck_msg_: 7 procedure (); 8 9 /* * EXPAND_CONFIG_DECK_MSG_ 10* * 11* * Expander for config deck messages logged during initialization. 12* * 13* * 84-12-05, W. Olin Sibert: Initial coding, after print_syserr_msg_ 14* */ 15 16 declare P_log_message_format_ptr pointer parameter; 17 declare P_log_message_ptr pointer parameter; 18 declare P_expand_mode_ptr pointer parameter; 19 declare P_expansion char (*) varying parameter; 20 declare P_code fixed bin (35) parameter; 21 22 declare first_cardp pointer; 23 declare data_left fixed bin; 24 declare field_no fixed bin; 25 declare temp char (20) varying; 26 declare config_card_field_in_ascii char (4) based; 27 28 declare ioa_$rsnnl entry options (variable); 29 30 declare (addr, dimension, length, rtrim, size, string, unspec) builtin; 31 32 /* */ 33 34 expand_config_deck_msg_$format: 35 entry (P_log_message_format_ptr, P_log_message_ptr, P_expand_mode_ptr, P_expansion, P_code); 36 37 log_message_ptr = P_log_message_ptr; 38 39 data_left = dimension (log_message.data, 1); 40 cardp = addr (log_message.data (1)); 41 42 goto COMMON; 43 44 45 46 /* This is a compatibility entrypoint-- it processes an old-format "syserr" class 47* message, which has the syserr binary code in the first word of the data. */ 48 49 expand_config_deck_msg_$syserr: 50 entry (P_log_message_format_ptr, P_log_message_ptr, P_expand_mode_ptr, P_expansion, P_code); 51 52 log_message_ptr = P_log_message_ptr; 53 54 data_left = dimension (log_message.data, 1) - 1; 55 cardp = addr (log_message.data (2)); 56 57 goto COMMON; 58 59 /* */ 60 61 COMMON: 62 do while (data_left > 0); 63 P_expansion = P_expansion || config_card.word; 64 65 do field_no = 1 to config_card.type_word.n_fields; 66 if (config_card.type_word.field_type (field_no) = CONFIG_STRING_TYPE) then 67 temp = addr (config_card.data_field (field_no)) -> config_card_field_in_ascii; 68 else if (config_card.type_word.field_type (field_no) = CONFIG_OCTAL_TYPE) then 69 call ioa_$rsnnl ("^o", temp, (0), binary (config_card.data_field (field_no))); 70 else if (config_card.type_word.field_type (field_no) = CONFIG_DECIMAL_TYPE) then 71 call ioa_$rsnnl ("^d.", temp, (0), binary (config_card.data_field (field_no))); 72 else if (config_card.type_word.field_type (field_no) = CONFIG_SINGLE_CHAR_TYPE) then 73 temp = substr ("abcdefgh", binary (config_card.data_field (field_no)), 1); 74 else call ioa_$rsnnl ("^w", temp, (0), config_card.data_field (field_no)); 75 76 P_expansion = P_expansion || " "; /* Separate items by double blanks */ 77 P_expansion = P_expansion || temp; 78 end; 79 80 P_expansion = P_expansion || byte (10); /* and separate cards by newlines */ 81 82 data_left = data_left - size (config_card); /* Move on to the next card */ 83 cardp = addrel (cardp, size (config_card)); 84 end; 85 86 return; 87 88 /* BEGIN INCLUDE FILE ... log_message.incl.pl1 ... 84-04-25 ... W. Olin Sibert */ 1 2 1 3 declare 1 log_message_header aligned based, /* Items marked "(SET)" are set by $create_message */ 1 4 2 sentinel bit (36) aligned, /* Proper value declared in log_segment.incl.pl1 */ 1 5 2 sequence fixed bin (35), /* Sequence number for this message (SET) */ 1 6 2 severity fixed bin (8) unaligned, /* Severity of message */ 1 7 2 data_class_lth fixed bin (9) unaligned unsigned, /* Length of data class-- 0 to 16 (SET) */ 1 8 2 time fixed bin (53) unaligned, /* Time message originated */ 1 9 2 text_lth fixed bin (17) unaligned, /* Length of message text. Must be nonzero (SET) */ 1 10 2 data_lth fixed bin (17) unaligned, /* Length of binary data. May be zero (SET) */ 1 11 2 process_id bit (36) aligned; /* Process id of process writing message */ 1 12 1 13 declare 1 log_message aligned based (log_message_ptr), 1 14 2 header aligned like log_message_header, 1 15 2 text char (log_message_text_lth refer (log_message.text_lth)) unaligned, 1 16 2 data_class char (log_message_data_class_lth refer (log_message.data_class_lth)) unaligned, 1 17 2 data dim (log_message_data_lth refer (log_message.data_lth)) bit (36) aligned; 1 18 1 19 declare log_message_ptr pointer; 1 20 declare log_message_text_lth fixed bin; 1 21 declare log_message_data_class_lth fixed bin; 1 22 declare log_message_data_lth fixed bin; 1 23 1 24 /* END INCLUDE FILE ... log_message.incl.pl1 */ 88 89 /* BEGIN INCLUDE FILE ... config_deck.incl.pl1 ... 11/13/80, W. Olin Sibert */ 2 2 2 3 dcl (configp, cardp) pointer; 2 4 dcl config_n_cards fixed bin; /* Number of cards used in config */ 2 5 dcl config_max_cards fixed bin; /* Max number of cards in config */ 2 6 2 7 dcl config_deck$ fixed bin external static; 2 8 2 9 dcl 1 config_deck aligned based (configp), 2 10 2 cards (config_n_cards) aligned like config_card, 2 11 2 pad_cards (config_max_cards - config_n_cards) aligned like config_card; 2 12 2 13 dcl 1 config_card aligned based (cardp), 2 14 2 word char (4) aligned, 2 15 2 data_field (14) bit (36) aligned, 2 16 2 type_word aligned like config_card_type_word; 2 17 2 18 dcl 1 config_card_type_word aligned based, 2 19 2 field_type (14) bit (2) unaligned, 2 20 2 pad1 bit (4) unaligned, 2 21 2 n_fields fixed bin (4) unsigned unaligned; 2 22 2 23 dcl (CONFIG_DECIMAL_TYPE init ("11"b), 2 24 CONFIG_OCTAL_TYPE init ("00"b), 2 25 CONFIG_SINGLE_CHAR_TYPE init ("01"b), 2 26 CONFIG_STRING_TYPE init ("10"b)) bit (2) aligned static options (constant); 2 27 2 28 dcl ZERO_CARD_WORD char (4) aligned internal static options (constant) init (""); 2 29 dcl FREE_CARD_WORD char (4) aligned internal static options (constant) init ("ÿÿÿÿ"); 2 30 2 31 dcl VALID_CARD_WORD_CHARACTERS char (38) internal static options (constant) init 2 32 ("abcdefghijklmnopqrstuvwxyz0123456789_."); /* lowercase letters, digits, period and underscore */ 2 33 2 34 dcl EMPTY_FIELD bit (36) aligned internal static options (constant) init ("777777777777"b3); 2 35 2 36 /* END INCLUDE FILE config_deck.incl.pl1 */ 89 90 91 end expand_config_deck_msg_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 01/17/85 0834.5 expand_config_deck_msg_.pl1 >special_ldd>online>41-4>expand_config_deck_msg_.pl1 88 1 01/10/85 1340.2 log_message.incl.pl1 >special_ldd>online>41-4>log_message.incl.pl1 89 2 05/08/81 1853.6 config_deck.incl.pl1 >ldd>include>config_deck.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. CONFIG_DECIMAL_TYPE constant bit(2) initial dcl 2-23 ref 70 CONFIG_OCTAL_TYPE constant bit(2) initial dcl 2-23 ref 68 CONFIG_SINGLE_CHAR_TYPE constant bit(2) initial dcl 2-23 ref 72 CONFIG_STRING_TYPE constant bit(2) initial dcl 2-23 ref 66 P_code parameter fixed bin(35,0) dcl 20 ref 34 49 P_expand_mode_ptr parameter pointer dcl 18 ref 34 49 P_expansion parameter varying char dcl 19 set ref 34 49 63* 63 76* 76 77* 77 80* 80 P_log_message_format_ptr parameter pointer dcl 16 ref 34 49 P_log_message_ptr parameter pointer dcl 17 ref 34 37 49 52 addr builtin function dcl 30 ref 40 55 66 cardp 000112 automatic pointer dcl 2-3 set ref 40* 55* 63 65 66 66 68 68 68 70 70 70 72 72 74 82 83* 83 83 config_card based structure level 1 dcl 2-13 set ref 82 83 config_card_field_in_ascii based char(4) unaligned dcl 26 ref 66 config_card_type_word based structure level 1 dcl 2-18 data based bit(36) array level 2 dcl 1-13 set ref 39 40 54 55 data_class_lth 2(09) based fixed bin(9,0) level 3 packed unsigned unaligned dcl 1-13 ref 39 40 54 55 data_field 1 based bit(36) array level 2 dcl 2-13 set ref 66 68 68 70 70 72 74* data_left 000100 automatic fixed bin(17,0) dcl 23 set ref 39* 54* 61 82* 82 data_lth 4(18) based fixed bin(17,0) level 3 packed unaligned dcl 1-13 ref 39 54 dimension builtin function dcl 30 ref 39 54 field_no 000101 automatic fixed bin(17,0) dcl 24 set ref 65* 66 66 68 68 68 70 70 70 72 72 74* field_type 17 based bit(2) array level 3 packed unaligned dcl 2-13 ref 66 68 70 72 header based structure level 2 dcl 1-13 ioa_$rsnnl 000010 constant entry external dcl 28 ref 68 70 74 log_message based structure level 1 dcl 1-13 log_message_header based structure level 1 dcl 1-3 log_message_ptr 000110 automatic pointer dcl 1-19 set ref 37* 39 40 52* 54 55 n_fields 17(32) based fixed bin(4,0) level 3 packed unsigned unaligned dcl 2-13 ref 65 size builtin function dcl 30 ref 82 83 temp 000102 automatic varying char(20) dcl 25 set ref 66* 68* 70* 72* 74* 77 text_lth 4 based fixed bin(17,0) level 3 packed unaligned dcl 1-13 ref 39 40 54 55 type_word 17 based structure level 2 dcl 2-13 word based char(4) level 2 dcl 2-13 ref 63 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. EMPTY_FIELD internal static bit(36) initial dcl 2-34 FREE_CARD_WORD internal static char(4) initial dcl 2-29 VALID_CARD_WORD_CHARACTERS internal static char(38) initial unaligned dcl 2-31 ZERO_CARD_WORD internal static char(4) initial dcl 2-28 config_deck based structure level 1 dcl 2-9 config_deck$ external static fixed bin(17,0) dcl 2-7 config_max_cards automatic fixed bin(17,0) dcl 2-5 config_n_cards automatic fixed bin(17,0) dcl 2-4 configp automatic pointer dcl 2-3 first_cardp automatic pointer dcl 22 length builtin function dcl 30 log_message_data_class_lth automatic fixed bin(17,0) dcl 1-21 log_message_data_lth automatic fixed bin(17,0) dcl 1-22 log_message_text_lth automatic fixed bin(17,0) dcl 1-20 rtrim builtin function dcl 30 string builtin function dcl 30 unspec builtin function dcl 30 NAMES DECLARED BY EXPLICIT CONTEXT. COMMON 000133 constant label dcl 61 ref 42 57 expand_config_deck_msg_ 000015 constant entry external dcl 6 expand_config_deck_msg_$format 000030 constant entry external dcl 34 expand_config_deck_msg_$syserr 000072 constant entry external dcl 49 NAMES DECLARED BY CONTEXT OR IMPLICATION. addrel builtin function ref 83 binary builtin function ref 68 68 70 70 72 byte builtin function ref 80 substr builtin function ref 72 STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 520 532 421 530 Length 746 421 12 200 76 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME expand_config_deck_msg_ 104 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME expand_config_deck_msg_ 000100 data_left expand_config_deck_msg_ 000101 field_no expand_config_deck_msg_ 000102 temp expand_config_deck_msg_ 000110 log_message_ptr expand_config_deck_msg_ 000112 cardp expand_config_deck_msg_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. call_ext_out_desc return ext_entry ext_entry_desc THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. ioa_$rsnnl NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 6 000014 34 000022 37 000043 39 000047 40 000053 42 000067 49 000070 52 000105 54 000111 55 000116 57 000132 61 000133 63 000136 65 000153 66 000163 68 000201 70 000240 72 000277 74 000314 76 000345 77 000361 78 000373 80 000375 82 000411 83 000413 84 000416 86 000417 ----------------------------------------------------------- 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