/* BEGIN INCLUDE FILE gcos_utility_args_.incl.pl1 TAC, December, 1974 SCA, August, 1981 */ /* Declarations of structures used to pass information from gcos_card_utility, the command line interpreter, to the processing subroutine, gcos_card_utility_. */ /* INPUT */ dcl input_ptr ptr; dcl 1 input aligned based (input_ptr), /* following elements are in both input and output structures */ 2 sw fixed bin aligned, /* = input_code */ 2 file_name char (168) aligned, /* name of single input file */ 2 list_ptr ptr, /* ptr to list of input file names, snumbs, or edit names */ 2 list_count fixed bin aligned, /* number of names in list */ 2 list_name_size fixed bin aligned, /* length of names (168, 5, or 4) */ 2 tape_ptr ptr, /* ptr to input tape information structure */ 2 set fixed bin aligned, /* single_file, imcv, library, or multiple_files */ 2 format fixed bin aligned, /* ascii, gcos, or blocks */ 2 medium fixed bin aligned, /* raw, tape, or file */ 2 brief bit (1) aligned, /* suppress warning messages on input errors */ 2 truncate_ascii bit (1) aligned, /* truncate ascii input lines to 80 chars if necessary */ 2 comdk bit (1) aligned, /* decompress any comdks in input */ 2 long bit (1) aligned, /* display input list item names */ /* following elements are only in input structure, but apply to all processing */ 2 debug bit (1) aligned, /* call db if any errors - both input and output */ 2 com_err bit (1) aligned, /* tells subroutine to call com_err_ if errors occur */ /* following elements apply only to input processing */ 2 all bit (1) aligned, /* copy all jobs or library decks, into separate output files */ 2 no_canon bit (1) aligned, /* do not canonicalize ascii input */ 2 tabs_given bit (1) aligned, /* tabstops array (below) contains meaningful values */ 2 first_line fixed bin aligned, /* number of first input line to be copied */ 2 last_line fixed bin aligned, /* number of last input line to be copied */ 2 tabstops (10) fixed bin aligned; /* tabstops to use in canonicalization */ dcl 1 input_list (input.list_count) aligned based (input.list_ptr), 2 used bit (1) aligned, /* on when item found and copied */ 2 names char (input.list_name_size) aligned; dcl 1 input_tape aligned based (input.tape_ptr), 2 id char (32) aligned, /* tape reel number and optional ",Ntrack" */ 2 label char (12) aligned, /* file name to be found in tape label */ 2 tracks char (1) aligned, /* 7, 9, or blank if not given */ 2 retain bit (1) aligned, /* do not dismount tape at end of processing */ 2 attached bit (1) aligned, /* tape is still mounted from previous use of command */ 2 position fixed bin; /* file position, or 0 if not given */ /* OUTPUT */ dcl output_ptr ptr; dcl 1 output aligned based (output_ptr), /* following elements are in both input and output structures */ 2 sw fixed bin aligned, /* = output_code */ 2 file_name char (168) aligned, /* name of single output file */ 2 list_ptr ptr, /* ptr to list of output file names */ 2 list_count fixed bin aligned, /* number of names in list */ 2 list_name_size fixed bin aligned, /* length of names (will always be 168 - included here to keep structures the same */ 2 tape_ptr ptr, /* ptr to output tape information structure */ 2 set fixed bin aligned, /* single_file, or multiple_files */ 2 format fixed bin aligned, /* ascii, gcos, or blocks */ 2 medium fixed bin aligned, /* raw, tape, or file */ 2 brief bit (1) aligned, /* suppress warning messages on output errors */ 2 truncate_ascii bit (1) aligned, /* remove trailing blanks from ascii output lines */ 2 comdk bit (1) aligned, /* compress all nondollar output cards */ 2 long bit (1) aligned, /* display names of items written to output */ /* following elements apply only to output processing */ 2 append bit (1) aligned, /* append to existing output file */ 2 name_files bit (1) aligned, /* use snumbs or edit names for output file names */ 2 gcos_ascii bit (1) aligned, /* create gcos_ascii (media code 6) output from ASCII input */ 2 gcos_bcd bit (1) aligned; /* create gcos_bcd (media code 2) output from ASCII input */ dcl 1 output_list (output.list_count) aligned based (output.list_ptr), 2 used bit (1) aligned, /* on when item has been written into */ 2 names char (output.list_name_size) aligned; dcl 1 output_tape aligned based (output.tape_ptr), 2 id char (32) aligned, /* tape reel number, and optional ",Ntrack" */ 2 label char (12) aligned, /* file name to put into tape label */ 2 tracks char (1) aligned, /* 7, 9, or blank if not given */ 2 retain bit (1) aligned, /* do not dismount tape at end of processing */ 2 attached bit (1) aligned, /* tape is still mounted from previous use of command */ 2 position fixed bin; /* file position, or 0 if not given */ /* For program readability, we assign names to the numeric values that the multi-valued switches - sw, set, format, and medium - can have */ dcl ( input_code init (1), /* sw */ output_code init (2), /* sw */ single_file init (11), /* set */ imcv init (12), /* set */ library init (13), /* set */ multiple_files init (14), /* set */ ascii init (15), /* format */ gcos init (16), /* format */ blocks init (17), /* format */ raw init (18), /* medium */ tape init (19), /* medium */ file init (20)) /* medium */ int static fixed bin; /* Overlays for input and output structures, to allow the same code to set and examine either input or output information, depending on the value of io_ptr */ dcl io_ptr ptr; /* = either input_ptr or output_ptr */ dcl 1 io like input aligned based (io_ptr); dcl 1 io_tape like input_tape aligned based (io.tape_ptr); dcl 1 io_list (io.list_count) aligned based (io.list_ptr), 2 used bit (1) aligned, 2 names char (io.list_name_size) aligned; /* Stream names for tape and file attachments; selectable by io.sw */ dcl tape_stream (2) char (32) int static aligned init ( "gcu_tape_input", "gcu_tape_output"); dcl file_stream (2) char (32) int static init ( "gcu_file_input", "gcu_file_output"); /* Names for messages; selectable by io.sw */ dcl io_names (2) char (8) int static aligned init ( "input", "output"); /* END INCLUDE FILE gcos_utility_args_.incl.pl1 */ */ ----------------------------------------------------------- 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 */