Rev 2404 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2435 | jelen | 1 | /*/* |
2404 | konopa | 2 | * Copyright (c) 1987,1997, Prentice Hall |
3 | * All rights reserved. |
||
4 | * |
||
5 | * Redistribution and use of the MINIX operating system in source and |
||
6 | * binary forms, with or without modification, are permitted provided |
||
7 | * that the following conditions are met: |
||
8 | |||
9 | * - Redistributions of source code must retain the above copyright |
||
10 | * notice, this list of conditions and the following disclaimer. |
||
11 | |||
12 | * - Redistributions in binary form must reproduce the above |
||
13 | * copyright notice, this list of conditions and the following |
||
14 | * disclaimer in the documentation and/or other materials provided |
||
15 | * with the distribution. |
||
16 | |||
17 | * - Neither the name of Prentice Hall nor the names of the software |
||
18 | * authors or contributors may be used to endorse or promote |
||
19 | * products derived from this software without specific prior |
||
20 | * written permission. |
||
21 | |||
22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS, AUTHORS, AND |
||
23 | * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
||
24 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||
25 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||
26 | * IN NO EVENT SHALL PRENTICE HALL OR ANY AUTHORS OR CONTRIBUTORS BE |
||
27 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
||
28 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
||
29 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
||
30 | * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
||
31 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
||
32 | * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
||
33 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
34 | */ |
||
2435 | jelen | 35 | |
36 | /** @addtogroup FileSystemImpl |
||
37 | * @{ |
||
38 | */ |
||
2404 | konopa | 39 | |
2435 | jelen | 40 | /** |
41 | * @file stat.h |
||
42 | * @brief Definition of a struct that is used in the stat and fstat calls. |
||
2381 | konopa | 43 | */ |
44 | |||
45 | |||
46 | #ifndef _STAT_H |
||
47 | #define _STAT_H |
||
48 | |||
2435 | jelen | 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 | */ |
||
2381 | konopa | 52 | typedef struct { |
2435 | jelen | 53 | ino_t st_ino; /**< i-node number */ |
54 | mode_t st_mode; /**< file mode, protection bits, etc. */ |
||
55 | short int st_nlink; /**< # links; TEMPORARY HACK: should be nlink_t*/ |
||
56 | offset_t st_size; /**< file size */ |
||
2381 | konopa | 57 | } stat_t; |
58 | |||
59 | #endif /* _STAT_H */ |
||
2435 | jelen | 60 | |
61 | /** |
||
62 | * } |
||
63 | */ |
||
64 |