/* STATIC DATA */ dcl 1 iocb_arg static, 2 pt ptr init(null()), /* initialized to address of basic structure */ 2 zeros bit(144) init(""b); dcl 1 temp_arg static, 2 pt ptr init(null()), /* always null */ 2 type fixed bin init(3), 2 zeros bit(108) init(""b); dcl 1 status_arg static, 2 pt ptr init(null()), /* always null */ 2 type fixed bin init(3), 2 off1 fixed bin init(40), 2 zeros bit(72) init(""b); dcl 1 fsb_arg static, 2 pt ptr init(null()), /* always null */ 2 type fixed bin init(3), 2 off1 fixed bin, /* set each time to wd offset in fsb */ 2 off2 fixed bin init(0), /* not used */ 2 bits bit(36) init("0000000000000000000001001"b); /* pr1 */ dcl 1 pr1_struct static, 2 pr1 fixed bin init(1), 2 pointer_no bit(3), 2 lock fixed bin init(1), 2 switch fixed bin init(0), 2 segno fixed bin, 2 offset fixed bin, 2 reset fixed bin; dcl 1 x1_struct static, 2 x1 fixed bin init(11), 2 reg_no bit(4), 2 lock fixed bin init(0), 2 already_there fixed bin, 2 contains fixed bin init(0), 2 null_ptr ptr init(null()), 2 fill bit(18) unaligned init((18)"0"b), 2 literal bit(18) unaligned; dcl 1 aq_struct static, 2 aq fixed bin init(3), 2 reg_no bit(4), 2 lock fixed bin init(0), 2 already_there fixed bin, 2 contains fixed bin init(0), 2 null_ptr ptr init(null()), 2 fill bit(18) unaligned init((18)"0"b), 2 literal bit(18) unaligned; dcl 1 control_desc static, 2 iocb_ptr_desc bit(36) init( "100110100000000000000000000000000000"b), 2 char9_desc bit(36) init( "101010100000000000000000000000001001"b), 2 info_ptr_desc bit(36) init( "100110100000000000000000000000000000"b), 2 status_desc bit(36) init( "100000100000000000000000000000100011"b); dcl 1 iocb_basic_struct static, 2 type fixed bin init(1), 2 operand_no fixed bin init(0), 2 lock fixed bin init(0), 2 seg fixed bin, 2 off fixed bin, 2 send_receive fixed bin init(0); dcl 1 mpout static, 2 n fixed bin init(4), 2 pt1 ptr, 2 pt2 ptr, 2 pt3 ptr, 2 pt4 ptr; dcl 1 num_type9 static, 2 header (4) fixed bin init(112,0,0,9), 2 repl_ptr (2) ptr init((2)null()), 2 fill1 bit(108) init(""b), 2 file_key_info, 3 fb1 (3) fixed bin init(0,0,0), 3 size fixed bin init(0), 3 places_left fixed bin, 3 places_right fixed bin init(0), 3 flags1 bit(36) init("010000100100000001000000000100000000"b), 3 flags2 bit(36) init(""b), 3 seg fixed bin init(0), 3 off fixed bin, 2 fill2 (7) fixed bin init(0,0,0,0,0,0,0); dcl 1 alpha_type9 static, 2 header (4) fixed bin init(112,0,0,9), 2 repl_ptr (2) ptr init((2)null()), 2 fill1 bit(108) init(""b), 2 file_key_info, 3 fb1 (3) fixed bin init(0,0,0), 3 size fixed bin init(0), 3 fb2 (2) fixed bin init(0,0), 3 flags1 bit(36) init("010000100100000000010000000100000000"b), 3 flags2 bit(36) init(""b), 3 seg fixed bin init(0), 3 off fixed bin, 2 fill2 (7) fixed bin init(0,0,0,0,0,0,0); dcl 1 fkey_type9 static, 2 header (4) fixed bin init(112,0,0,9), 2 repl_ptr (2) ptr init((2)null()), 2 fill1 bit(108) init(""b), 2 file_key_info, 3 fb1 (3) fixed bin init(0,0,0), 3 size fixed bin init(0), 3 fb2 (2) fixed bin init(0,0), 3 flags1 bit(36) init(""b), 3 flags2 bit(36) init(""b), 3 seg fixed bin, 3 off fixed bin, 2 fill2 (7) fixed bin init(0,0,0,0,0,0,0); dcl 1 type19 static, 2 size fixed bin init(38), 2 line fixed bin init(0), 2 column fixed bin init(0), 2 type fixed bin init(19), 2 verb fixed bin init(18), /* verb number */ 2 e fixed bin init(1), 2 h fixed bin init(0), 2 i fixed bin init(0), 2 j fixed bin init(0), 2 a bit(3) init(""b), 2 b bit(1) init(""b), 2 c bit(1) init(""b), 2 d bit(2) init(""b), 2 f bit(2) init(""b), 2 g bit(2) init(""b), 2 k bit(5) init(""b); dcl 1 ioerror static, 2 cobol_code fixed bin, 2 retry_tag fixed bin, 2 is_tag fixed bin, 2 ns_tag fixed bin, 2 type1_ptr ptr, 2 mode fixed bin; dcl 1 seek_special static, 2 n fixed bin init(1), 2 link1 aligned, 3 name char(32) init("no_record"), 3 status2 char(4) init("6623"), 3 status1 char(2) init("23"); dcl 1 control_special static, 2 n fixed bin init(1), 2 link1 aligned, 3 name char(32) init("no_record"), 3 status2 char(4) init("6723"), 3 status1 char(2) init("23"); dcl 1 unopen_error static, 2 n fixed bin init(1), 2 link1 aligned, 3 name char(32) init(""), 3 status2 char(4) init("6031"), 3 status1 char(2) init("30"); dcl 1 output_error static, 2 n fixed bin init(1), 2 link1 aligned, 3 name char(32) init(""), 3 status2 char(4) init("6032"), 3 status1 char(2) init("30"); dcl 1 seek_error static, 2 n fixed bin init(2), 2 link1 aligned, 3 name char(32) init("no_operation"), 3 status2 char(4) init("6632"), 3 status1 char(2) init("30"), 2 link2 aligned, 3 name char(32) init(""), 3 status2 char(4) init("6630"), 3 status1 char(2) init("30"); dcl 1 control_error static, 2 n fixed bin init(2), 2 link1 aligned, 3 name char(32) init("no_operation"), 3 status2 char(4) init("6732"), 3 status1 char(2) init("30"), 2 link2 aligned, 3 name char(32) init(""), 3 status2 char(4) init("6730"), 3 status1 char(2) init("30"); dcl mcode_off fixed bin static init(40); dcl fsb_keylen_sw fixed bin static init(24); /* offset 6 */ dcl fsb_key fixed bin static init(28); /* offset 7 */ dcl fsb_key_wdoff fixed bin static init(7); dcl seek_errno fixed bin static init(37); /* Unable to seek key for start */ dcl output_errno fixed bin static init(36); /* Attempt to start an output file */ dcl control_errno fixed bin static init(38); /* Unable to start file with specified key relation */ /* EXTERNAL ENTRY NAMES */ dcl cobol_ioop_util$ldaldx5 entry(fixed bin, fixed bin); dcl cobol_ioop_util$set_icode entry; dcl cobol_alloc$stack entry(fixed bin,fixed bin,fixed bin); dcl cobol_read_ft entry(fixed bin,ptr); dcl cobol_read_rand entry(fixed bin,char(5),ptr); dcl cobol_pointer_register$call entry; dcl cobol_pointer_register$get entry(ptr); dcl cobol_register$load entry(ptr); dcl cobol_define_tag entry(fixed bin); /* sub-generators */ dcl cobol_move_gen entry(ptr); dcl cobol_call_op entry(fixed bin, fixed bin); dcl cobol_gen_ioerror entry(ptr, ptr); dcl cobol_gen_ioerror$finish_up entry(ptr, ptr); dcl cobol_reg_manager$after_op entry(fixed bin); dcl cobol_set_fsbptr entry(ptr); dcl cobol_io_util$key_loc entry(fixed bin,fixed bin); dcl cobol_io_util$file_desc entry(fixed bin(24)); dcl cobol_io_util$move_direct entry(bit(3) aligned,fixed bin,fixed bin,fixed bin,bit(18) aligned); dcl cobol_io_util$move_lit entry(bit(3) aligned,fixed bin,fixed bin,char(*)); dcl cobol_io_util$bypass_error entry(fixed bin,fixed bin); dcl cobol_io_util$bypass_mode_error entry(fixed bin,bit(2) aligned); dcl cobol_io_util$key_num entry(fixed bin); dcl cobol_open_util$check_open entry(ptr,fixed bin,ptr); /* BUILTIN FUNCTIONS */ dcl (substr,addr) builtin; %include cobol_file_table; %include cobol_file_key; %include cobol_type1; %include cobol_type9; %include cobol_type12; %include cobol_type19; %include cobol_; */ ----------------------------------------------------------- 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 */