5 /* As tempting as it is to define XSTAT_IS_XSTAT64 for n64, the
6 userland data structures are not identical, because of different
8 /* Definition of `struct stat' used in the kernel. */
9 #if _MIPS_SIM != _ABIO32
13 unsigned int __pad1
[3];
14 unsigned long long st_ino
;
16 unsigned int st_nlink
;
20 unsigned int __pad2
[3];
22 unsigned int st_atime_sec
;
23 unsigned int st_atime_nsec
;
24 unsigned int st_mtime_sec
;
25 unsigned int st_mtime_nsec
;
26 unsigned int st_ctime_sec
;
27 unsigned int st_ctime_nsec
;
28 unsigned int st_blksize
;
30 unsigned long long st_blocks
;
35 unsigned long int st_dev
;
36 long int __pad1
[3]; /* Reserved for network id */
37 unsigned long int st_ino
;
38 unsigned long int st_mode
;
39 unsigned long int st_nlink
;
42 unsigned long int st_rdev
;
46 unsigned int st_atime_sec
;
47 unsigned int st_atime_nsec
;
48 unsigned int st_mtime_sec
;
49 unsigned int st_mtime_nsec
;
50 unsigned int st_ctime_sec
;
51 unsigned int st_ctime_nsec
;
54 char st_fstype
[16]; /* Filesystem type name, unsupported */
56 /* Linux specific fields */
57 unsigned int st_flags
;
62 #define STAT_IS_KERNEL_STAT 0
63 #define STAT64_IS_KERNEL_STAT64 0
64 #define XSTAT_IS_XSTAT64 0
65 #if _MIPS_SIM == _ABI64
66 # define STATFS_IS_STATFS64 1
68 # define STATFS_IS_STATFS64 0
70 /* MIPS64 has unsigned 32 bit timestamps fields, so use statx as well. */
71 #if _MIPS_SIM == _ABI64
72 # define STAT_HAS_TIME32