]> diplodocus.org Git - nmh/blob - docs/historical/SRI-NOSC/stat.h
Added start_test/finish_test to a bunch of tests.
[nmh] / docs / historical / SRI-NOSC / stat.h
1 #
2 /*
3 * Inode structure as returned by
4 * system call stat.
5 */
6 struct inode
7 {
8 int i_dev;
9 int i_number;
10 int i_mode;
11 char i_nlink;
12 char i_uid;
13 char i_gid;
14 char i_size0;
15 char *i_size1;
16 int i_addr[8];
17 long i_atime;
18 long i_mtime;
19 };
20 /* advisable to use this define to generate owner as 16-bit num */
21 #define IOWNER(i_n_buf) (((i_n_buf).i_uid<<8)|(i_n_buf).i_gid&0377)
22 /* modes */
23 #define IALLOC 0100000
24 #define IFMT 060000
25 #define IFDIR 040000
26 #define IFCHR 020000
27 #define IFBLK 060000
28 #define ILARG 010000
29 #define ISUID 04000
30 #define ISGID 02000
31 #define ISVTX 01000
32 #define IREAD 0400
33 #define IWRITE 0200
34 #define IEXEC 0100
35
36 struct { char d_minor, d_major; };