COMPILATION LISTING OF SEGMENT convert_v2_mail_table_ Compiled by: Multics PL/I Compiler, Release 28d, of October 4, 1983 Compiled at: Honeywell Multics Op. - System M Compiled on: 12/05/84 1238.4 mst Wed Options: optimize map 1 /* *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1984 * 4* * * 5* *********************************************************** */ 6 /* format: style2 */ 7 8 convert_v2_mail_table_: 9 procedure (P_dirname, P_entryname, P_code); 10 11 /**** This subroutine is the target of the gate 12* mail_table_priv_$convert_v2_mail_table_. It converts the specified 13* mail table from a Version 2 MSTB to a Version 3 MSTB. */ 14 15 /***** Written 1984-08-03 by E. Swenson */ 16 17 /* Parameters */ 18 19 dcl P_dirname char (*) parameter; 20 dcl P_entryname char (*) parameter; 21 dcl P_code fixed bin (35) parameter; 22 23 /* Automatic */ 24 25 dcl code fixed bin (35); 26 dcl dirname char (168); 27 dcl entryname char (32); 28 dcl new_entryname char (32); 29 dcl old_entryname char (32); 30 dcl old_newname char (32); 31 dcl saved_level fixed bin (3); 32 dcl table_ptr ptr; 33 34 /* External Entries */ 35 36 dcl convert_v2_mstb_ entry (char (*), char (*), char (*), char (*), entry, fixed bin (18) unsigned, 37 fixed bin (35)); 38 dcl convert_v2_mstb_$default_convert_proc 39 entry (ptr, ptr, ptr, fixed bin (35)); 40 dcl hcs_$chname_file entry (char (*), char (*), char (*), char (*), fixed bin (35)); 41 dcl hcs_$level_get entry (fixed bin (3)); 42 dcl hcs_$level_set entry (fixed bin (3)); 43 dcl get_ring_ entry () returns (fixed bin (3)); 44 dcl ms_table_mgr_v2_$close entry (ptr, fixed bin (35)); 45 dcl ms_table_mgr_$delete entry (char (*), char (*), fixed bin (35)); 46 dcl ms_table_mgr_v2_$open entry (char (*), char (*), char (*) aligned, ptr, ptr, fixed bin (35)); 47 dcl unique_chars_ entry (bit (*)) returns (char (15)); 48 49 /* Constants */ 50 51 dcl SAME_SIZE fixed bin (18) unsigned internal static options (constant) initial (0); 52 53 /* Conditions */ 54 55 dcl cleanup condition; 56 57 /* Program */ 58 59 dirname = P_dirname; /* Copy arguments -- we're a gate */ 60 entryname = P_entryname; 61 62 saved_level = -1; /* For cleanup handler */ 63 on condition (cleanup) 64 begin; 65 if saved_level ^= -1 66 then do; 67 call hcs_$level_set (saved_level); 68 saved_level = -1; 69 end; 70 end; 71 72 call hcs_$level_get (saved_level); 73 call hcs_$level_set (get_ring_ ()); 74 75 /**** First check to see if it exists and is a mail table */ 76 77 call ms_table_mgr_v2_$open (dirname, entryname, "mail_table", table_ptr, (null ()), code); 78 if code ^= 0 79 then goto RETURN_TO_CALLER; 80 81 /**** That was all we needed, close it now. */ 82 83 call ms_table_mgr_v2_$close (table_ptr, (0)); 84 85 new_entryname = rtrim (substr (entryname, 1, 14)) || "." || unique_chars_ (""b); 86 87 call convert_v2_mstb_ (dirname, entryname, dirname, new_entryname, convert_v2_mstb_$default_convert_proc, 88 SAME_SIZE, code); 89 if code ^= 0 90 then goto RETURN_TO_CALLER; 91 92 old_newname = rtrim (substr (entryname, 1, 14)) || "." || unique_chars_ (""b); 93 94 /* Add shriekname to old mail table */ 95 96 call hcs_$chname_file (dirname, entryname, "", old_newname, code); 97 if code ^= 0 98 then goto RETURN_TO_CALLER; 99 100 /* Delete real name from old mail table */ 101 102 call hcs_$chname_file (dirname, entryname, entryname, "", code); 103 if code ^= 0 104 then goto RETURN_TO_CALLER; 105 106 /* Rename the new one to the real name */ 107 108 call hcs_$chname_file (dirname, new_entryname, new_entryname, entryname, code); 109 110 RETURN_TO_CALLER: 111 call hcs_$level_set (saved_level); 112 saved_level = -1; 113 P_code = code; 114 return; 115 116 end convert_v2_mail_table_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 12/05/84 1238.3 convert_v2_mail_table_.pl1 >special_ldd>temp>as>convert_v2_mail_table_.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. P_code parameter fixed bin(35,0) dcl 21 set ref 8 113* P_dirname parameter char unaligned dcl 19 ref 8 59 P_entryname parameter char unaligned dcl 20 ref 8 60 SAME_SIZE 000004 constant fixed bin(18,0) initial unsigned dcl 51 set ref 87* cleanup 000206 stack reference condition dcl 55 ref 63 code 000100 automatic fixed bin(35,0) dcl 25 set ref 77* 78 87* 89 96* 97 102* 103 108* 113 convert_v2_mstb_ 000010 constant entry external dcl 36 ref 87 convert_v2_mstb_$default_convert_proc 000012 constant entry external dcl 38 ref 87 87 dirname 000101 automatic char(168) unaligned dcl 26 set ref 59* 77* 87* 87* 96* 102* 108* entryname 000153 automatic char(32) unaligned dcl 27 set ref 60* 77* 85 87* 92 96* 102* 102* 108* get_ring_ 000022 constant entry external dcl 43 ref 73 73 hcs_$chname_file 000014 constant entry external dcl 40 ref 96 102 108 hcs_$level_get 000016 constant entry external dcl 41 ref 72 hcs_$level_set 000020 constant entry external dcl 42 ref 67 73 110 ms_table_mgr_v2_$close 000024 constant entry external dcl 44 ref 83 ms_table_mgr_v2_$open 000026 constant entry external dcl 46 ref 77 new_entryname 000163 automatic char(32) unaligned dcl 28 set ref 85* 87* 108* 108* old_newname 000173 automatic char(32) unaligned dcl 30 set ref 92* 96* saved_level 000203 automatic fixed bin(3,0) dcl 31 set ref 62* 65 67* 68* 72* 110* 112* table_ptr 000204 automatic pointer dcl 32 set ref 77* 83* unique_chars_ 000030 constant entry external dcl 47 ref 85 92 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. ms_table_mgr_$delete 000000 constant entry external dcl 45 old_entryname automatic char(32) unaligned dcl 29 NAMES DECLARED BY EXPLICIT CONTEXT. RETURN_TO_CALLER 000532 constant label dcl 110 ref 78 89 97 103 convert_v2_mail_table_ 000031 constant entry external dcl 8 NAMES DECLARED BY CONTEXT OR IMPLICATION. null builtin function ref 77 rtrim builtin function ref 85 92 substr builtin function ref 85 92 STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 712 744 554 722 Length 1134 554 32 154 136 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME convert_v2_mail_table_ 206 external procedure is an external procedure. on unit on line 63 68 on unit STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME convert_v2_mail_table_ 000100 code convert_v2_mail_table_ 000101 dirname convert_v2_mail_table_ 000153 entryname convert_v2_mail_table_ 000163 new_entryname convert_v2_mail_table_ 000173 old_newname convert_v2_mail_table_ 000203 saved_level convert_v2_mail_table_ 000204 table_ptr convert_v2_mail_table_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_cs cat_realloc_cs call_ext_out_desc call_ext_out return enable shorten_stack ext_entry_desc int_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. convert_v2_mstb_ convert_v2_mstb_$default_convert_proc get_ring_ hcs_$chname_file hcs_$level_get hcs_$level_set ms_table_mgr_v2_$close ms_table_mgr_v2_$open unique_chars_ NO EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 8 000025 59 000051 60 000057 62 000063 63 000065 65 000101 67 000105 68 000113 70 000116 72 000117 73 000126 77 000144 78 000206 83 000210 85 000222 87 000276 89 000342 92 000344 96 000420 97 000451 102 000453 103 000502 108 000504 110 000532 112 000541 113 000543 114 000546 ----------------------------------------------------------- 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