cleanup
[linux-2.4.git] / include / asm-ppc64 / stat.h
1 #ifndef _PPC64_STAT_H
2 #define _PPC64_STAT_H
3
4 /*
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version
8  * 2 of the License, or (at your option) any later version.
9  */
10
11 #include <linux/types.h>
12
13 struct __old_kernel_stat {
14         unsigned short st_dev;
15         unsigned short st_ino;
16         unsigned short st_mode;
17         unsigned short st_nlink;
18         unsigned short st_uid;
19         unsigned short st_gid;
20         unsigned short st_rdev;
21         unsigned long  st_size;
22         unsigned long  st_atime;
23         unsigned long  st_mtime;
24         unsigned long  st_ctime;
25 };
26
27 struct stat {
28         dev_t           st_dev;
29         ino_t           st_ino;
30         nlink_t         st_nlink;
31         mode_t          st_mode;
32         uid_t           st_uid;
33         gid_t           st_gid;
34         dev_t           st_rdev;
35         off_t           st_size;
36         unsigned long   st_blksize;
37         unsigned long   st_blocks;
38         unsigned long   st_atime;
39         unsigned long   __unused1;
40         unsigned long   st_mtime;
41         unsigned long   __unused2;
42         unsigned long   st_ctime;
43         unsigned long   __unused3;
44         unsigned long   __unused4;
45         unsigned long   __unused5;
46         unsigned long   __unused6;
47 };
48
49 /* This matches struct stat64 in glibc2.1. */
50 struct stat64 {
51         unsigned long st_dev;           /* Device.  */
52         unsigned long st_ino;           /* File serial number.  */
53         unsigned int st_mode;           /* File mode.  */
54         unsigned int st_nlink;          /* Link count.  */
55         unsigned int st_uid;            /* User ID of the file's owner.  */
56         unsigned int st_gid;            /* Group ID of the file's group. */
57         unsigned long st_rdev;          /* Device number, if device.  */
58         unsigned short __pad2;
59         long st_size;                   /* Size of file, in bytes.  */
60         int  st_blksize;                /* Optimal block size for I/O.  */
61
62         long st_blocks;                 /* Number 512-byte blocks allocated. */
63         int   st_atime;                 /* Time of last access.  */
64         unsigned int  __unused1;
65         int   st_mtime;                 /* Time of last modification.  */
66         unsigned int  __unused2;
67         int   st_ctime;                 /* Time of last status change.  */
68         unsigned int   __unused3;
69         unsigned int   __unused4;
70         unsigned int   __unused5;
71 };
72 #endif