1: /*
2: * header file for standalone package
3: */
4:
5: /*
6: * io block: includes an
7: * inode, cells for the use of seek, etc,
8: * and a buffer.
9: */
10: struct iob {
11: char i_flgs;
12: struct inode i_ino;
13: int i_unit;
14: daddr_t i_boff;
15: daddr_t i_cyloff;
16: off_t i_offset;
17: daddr_t i_bn;
18: char *i_ma;
19: int i_cc;
20: #ifndef UCB_NKB
21: char i_buf[512];
22: #else
23: char i_buf[BSIZE];
24: #endif
25: };
26:
27: #define F_READ 01
28: #define F_WRITE 02
29: #define F_ALLOC 04
30: #define F_FILE 010
31: #define READ F_READ
32: #define WRITE F_WRITE
33:
34: /*
35: * device switch
36: */
37: struct devsw {
38: char *dv_name;
39: int (*dv_strategy)();
40: int (*dv_open)();
41: int (*dv_close)();
42: };
43:
44: struct devsw devsw[];
45:
46: #define NBUFS 4
47:
48:
49: #ifndef UCB_NKB
50: char b[NBUFS][512];
51: #else
52: char b[NBUFS][BSIZE];
53: #endif
54: daddr_t blknos[NBUFS];
55:
56: #define NFILES 4
57: struct iob iob[NFILES];
58:
59: /*
60: * Set to which 64Kb segment the code is physically running in.
61: * Must be set by the user's main (or thereabouts).
62: */
63: int segflag;
Defined variables
b
defined in line
52;
never used
devsw
defined in line
44; used 4 times
iob
defined in line
57;
never used
Defined struct's
devsw
defined in line
37; used 4 times
iob
defined in line
10; used 10 times
Defined macros
NBUFS
defined in line
46; used 3 times
READ
defined in line
31; used 1 times
WRITE
defined in line
32; used 1 times
Usage of this include