|
|
1.1 root 1: /* saio.h 4.4 3/15/81 */
2:
3: /*
4: * header file for standalone package
5: */
6:
7: /*
8: * io block: includes an
9: * inode, cells for the use of seek, etc,
10: * and a buffer.
11: */
12: struct iob {
13: char i_flgs;
14: struct inode i_ino;
15: int i_unit;
16: daddr_t i_boff;
17: daddr_t i_cyloff;
18: off_t i_offset;
19: daddr_t i_bn;
20: char *i_ma;
21: int i_cc;
22: char i_buf[BSIZE];
23: };
24:
25: #define F_READ 01
26: #define F_WRITE 02
27: #define F_ALLOC 04
28: #define F_FILE 010
29:
30: /*
31: * dev switch
32: */
33: struct devsw {
34: char *dv_name;
35: int (*dv_strategy)();
36: int (*dv_open)();
37: int (*dv_close)();
38: };
39:
40: struct devsw devsw[];
41:
42: /*
43: * request codes. Must be the same a F_XXX above
44: */
45: #define READ 1
46: #define WRITE 2
47:
48: #define NBUFS 4
49:
50: char b[NBUFS][BSIZE];
51: daddr_t blknos[NBUFS];
52:
53: #define NFILES 4
54: struct iob iob[NFILES];
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.