2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1995, 1999, 2000 Ralf Baechle
7 * Copyright (C) 2000 Silicon Graphics, Inc.
12 #include <linux/types.h>
14 #include <asm/sgidefs.h>
16 #if (_MIPS_SIM == _MIPS_SIM_ABI32) || (_MIPS_SIM == _MIPS_SIM_NABI32)
20 long st_pad1
[3]; /* Reserved for network id */
31 * Actually this should be timestruc_t st_atime, st_mtime and st_ctime
32 * but we don't have it under Linux.
46 * This matches struct stat64 in glibc2.1, hence the absolutely insane
47 * amounts of padding around dev_t's. The memory layout is the same as of
48 * struct stat of the 64-bit kernel.
53 unsigned long st_pad0
[3]; /* Reserved for st_dev expansion */
55 unsigned long long st_ino
;
63 unsigned long st_rdev
;
64 unsigned long st_pad1
[3]; /* Reserved for st_rdev expansion */
69 * Actually this should be timestruc_t st_atime, st_mtime and st_ctime
70 * but we don't have it under Linux.
73 unsigned long st_atime_nsec
; /* Reserved for st_atime expansion */
76 unsigned long st_mtime_nsec
; /* Reserved for st_mtime expansion */
79 unsigned long st_ctime_nsec
; /* Reserved for st_ctime expansion */
81 unsigned long st_blksize
;
82 unsigned long st_pad2
;
87 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
89 #if _MIPS_SIM == _MIPS_SIM_ABI64
91 /* The memory layout is the same as of struct stat64 of the 32-bit kernel. */
94 unsigned int st_pad0
[3]; /* Reserved for st_dev expansion */
104 unsigned int st_rdev
;
105 unsigned int st_pad1
[3]; /* Reserved for st_rdev expansion */
110 * Actually this should be timestruc_t st_atime, st_mtime and st_ctime
111 * but we don't have it under Linux.
113 unsigned int st_atime
;
114 unsigned int st_atime_nsec
;
116 unsigned int st_mtime
;
117 unsigned int st_mtime_nsec
;
119 unsigned int st_ctime
;
120 unsigned int st_ctime_nsec
;
122 unsigned int st_blksize
;
123 unsigned int st_pad2
;
125 unsigned long st_blocks
;
128 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
130 #define STAT_HAVE_NSEC 1
132 #endif /* _ASM_STAT_H */