COMPILATION LISTING OF SEGMENT mrds_dsm_write_header Compiled by: Multics PL/I Compiler, Release 28e, of February 14, 1985 Compiled at: Honeywell Multics Op. - System M Compiled on: 04/18/85 1021.9 mst Thu Options: optimize map 1 /* *********************************************************** 2* * * 3* * * 4* * Copyright, (C) Honeywell Information Systems Inc., 1981 * 5* * * 6* * * 7* *********************************************************** */ 8 9 mrds_dsm_write_header: proc (iocb_ptr, db_path, code); 10 11 /* 12* This routine writes the submodel header record. The record has a 13* key of 32 nulls which should make it the first record in the 14* vfile_. A temporary header record with the submodel version 15* information must already exist. 16* 17* Known Bugs: 18* 19* Other Problems: 20* 21* HISTORY 22* 23* 81-02-23 Davids: written 24* 25* 81-06-01 Davids: Changed mrds_dsm_header_str.incl.pl1 to 26* . mrds_dsm_header.incl.pl1 27* */ 28 29 /* PARAMETERS */ 30 31 dcl iocb_ptr ptr; /* (input) pointer to the submodels iocb */ 32 dcl db_path char (*); /* (input) db_path submodel is defined for */ 33 dcl code fixed bin (35); /* (output) error code */ 34 35 /* AUTOMATIC */ 36 37 dcl 01 header_str like mrds_dsm_header; /* automatic version of the header record */ 38 dcl key char (256) var; /* header record key */ 39 dcl record_length fixed bin (21); /* length of the header record */ 40 41 /* BASED */ 42 1 1 /* BEGIN INCLUDE FILE mrds_dsm_header.incl.pl1 1 2* 1 3*This include file is for internal MRDS use only - it is not to be 1 4*documented in any user manual. 1 5* 1 6*81-06-01 Davids: This is a copy of the mrds_dsm_header_str 1 7*include file, it is to be used by all mrds routines. The 1 8*structure name has been changed from dsm_header_record to 1 9*mrds_dsm_header to avoid conflicts when both this include file 1 10*and mrds_dsm_header_str are included (mrds_dsm_dsmd). 1 11**/ 1 12 1 13 dcl 1 mrds_dsm_header based, /* header structure for a MRDS submodel */ 1 14 2 dsm_generator_version fixed bin init (0), /* version number of submodel created by CMDSM */ 1 15 2 date_time_generated fixed bin (71) init (0), /* convert data to binary form of creation time */ 1 16 2 database_pn char (168) init (""), /* pathname of database this submodel is valid for */ 1 17 2 name char (32) init (""), /* identifying name for this header structure */ 1 18 2 num_of_relations fixed bin (35) init (0), /* number of relations in submodel view of database */ 1 19 2 creator_id char (32) init ("") ; /* the person.project.tag of the submodel creator */ 1 20 1 21 /* END INCLUDE FILE mrds_dsm_header.incl.pl1 */ 43 44 45 46 /* BUILTIN */ 47 48 dcl addr builtin; 49 dcl low builtin; 50 51 /* ENTRIES */ 52 53 dcl clock_ entry () returns (fixed bin (71)); 54 dcl get_group_id_ entry () returns (char (32)); 55 dcl iox_$seek_key entry (ptr, char (256) varying, fixed bin (21), fixed bin (35)); 56 dcl iox_$rewrite_record entry (ptr, ptr, fixed bin (21), fixed bin (35)); 57 dcl mrds_dsm_get_relation_names$number_of_rels entry (ptr, fixed bin (35)) returns (fixed bin); 58 59 /* EXTERNAL */ 60 61 dcl mrds_data_$dsmd_version_number fixed bin (35) external static; 62 63 header_str.dsm_generator_version = mrds_data_$dsmd_version_number; 64 header_str.date_time_generated = clock_ (); 65 header_str.database_pn = db_path; 66 header_str.creator_id = get_group_id_ (); 67 header_str.name = "data_submodel_header"; 68 header_str.num_of_relations = mrds_dsm_get_relation_names$number_of_rels (iocb_ptr, code); 69 70 71 if code = 0 72 then do; 73 key = low (32); 74 call iox_$seek_key (iocb_ptr, key, record_length, code); 75 if code = 0 76 then do; 77 call iox_$rewrite_record (iocb_ptr, addr (header_str), record_length, code); 78 end; 79 end; 80 81 return; 82 83 end /* mrds_dsm_write_header */; 84 SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 04/18/85 0907.0 mrds_dsm_write_header.pl1 >special_ldd>online>mrds.pbf-04/18/85>mrds_dsm_write_header.pl1 43 1 10/14/83 1608.9 mrds_dsm_header.incl.pl1 >ldd>include>mrds_dsm_header.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. addr builtin function dcl 48 ref 77 77 clock_ 000010 constant entry external dcl 53 ref 64 code parameter fixed bin(35,0) dcl 33 set ref 9 68* 71 74* 75 77* creator_id 67 000100 automatic char(32) initial level 2 packed unaligned dcl 37 set ref 37* 66* database_pn 4 000100 automatic char(168) initial level 2 packed unaligned dcl 37 set ref 37* 65* date_time_generated 2 000100 automatic fixed bin(71,0) initial level 2 dcl 37 set ref 37* 64* db_path parameter char unaligned dcl 32 ref 9 65 dsm_generator_version 000100 automatic fixed bin(17,0) initial level 2 dcl 37 set ref 37* 63* get_group_id_ 000012 constant entry external dcl 54 ref 66 header_str 000100 automatic structure level 1 unaligned dcl 37 set ref 77 77 iocb_ptr parameter pointer dcl 31 set ref 9 68* 74* 77* iox_$rewrite_record 000016 constant entry external dcl 56 ref 77 iox_$seek_key 000014 constant entry external dcl 55 ref 74 key 000177 automatic varying char(256) dcl 38 set ref 73* 74* low builtin function dcl 49 ref 73 mrds_data_$dsmd_version_number 000022 external static fixed bin(35,0) dcl 61 ref 63 mrds_dsm_get_relation_names$number_of_rels 000020 constant entry external dcl 57 ref 68 mrds_dsm_header based structure level 1 unaligned dcl 1-13 name 56 000100 automatic char(32) initial level 2 packed unaligned dcl 37 set ref 37* 67* num_of_relations 66 000100 automatic fixed bin(35,0) initial level 2 dcl 37 set ref 37* 68* record_length 000300 automatic fixed bin(21,0) dcl 39 set ref 74* 77* NAME DECLARED BY EXPLICIT CONTEXT. mrds_dsm_write_header 000021 constant entry external dcl 9 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 310 334 174 320 Length 536 174 24 165 113 0 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME mrds_dsm_write_header 220 external procedure is an external procedure. STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME mrds_dsm_write_header 000100 header_str mrds_dsm_write_header 000177 key mrds_dsm_write_header 000300 record_length mrds_dsm_write_header THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_cs call_ext_out return shorten_stack ext_entry_desc THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. clock_ get_group_id_ iox_$rewrite_record iox_$seek_key mrds_dsm_get_relation_names$number_of_rels THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. mrds_data_$dsmd_version_number LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 9 000015 37 000034 63 000051 64 000053 65 000061 66 000067 67 000076 68 000101 71 000117 73 000122 74 000133 75 000151 77 000154 81 000173 ----------------------------------------------------------- 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