1: #
2: /*
3: ** pipes.h
4: **
5: ** Interprocess pipe format and associated manifest constants
6: */
7:
8: # define PBUFSIZ 120 /* length of pipe buffer */
9: # define HDRSIZ 8 /* length of pipe header */
10:
11: /* -- PIPE PARAMETERS -- */
12: # define NORM_STAT 0 /* HDRSTAT: data block */
13: # define LAST_STAT 1 /* HDRSTAT: last block of cmnd */
14: # define ERR_STAT 2 /* HDRSTAT: error block (sync) */
15: # define SYNC_STAT 3 /* sync on delete signal */
16:
17: struct pipfrmt /* interprocess pipe format: */
18: {
19: char exec_id; /* target overlay id */
20: char func_id; /* command id in target overlay */
21: int err_id; /* error status
22: 0 - no errors
23: non zero, error identifier */
24: char hdrstat; /* block status word
25: 0 - good block in command
26: 1 - last block in command */
27: char buf_len; /* # of useful bytes in PBUF
28: values 0 to 120.
29: rdpipe effectively
30: concatenates significant
31: parts of blocks. */
32: char param_id; /* one byte param available to calling pgm */
33: char expansion; /* reserved for expansion */
34: char pbuf[PBUFSIZ]; /* pipe data buffer */
35: int pbuf_pt; /* next available slot in PBUF */
36: };
37:
38:
39: /* modes for rdpipe and wrpipe */
40: # define P_PRIME 0 /* prime the pipe */
41: # define P_NORM 1 /* normal read or write */
42: # define P_SYNC 2 /* read for sync */
43: # define P_END 2 /* write a sync block */
44: # define P_EXECID 3 /* read execid */
45: # define P_FUNCID 4 /* read funcid */
46: # define P_FLUSH 3 /* write non-sync block */
47: # define P_WRITE 4 /* write block, previous type */
48: # define P_INT 5 /* synchronize on delete interrupt */
49: # define P_PARAM 6 /* set/get param field */
50:
51: /* pipe descriptors */
52: extern int R_up; /* Read from process n-1 */
53: extern int W_up; /* Write to process n-1 */
54: extern int R_down; /* Read from process n+1 */
55: extern int W_down; /* Write to process n+1 */
56: extern int R_front; /* Read from front end */
57: extern int W_front; /* Write to front end */
Defined struct's
pipfrmt
defined in line
17; used 152 times
- in /usr/ingres/source/dbu/main.c line
88(2)
- in /usr/ingres/source/dbu/readtree.c line
37(2)
- in /usr/ingres/source/decomp/call_dbu.c line
27(2),
65(2),
77-79(4)
- in /usr/ingres/source/decomp/call_dbu70.c line
32(2),
102(2),
114-116(4)
- in /usr/ingres/source/decomp/call_ovqp.c line
28(2)
- in /usr/ingres/source/decomp/error.c line
10(2),
25(2)
- in /usr/ingres/source/decomp/main.c line
10(2),
88(2)
- in /usr/ingres/source/decomp/readq.c line
25(2)
- in /usr/ingres/source/decomp/writeback.c line
10-11(4)
- in /usr/ingres/source/equel/runtime/IIprpipe.c line
4-7(4)
- in /usr/ingres/source/equel/runtime/IIrdpipe.c line
87(2),
94(2)
- in /usr/ingres/source/equel/runtime/IIresync.c line
22-24(6)
- in /usr/ingres/source/equel/runtime/IIwrpipe.c line
51(2),
58(2)
- in /usr/ingres/source/iutil/copypipes.c line
14-17(4)
- in /usr/ingres/source/iutil/error.c line
30-31(4)
- in /usr/ingres/source/iutil/proc_error.c line
12-19(6)
- in /usr/ingres/source/iutil/prpipe.c line
4-7(4)
- in /usr/ingres/source/iutil/rdpipe.c line
89(2),
95(2)
- in /usr/ingres/source/iutil/resyncpipes.c line
13-14(4)
- in /usr/ingres/source/iutil/wrpipe.c line
55(2),
63(2)
- in /usr/ingres/source/monitor/go.c line
26(2)
- in /usr/ingres/source/monitor/main.c line
223-226(4)
- in /usr/ingres/source/ovqp/copyreturn.c line
11(2)
- in /usr/ingres/source/ovqp/equelpr.c line
15(2),
81(2)
- in /usr/ingres/source/ovqp/getqry.c line
34(2)
- in /usr/ingres/source/ovqp/main.c line
11(2),
66(2)
- in /usr/ingres/source/ovqp/rdsym.c line
7(2)
- in /usr/ingres/source/ovqp/startovqp.c line
8(2),
19(2)
- in /usr/ingres/source/ovqp/support.c line
8(2)
- in /usr/ingres/source/parser/call_p.c line
15-16(4)
- in /usr/ingres/source/parser/call_tree.c line
8(2)
- in /usr/ingres/source/parser/control.c line
210-211(4),
230-231(4)
- in /usr/ingres/source/parser/getscr.c line
16(2)
- in /usr/ingres/source/parser/main.c line
98-105(6)
- in /usr/ingres/source/parser/tree.c line
106(2)
- in /usr/ingres/source/qrymod/d_integ.c line
49(2)
- in /usr/ingres/source/qrymod/d_view.c line
60(2)
- in /usr/ingres/source/qrymod/define.c line
90(2)
- in /usr/ingres/source/qrymod/fillprotup.c line
29(2)
- in /usr/ingres/source/qrymod/issue.c line
49(2)
- in /usr/ingres/source/qrymod/main.c line
80(2)
- in /usr/ingres/source/qrymod/readtree.c line
41(2)
- in /usr/ingres/source/qrymod/util.c line
218(2)
- in /usr/ingres/source/qrymod/writetree.c line
29(2)
Defined macros
HDRSIZ
defined in line
9; used 9 times
PBUFSIZ
defined in line
8; used 14 times
P_END
defined in line
43; used 17 times
P_INT
defined in line
48; used 9 times
P_NORM
defined in line
41; used 65 times
- in /usr/ingres/source/dbu/main.c line
212,
257
- in /usr/ingres/source/decomp/call_dbu.c line
43
- in /usr/ingres/source/decomp/call_dbu70.c line
77
- in /usr/ingres/source/decomp/call_ovqp.c line
103-104(2),
111-112(2),
162,
202-206(2),
255,
291,
323-324(2),
354-358(2)
- in /usr/ingres/source/decomp/readq.c line
92,
99
- in /usr/ingres/source/decomp/writeback.c line
25
- in /usr/ingres/source/equel/runtime/IIcvar.c line
60-63(2)
- in /usr/ingres/source/equel/runtime/IIflushtup.c line
36
- in /usr/ingres/source/equel/runtime/IIgettup.c line
38-41(2)
- in /usr/ingres/source/equel/runtime/IIn_get.c line
51
- in /usr/ingres/source/equel/runtime/IIn_ret.c line
47,
139
- in /usr/ingres/source/equel/runtime/IIrdpipe.c line
214
- in /usr/ingres/source/equel/runtime/IIwrite.c line
28
- in /usr/ingres/source/iutil/copypipes.c line
24-25(2)
- in /usr/ingres/source/iutil/error.c line
44
- in /usr/ingres/source/monitor/go.c line
55,
63
- in /usr/ingres/source/monitor/main.c line
246
- in /usr/ingres/source/ovqp/equelpr.c line
74,
108,
116
- in /usr/ingres/source/ovqp/rdsym.c line
26,
40
- in /usr/ingres/source/ovqp/support.c line
124
- in /usr/ingres/source/parser/call_p.c line
26
- in /usr/ingres/source/parser/call_tree.c line
74-76(2),
98
- in /usr/ingres/source/parser/control.c line
217,
235
- in /usr/ingres/source/parser/getscr.c line
25
- in /usr/ingres/source/parser/tree.c line
128
- in /usr/ingres/source/qrymod/d_view.c line
80
- in /usr/ingres/source/qrymod/fillprotup.c line
55,
64-74(3),
91,
123,
131,
139,
148
- in /usr/ingres/source/qrymod/issue.c line
84,
177
- in /usr/ingres/source/qrymod/main.c line
198
- in /usr/ingres/source/qrymod/readtree.c line
231
- in /usr/ingres/source/qrymod/util.c line
287
P_PRIME
defined in line
40; used 53 times
- in /usr/ingres/source/dbu/main.c line
197,
339
- in /usr/ingres/source/decomp/call_dbu.c line
39,
50,
92-96(2)
- in /usr/ingres/source/decomp/call_dbu70.c line
73,
84,
129-133(2)
- in /usr/ingres/source/decomp/call_ovqp.c line
87,
161,
239,
254
- in /usr/ingres/source/decomp/main.c line
46,
56
- in /usr/ingres/source/decomp/writeback.c line
15,
30
- in /usr/ingres/source/equel/runtime/IIflushtup.c line
33,
42
- in /usr/ingres/source/equel/runtime/IIingres.c line
56-57(2)
- in /usr/ingres/source/equel/runtime/IIresync.c line
28,
38
- in /usr/ingres/source/equel/runtime/IIsync.c line
30,
36
- in /usr/ingres/source/iutil/error.c line
37
- in /usr/ingres/source/iutil/proc_error.c line
26-30(2)
- in /usr/ingres/source/iutil/resyncpipes.c line
18
- in /usr/ingres/source/monitor/go.c line
50,
60
- in /usr/ingres/source/monitor/main.c line
263
- in /usr/ingres/source/ovqp/copyreturn.c line
15-16(2)
- in /usr/ingres/source/ovqp/getqry.c line
55
- in /usr/ingres/source/ovqp/main.c line
37-40(2),
46
- in /usr/ingres/source/ovqp/startovqp.c line
22
- in /usr/ingres/source/parser/call_p.c line
20
- in /usr/ingres/source/parser/call_tree.c line
24
- in /usr/ingres/source/parser/control.c line
214,
234
- in /usr/ingres/source/parser/getscr.c line
39
- in /usr/ingres/source/parser/main.c line
112-116(2)
- in /usr/ingres/source/qrymod/issue.c line
73,
83
- in /usr/ingres/source/qrymod/main.c line
159,
188,
196
- in /usr/ingres/source/qrymod/util.c line
285
P_SYNC
defined in line
42; used 20 times
Usage of this include