1
2
3
4 dcl sdb_ptr ptr;
5
6 dcl 1 stream_data_block aligned based (sdb_ptr),
7 2 outer_module_name char (32) init (my_name),
8
9 2 device_name_list_ptr ptr init (addr (stream_data_block.device_name)),
10 2 device_name aligned,
11 3 next_ptr ptr init (null ()),
12 3 name_size fixed bin init (length (att_stream)),
13 3 name char (32) init (att_stream),
14 2 device_iocb_ptr ptr,
15 2 iocb_ptr ptr,
16
17 2 sequence_table_ptr ptr,
18 2 device_info_ptr ptr init (null ()),
19 2 conv_tab_ptr ptr init (null ()),
20 2 compression_in_ptr ptr initial (null ()),
21
22 2 compression_out_ptr ptr initial (null ()),
23
24
25 2 keying_time fixed bin (71) init (0),
26
27 2 max_col fixed bin init (-1),
28 2 max_line fixed bin init (-1),
29 2 actcol fixed bin init (0),
30 2 actline fixed bin init (0),
31 2 actshift unal bit (2) init ("11"b),
32
33
34 2 tabm unal bit (1) init ("1"b),
35
36 2 conm unal bit (1) init ("1"b),
37
38 2 graphic unal bit (1) init ("0"b),
39
40 2 escm unal bit (1) init ("1"b),
41
42 2 erklm unal bit (1) init ("1"b),
43
44 2 rawim unal bit (1) init ("0"b),
45
46 2 red_mode unal bit (1) init ("1"b),
47
48 2 escape_out_seen unal bit (1) init ("0"b),
49
50 2 tabsin_mode unal bit (1) init ("0"b),
51
52 2 hndlquit_mode unal bit (1) init ("1"b),
53
54 2 padding unal bit (24),
55 2 read_back fixed bin init (0),
56
57 2 canonicalization_index fixed bin init (1),
58 2 read_offset fixed bin init (-1),
59 2 character_error_index fixed bin init (-1),
60 2 error_mark_column fixed bin init (0),
61 2 inimax fixed bin init (0),
62 2 tab_width fixed bin init (10),
63 2 baud_rate fixed bin init (0),
64 2 internal_type unal dim (0:255) bit (9),
65
66 2 canonicalization_buffer char (512),
67 2 normal_read_buffer char (512),
68 2 quit_read_buffer char (512);
69
70 dcl 1 type unal dim (0:255) defined (stream_data_block.internal_type (0)),
71
72 2 white bit (1),
73 2 red bit (1),
74 2 action bit (4),
75 2 move bit (3);
76
77
78
79 declare read_back_names char (16) dimension (0:2) internal static options (constant)
80 initial ("read_back_spaces", "read_back_input", "read_back_output");
81
82 dcl (
83 read_back_spaces init (0),
84 read_back_input init (1),
85 read_back_output init (2)
86 ) fixed bin internal static options (constant);
87
88 dcl status bit (72);
89
90 dcl 1 status_bits based (addr (status)),
91 2 status_code fixed bin (35),
92 (
93 2 logical_initiation bit (1),
94 2 logical_completion bit (1),
95 2 physical_initiation bit (1),
96 2 physical_completion bit (1),
97 2 transaction_terminated bit (1),
98 2 unused_42_45 bit (4),
99 2 end_of_logical_data bit (1),
100 2 end_of_physical_data bit (1),
101 2 unused_48_51 bit (4),
102 2 stream_detached bit (1),
103 2 unused_53 bit (1),
104 2 transaction_aborted bit (1),
105 2 transaction_index bit (18)
106 ) unaligned;
107
108