Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * One file structure is allocated | |
3 | * for each open/creat/pipe call. | |
4 | * Main use is to hold the read/write | |
5 | * pointer associated with each open | |
6 | * file. | |
7 | */ | |
8 | struct file | |
9 | { | |
10 | char f_flag; | |
11 | char f_count; /* reference count */ | |
12 | int f_inode; /* pointer to inode structure */ | |
13 | char *f_offset[2]; /* read/write character pointer */ | |
14 | } file[NFILE]; | |
15 | ||
16 | /* flags */ | |
17 | #define FREAD 01 | |
18 | #define FWRITE 02 | |
19 | #define FPIPE 04 |