chiark / gitweb /
[PATCH] oops forgot to add the new klibc/include directory
[elogind.git] / klibc / include / arch / mips / klibc / archstat.h
1 #ifndef _KLIBC_ARCHSTAT_H
2 #define _KLIBC_ARCHSTAT_H
3
4 #define _STATBUF_ST_NSEC
5
6 /*
7  * This matches struct stat64 in glibc2.1, hence the absolutely insane
8  * amounts of padding around dev_t's.  The memory layout is the same as of
9  * struct stat of the 64-bit kernel.
10  */
11
12 struct stat {
13         unsigned long   st_dev;
14         unsigned long   st_pad0[3];     /* Reserved for st_dev expansion  */
15
16         unsigned long long      st_ino;
17
18         mode_t          st_mode;
19         nlink_t         st_nlink;
20
21         uid_t           st_uid;
22         gid_t           st_gid;
23
24         unsigned long   st_rdev;
25         unsigned long   st_pad1[3];     /* Reserved for st_rdev expansion  */
26
27         long long       st_size;
28
29         struct timespec         st_atim;
30         struct timespec         st_mtim;
31         struct timespec         st_ctim;
32
33         unsigned long   st_blksize;
34         unsigned long   st_pad2;
35
36         long long       st_blocks;
37 };
38
39 #endif