Commit | Line | Data |
---|---|---|
506a359f KT |
1 | struct inode { |
2 | char i_flag; | |
3 | char i_count; | |
4 | int i_dev; | |
5 | int i_number; | |
6 | int i_mode; | |
7 | char i_nlink; | |
8 | char i_uid; | |
9 | char i_gid; | |
10 | char i_size0; | |
11 | char *i_size1; | |
12 | int i_addr[8]; | |
13 | } inode[NINODE]; | |
14 | ||
15 | /* flags */ | |
16 | #define ILOCK 01 | |
17 | #define IUPD 02 | |
18 | #define IACC 04 | |
19 | #define IMOUNT 010 | |
20 | #define IWANT 020 | |
21 | #define ITEXT 040 | |
22 | ||
23 | /* modes */ | |
24 | #define IALLOC 0100000 | |
25 | #define IFMT 060000 | |
26 | #define IFDIR 040000 | |
27 | #define IFCHR 020000 | |
28 | #define IFBLK 060000 | |
29 | #define ILARG 010000 | |
30 | #define ISUID 04000 | |
31 | #define ISGID 02000 | |
32 | #define IREAD 0400 | |
33 | #define IWRITE 0200 | |
34 | #define IEXEC 0100 |