chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / include / arch / sh / klibc / archstat.h
1 #ifndef _KLIBC_ARCHSTAT_H
2 #define _KLIBC_ARCHSTAT_H
3
4 #include <endian.h>
5
6 #define _STATBUF_ST_NSEC
7
8 /* This matches struct stat64 in glibc2.1, hence the absolutely
9  * insane amounts of padding around dev_t's.
10  */
11 struct stat64 {
12         unsigned long long      st_dev;
13         unsigned char   __pad0[4];
14
15         unsigned long   st_ino;
16         unsigned int    st_mode;
17         unsigned int    st_nlink;
18
19         unsigned long   st_uid;
20         unsigned long   st_gid;
21
22         unsigned long long      st_rdev;
23         unsigned char   __pad3[4];
24
25         long long       st_size;
26         unsigned long   st_blksize;
27
28 #if __BYTE_ORDER == __BIG_ENDIAN
29         unsigned long   __pad4;         /* Future possible st_blocks hi bits */
30         unsigned long   st_blocks;      /* Number 512-byte blocks allocated. */
31 #else /* Must be little */
32         unsigned long   st_blocks;      /* Number 512-byte blocks allocated. */
33         unsigned long   __pad4;         /* Future possible st_blocks hi bits */
34 #endif
35
36         struct timespec st_atim;
37         struct timespec st_mtim;
38         struct timespec st_ctim;
39
40         unsigned long   __unused1;
41         unsigned long   __unused2;
42 };
43
44 #endif
45