COMPILATION LISTING OF SEGMENT xmail_discard_file_ Compiled by: Multics PL/I Compiler, Release 30, of February 16, 1988 Compiled at: Honeywell Bull, Phoenix AZ, SysM Compiled on: 09/02/88 0749.6 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 12 13 14 /****^ HISTORY COMMENTS: 15* 1) change(86-03-06,Blair), approve(86-03-06,MCR7358), 16* audit(86-04-18,RBarstad), install(86-05-28,MR12.0-1062): 17* If user types "yes" to "Do you want to discard the file", then ask him 18* whether or not he wishes to print the messages in the file. 19* END HISTORY COMMENTS */ 20 21 22 /* Begin xmail_discard_file_ */ 23 /* Created by R. Ignagni Oct 1981 24* 25* 83-06-27 DJ Schimke: Declared rtrim builtin. Deleted dcls for unreferenced 26* ioa_$nnl, xmail_err_$int_prog_err, and xmail_error_$no_code. 27* 28* 83-09-14 DJ Schimke: Modified to use xmail_data.mail_dir rather than 29* getting its own pathname to the xmail directory. Added xmail_data include 30* file. Deleted dcls for person, project, and user_info_$whoami. 31* 32* 83-10-06 DJ Schimke: Changed call to xmail_get_str_ to call 33* xmail_get_str_$yes_no. 34**/ 35 36 xmail_discard_file_: proc (P_mailbox_ptr, P_curr_msgsp, P_file_name, P_discarded); 37 user_message1 = "Do you want to discard mail file ""^a""? "; 38 user_message2 = "^/Mail file ""^a"" was discarded."; 39 user_message3 = "Do you want to print the messages in ""^a""? "; 40 delete_switches = "100111"b; 41 go to START; 42 43 link: entry (P_mailbox_ptr, P_curr_msgsp, P_file_name, P_discarded); 44 45 user_message1 = "Do you want to remove the link to mail file ""^a""? "; 46 user_message2 = "^/Link to mail file ""^a"" was removed."; 47 delete_switches = "100110"b; 48 go to START; 49 50 /* Params */ 51 52 dcl P_mailbox_ptr ptr; 53 dcl P_curr_msgsp ptr; 54 dcl P_file_name char (*); 55 dcl P_discarded bit (1) aligned; 56 57 /* Automatic */ 58 59 dcl code fixed bin (35); 60 dcl delete_switches bit (6); 61 dcl prompt_string char (80) var; 62 dcl user_message1 char (50) varying; 63 dcl user_message2 char (40) varying; 64 dcl user_message3 char (50) varying; 65 dcl yes_sw bit (1) aligned; 66 67 /* Entries */ 68 69 dcl delete_$path entry (char (*), char (*), bit (6), char (*), fixed bin (35)); 70 dcl ioa_ entry () options (variable); 71 dcl ioa_$rsnnl entry () options (variable); 72 dcl xmail_get_str_$yes_no entry (char (*) var, bit (1) aligned); 73 dcl xmail_dprint_msgs_ entry (ptr, ptr); 74 75 /* Builtin */ 76 77 dcl (null, rtrim) builtin; 78 79 /* Constant */ 80 81 dcl ME_CHAR char (19) init ("xmail_discard_file_") int static options (constant); 82 83 /* Include */ 84 85 1 1 /* BEGIN INCLUDE FILE: xmail_data.incl.pl1 */ 1 2 1 3 1 4 /****^ HISTORY COMMENTS: 1 5* 1) change(85-12-20,Blair), approve(86-03-06,MCR7358), 1 6* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 7* Modified 03/15/85 by Joanne Backs adding confirm_print flag. 1 8* 2) change(85-12-20,LJAdams), approve(86-03-06,MCR7358), 1 9* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 10* Adding switch to indicate request for menu display came from general help. 1 11* This is so general help menu will be displayed in top screen. 1 12* 3) change(86-01-10,Blair), approve(86-03-06,MCR7358), 1 13* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 14* Add switch to indicate whether or not it is permissible to process mail 1 15* in other users' mailboxes (foreign_mailbox). 1 16* 4) change(86-01-13,Blair), approve(86-03-06,MCR7358), 1 17* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 18* Add bit to indicate whether or not this is a true cleanup condition. 1 19* 5) change(86-02-06,Blair), approve(86-03-06,MCR7358), 1 20* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 21* Rearrange to group all the bit flags together in one word with a pad. 1 22* 6) change(86-03-05,Blair), approve(86-03-05,MCR7358), 1 23* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 1 24* Change value_seg ptr to value_seg_pathname to avoid the situation where 1 25* you keep around a pointer to a structure which no longer exists. 1 26* 7) change(87-01-16,Blair), approve(87-02-05,MCR7618), 1 27* audit(87-04-15,RBarstad), install(87-04-26,MR12.1-1025): 1 28* Add a field to indicate whether or not we should process interactive msgs. 1 29* Increment version to 4.1 so default value will get set. 1 30* 8) change(87-02-13,Blair), approve(87-02-13,MCR7618), 1 31* audit(87-04-15,RBarstad), install(87-04-26,MR12.1-1025): 1 32* Add a field to indicate whether or not we're processing a reply so that we 1 33* will be able to rebuild the screens properly after a disconnect occurs. 1 34* Error_list #114. 1 35* 9) change(88-07-26,Blair), approve(88-07-26,MCR7959), 1 36* audit(88-08-25,RBarstad), install(88-09-02,MR12.2-1098): 1 37* Add a bit to indicate whether or not the error segment had to be created 1 38* in the pdir (because we didn't have sma access to the mlsys_dir). 1 39* END HISTORY COMMENTS */ 1 40 1 41 1 42 /* Written 5/13/81 by Paul H. Kyzivat */ 1 43 /* Modified 12/16/81 by S. Krupp to delete unused parts of structure 1 44* and to add n_fkeys_used */ 1 45 /* Modified 12/14/82 by Dave Schimke to make the xmail version a 10 character 1 46* varying string. */ 1 47 /* Modified 09/12/83 by Dave Schimke adding interactive_msgs flag */ 1 48 /* Modified 09/14/83 by Dave Schimke adding moved_user_io */ 1 49 /* Modified 09/06/84 by Joanne Backs adding lists_as_menus flag */ 1 50 /* Modified 09/21/84 by Joanne Backs adding remove_menus flag */ 1 51 1 52 dcl xmail_data_ptr external static ptr init (null); 1 53 1 54 dcl 1 xmail_data aligned based (xmail_data_ptr), 1 55 2 mail_dir char (168) varying, 1 56 2 first_label label, 1 57 2 quit_label label, 1 58 2 value_seg_pathname char (168) varying, 1 59 2 moved_user_io ptr, 1 60 2 normal_usage char (80) unal, 1 61 2 function_key_info, 1 62 3 function_key_data_ptr ptr, 1 63 3 n_fkeys_used fixed bin, 1 64 2 actee, 1 65 3 person char(32) varying, 1 66 3 project char(32) varying, 1 67 2 flags aligned, 1 68 3 mail_in_incoming bit (1) unal, 1 69 3 lists_as_menus bit (1) unal, /* personalization */ 1 70 3 remove_menus bit (1) unal, /* personalization */ 1 71 3 confirm_print bit (1) unal, /* personalization */ 1 72 3 multics_mode bit (1) unal, /* personalization */ 1 73 3 interactive_msgs bit (1) unal, /* personalization */ 1 74 3 foreign_mailbox bit (1) unal, /* read others' mailboxes */ 1 75 3 general_help bit (1) unal, /* indicated requesting gen help*/ 1 76 3 cleanup_signalled bit (1) unal, /* on when true cleanup condition */ 1 77 3 msgs_as_mail bit (1) unal, /* on for include_msgs */ 1 78 3 reply_request bit (1) unal, /* on if we're doing a reply */ 1 79 3 error_seg_in_pdir bit (1) unal, /* on if the error_seg is in the pdir */ 1 80 3 pad bit (24) unal; 1 81 1 82 1 83 1 84 dcl xmail_version char(10) var static options(constant) init("4.1"); 1 85 1 86 /* END INCLUDE FILE: xmail_data.incl.pl1 */ 86 87 88 START: 89 90 P_discarded = "0"b; 91 92 call ioa_$rsnnl (user_message1, prompt_string, (0), P_file_name); 93 call xmail_get_str_$yes_no (prompt_string, yes_sw); 94 if yes_sw then do; 95 if P_curr_msgsp ^= null () 96 then do; 97 call ioa_$rsnnl (user_message3, prompt_string, (0), P_file_name); 98 call xmail_get_str_$yes_no (prompt_string, yes_sw); 99 if yes_sw then 100 call xmail_dprint_msgs_ (P_mailbox_ptr, P_curr_msgsp); 101 call ioa_ ("The messages in ""^a"" were ^[not ^]submitted for printing .", P_file_name, ^yes_sw); 102 end; 103 104 call delete_$path ((xmail_data.mail_dir), rtrim (P_file_name) 105 || ".sv.mbx", delete_switches, ME_CHAR, code); 106 call ioa_ (user_message2, P_file_name); 107 P_discarded = "1"b; 108 end; 109 EXIT: 110 111 return; 112 113 end xmail_discard_file_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 09/02/88 0746.7 xmail_discard_file_.pl1 >spec>install>MR12.2-1098>xmail_discard_file_.pl1 86 1 09/02/88 0743.4 xmail_data.incl.pl1 >spec>install>MR12.2-1098>xmail_data.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. ME_CHAR 000000 constant char(19) initial packed unaligned dcl 81 set ref 104* P_curr_msgsp parameter pointer dcl 53 set ref 36 43 95 99* P_discarded parameter bit(1) dcl 55 set ref 36 43 88* 107* P_file_name parameter char packed unaligned dcl 54 set ref 36 43 92* 97* 101* 104 106* P_mailbox_ptr parameter pointer dcl 52 set ref 36 43 99* code 000100 automatic fixed bin(35,0) dcl 59 set ref 104* delete_$path 000010 constant entry external dcl 69 ref 104 delete_switches 000101 automatic bit(6) packed unaligned dcl 60 set ref 40* 47* 104* ioa_ 000012 constant entry external dcl 70 ref 101 106 ioa_$rsnnl 000014 constant entry external dcl 71 ref 92 97 mail_dir based varying char(168) level 2 dcl 1-54 ref 104 null builtin function dcl 77 ref 95 prompt_string 000102 automatic varying char(80) dcl 61 set ref 92* 93* 97* 98* rtrim builtin function dcl 77 ref 104 user_message1 000127 automatic varying char(50) dcl 62 set ref 37* 45* 92* user_message2 000145 automatic varying char(40) dcl 63 set ref 38* 46* 106* user_message3 000160 automatic varying char(50) dcl 64 set ref 39* 97* xmail_data based structure level 1 dcl 1-54 xmail_data_ptr 000022 external static pointer initial dcl 1-52 ref 104 xmail_dprint_msgs_ 000020 constant entry external dcl 73 ref 99 xmail_get_str_$yes_no 000016 constant entry external dcl 72 ref 93 98 yes_sw 000176 automatic bit(1) dcl 65 set ref 93* 94 98* 99 101 NAME DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. xmail_version internal static varying char(10) initial dcl 1-84 NAMES DECLARED BY EXPLICIT CONTEXT. EXIT 000535 constant label dcl 109 START 000225 constant label dcl 88 ref 41 48 link 000175 constant entry external dcl 43 xmail_discard_file_ 000136 constant entry external dcl 36 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 646 672 536 656 Length 1076 536 24 167 110 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME xmail_discard_file_ 190 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME xmail_discard_file_ 000100 code xmail_discard_file_ 000101 delete_switches xmail_discard_file_ 000102 prompt_string xmail_discard_file_ 000127 user_message1 xmail_discard_file_ 000145 user_message2 xmail_discard_file_ 000160 user_message3 xmail_discard_file_ 000176 yes_sw xmail_discard_file_ THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_char_temp call_ext_out_desc call_ext_out return_mac shorten_stack ext_entry_desc THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. delete_$path ioa_ ioa_$rsnnl xmail_dprint_msgs_ xmail_get_str_$yes_no THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. xmail_data_ptr LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 36 000131 37 000151 38 000156 39 000163 40 000170 41 000172 43 000173 45 000210 46 000215 47 000222 48 000224 88 000225 92 000227 93 000256 94 000273 95 000276 97 000303 98 000332 99 000347 101 000364 104 000416 106 000512 107 000532 109 000535 ----------------------------------------------------------- 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