Rev 2404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2404 | Rev 2435 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /*/* |
2 | * Copyright (c) 1987,1997, Prentice Hall |
2 | * Copyright (c) 1987,1997, Prentice Hall |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use of the MINIX operating system in source and |
5 | * Redistribution and use of the MINIX operating system in source and |
6 | * binary forms, with or without modification, are permitted provided |
6 | * binary forms, with or without modification, are permitted provided |
Line 30... | Line 30... | ||
30 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
30 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
31 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
31 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
32 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
32 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
33 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
34 | */ |
34 | */ |
35 | 35 | ||
- | 36 | /** @addtogroup FileSystemImpl |
|
- | 37 | * @{ |
|
- | 38 | */ |
|
36 | 39 | ||
- | 40 | /** |
|
- | 41 | * @file stat.h |
|
37 | /* Definition of a struct that is used in the stat and fstat calls. |
42 | * @brief Definition of a struct that is used in the stat and fstat calls. |
38 | * The information in this struct comes from the i-node of some file. |
- | |
39 | * These calls are the only approved way to inspect i-nodes. |
- | |
40 | */ |
43 | */ |
41 | 44 | ||
42 | 45 | ||
43 | #ifndef _STAT_H |
46 | #ifndef _STAT_H |
44 | #define _STAT_H |
47 | #define _STAT_H |
45 | 48 | ||
- | 49 | /** The information in this struct comes from the i-node of some file. |
|
- | 50 | * These calls are the only approved way to inspect i-nodes. |
|
- | 51 | */ |
|
46 | typedef struct { |
52 | typedef struct { |
47 | ino_t st_ino; /* i-node number */ |
53 | ino_t st_ino; /**< i-node number */ |
48 | mode_t st_mode; /* file mode, protection bits, etc. */ |
54 | mode_t st_mode; /**< file mode, protection bits, etc. */ |
49 | short int st_nlink; /* # links; TEMPORARY HACK: should be nlink_t*/ |
55 | short int st_nlink; /**< # links; TEMPORARY HACK: should be nlink_t*/ |
50 | offset_t st_size; /* file size */ |
56 | offset_t st_size; /**< file size */ |
51 | } stat_t; |
57 | } stat_t; |
52 | 58 | ||
53 | #endif /* _STAT_H */ |
59 | #endif /* _STAT_H */ |
- | 60 | ||
- | 61 | /** |
|
- | 62 | * } |
|
- | 63 | */ |
|
- | 64 |