1 /* Begin Include file stat.h */
 2 
 3 /* @(#)stat.h       6.1 */
 4 /*
 5  * Structure of the result of stat
 6  */
 7 
 8 struct    stat
 9 {
10           dev_t     st_dev;
11           ino_t     st_ino;
12           ushort    st_mode;
13           short     st_nlink;
14           ushort    st_uid;
15           ushort    st_gid;
16           dev_t     st_rdev;
17           off_t     st_size;
18           time_t    st_atime;
19           time_t    st_mtime;
20           time_t    st_ctime;
21 };
22 
23 #define   S_IFMT    0170000             /* type of file */
24 #define   S_IFDIR   0040000             /* directory */
25 #define   S_IFCHR   0020000             /* character special */
26 #define   S_IFBLK   0060000             /* block special */
27 #define   S_IFREG   0100000             /* regular */
28 #define   S_IFIFO   0010000             /* fifo */
29 #define   S_ISUID   04000               /* set user id on execution */
30 #define   S_ISGID   02000               /* set group id on execution */
31 #define   S_ISVTX   01000               /* save swapped text even after use */
32 #define   S_IREAD   00400               /* read permission, owner */
33 #define   S_IWRITE  00200               /* write permission, owner */
34 #define   S_IEXEC   00100               /* execute/search permission, owner */
35 
36 /* End Include file stat.h */