Commit | Line | Data |
---|---|---|
0edd06b4 KT |
1 | /* |
2 | * Inode structure as it appears on | |
3 | * the disk. Not used by the system, | |
4 | * but by things like check, df, dump. | |
5 | */ | |
6 | struct inode | |
7 | { | |
8 | int i_mode; | |
9 | char i_nlink; | |
10 | char i_uid; | |
11 | char i_gid; | |
12 | char i_size0; | |
13 | char *i_size1; | |
14 | int i_addr[8]; | |
15 | int i_atime[2]; | |
16 | int i_mtime[2]; | |
17 | }; | |
18 | ||
19 | /* modes */ | |
20 | #define IALLOC 0100000 | |
21 | #define IFMT 060000 | |
22 | #define IFDIR 040000 | |
23 | #define IFCHR 020000 | |
24 | #define IFBLK 060000 | |
25 | #define ILARG 010000 | |
26 | #define ISUID 04000 | |
27 | #define ISGID 02000 | |
28 | #define ISVTX 01000 | |
29 | #define IREAD 0400 | |
30 | #define IWRITE 0200 | |
31 | #define IEXEC 0100 |