Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2381 | konopa | 1 | /* Definition of a struct that is used in the stat and fstat calls. |
2 | * The information in this struct comes from the i-node of some file. |
||
3 | * These calls are the only approved way to inspect i-nodes. |
||
4 | */ |
||
5 | |||
6 | |||
7 | #ifndef _STAT_H |
||
8 | #define _STAT_H |
||
9 | |||
10 | typedef struct { |
||
11 | ino_t st_ino; /* i-node number */ |
||
12 | mode_t st_mode; /* file mode, protection bits, etc. */ |
||
13 | short int st_nlink; /* # links; TEMPORARY HACK: should be nlink_t*/ |
||
14 | offset_t st_size; /* file size */ |
||
15 | } stat_t; |
||
16 | |||
17 | #endif /* _STAT_H */ |