1 /* proc_dcl include file  */
  2 
  3 dcl assign entry(ptr,ptr,fixed bin precision(35)),
  4     random_$uniform entry (fixed bin(35),float bin(27)),
  5     edit_options entry(ptr,char(22) varying),
  6     error_output entry(ptr,char(3) varying),
  7     ioi_$connect_pcw entry (fixed bin(12),fixed bin(18),bit(36),
  8          fixed bin(35)),
  9     sioi_$connect_pcw entry (fixed bin(12),fixed bin(18),bit(36),
 10          fixed bin(35)),
 11     options entry(ptr,ptr,fixed bin),
 12     output_trace entry(ptr,ptr,fixed bin,ptr),
 13      establish_cleanup_proc_ entry(entry),
 14      revert_cleanup_proc_ entry,
 15     terminate_process_ entry(char(*),ptr),
 16     timer_manager_$alarm_wakeup entry (fixed bin(71),bit(2),fixed bin(71));
 17 
 18 dcl current_dcw_add ptr,
 19     work_ptr ptr,
 20     status_zero_ptr ptr;
 21 
 22 dcl status_zero bit(36) aligned based(status_zero_ptr);
 23 
 24 dcl 1 dcw_peek based,
 25       2 add bit(18) unaligned,
 26       2 char bit(3) unaligned,
 27       2 w_c bit(1) unaligned,
 28       2 typ bit(2) unaligned,
 29       2 wc bit(12) unaligned;
 30 
 31 
 32 dcl 1 fatal_desc aligned,
 33      2 version init(0),
 34      2 fatal_code fixed bin(35) init(0);
 35 dcl 1 bit_look based,
 36       2 data(10656) bit(1);
 37 
 38  dcl  bits based bit(36) aligned;
 39 dcl  fmtflg aligned init(0);
 40 
 41 dcl char_move char(48) based;
 42 dcl falt_peek precision(35) based;
 43 dcl char6_peek(256) bit(6) based;
 44 dcl 1 data_peek based,
 45       2 data bit(36);
 46 dcl 1 data_move based,
 47       2 data(322) bit(36);
 48 
 49 
 50 dcl 1 dcw_list,
 51       2 dcws(10) aligned,
 52         3 add bit(18) unaligned,
 53         3 char bit(3) unaligned,
 54         3 w_c bit(1) unaligned,
 55         3 typ bit(2) unaligned,
 56         3 wc bit(12) unaligned;
 57 
 58 dcl inst$tdli(370) char(8) aligned external,
 59     inst$tdlr_no(1480) unaligned external,
 60     inst$tdlr_num_conv_control(4440) precision(5) unaligned external,
 61     inst$tdlr_type_conv_control(4440) bit(6) unaligned external,
 62     inst$tlen external;
 63 
 64 /* validating table for hex data
 65 a 20 entry is illegal
 66 otherwise, the data is the numerical value for the conversion */
 67 dcl hex_val(64) init(
 68 0,1,2,3,4,5,6,7,8,9,   /*  0-9 ok and convert to 0-9 */
 69 20,20,20,20,20,20,20,  /* 10-16 illegal */
 70 10,11,12,13,14,15,  /* 17-22 (a-f) legal and convert to 10-15 */
 71 20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,
 72 20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20);  /* 23-63 illegal */
 73 
 74 
 75 dcl allow_branch_dcw,
 76     bit36 bit(36),
 77     byte1 bit(9),
 78     byte2 bit(9),
 79     byte3 bit(9),
 80     check,
 81     chgmode init(0),
 82     eflag init(0),
 83     cmpflg init(0),
 84     current_options char(22) varying,
 85     data_error char(150) varying,
 86     data_setup_reladd,
 87     data_setup_wc,
 88     dcw_count,
 89     did_skip,
 90     dovar1,
 91     dovar2,
 92     dovar3,
 93     dvran bit(36),
 94     dvranw bit(72),
 95     fdec1,
 96     fdec2,
 97     fdec3,
 98     fieldno,
 99     fix_bit precision(35),
100     halt_message char(20) varying,
101     inv_data char(72) varying init("") static,
102     isol_flag,
103     last_test_no,
104     lineno,
105     lpprct init(0),
106     message char(512) varying,
107     mesg_len,
108     next_test_no,
109     non_exec_count,
110     octnum precision(63),
111     page_no_char char(36) init("0123456789abcdefghijklmnopqrstuvwxyz"),
112     page_term char(12) varying,
113     passck init(0),
114     pcwa bit(36),
115     per_op_letter char(1),
116     pnum char(1),
117     pos char(3) varying,
118     sf bit(36) based,
119     skip_field_no init (0),
120     status_ptr ptr,
121     term_message char(150) varying init(""),
122     the_char char(1),
123     tio_off precision(18),
124     vdec4,
125     work_num;
126   dcl adrange bin (35);
127   dcl seed fixed bin(35);
128   dcl random_no float bin(27);
129   dcl adproduct bin(35);
130 
131 
132 dcl rcp_name char(8) varying;
133 dcl rcp_area(24);
134 dcl rcp_priv_$attach entry(char(*),ptr,fixed bin(71),char(*),bit(36) aligned,fixed bin(35));
135 /* call rcp_priv_$attach("tape",info_ptr,event_id,"comment",mdata.rcp_id,error);
136                            "disk"
137                            "console"
138                            "printer"
139                            "punch"
140                            "reader"
141                            "special"
142                                                   "comment" is displayed to the operator
143                                                   after assignment is complete.  No comment
144                                                   will be displayed if "".
145 
146                                                   mdata.rcp_id and error are outputs.
147 
148 
149                               info_ptr points to one of the following structures:
150                               All of the info in these different structures
151                               is identical up through device_name for all of the
152                               devices.  Since if device_name is not blank, all of the rest of the
153                               information is ignored, rather than use a different
154                               structure for each device, the largest structure(that for tapes) is used
155                               and T&D always sets the device_name to non-blank as it wants a specific device.
156 
157 */
158 %include rcp_device_info;
159 %include rcp_tape_info;
160 %include rcp_disk_info;
161 %include rcp_printer_info;