1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 /* Keep this a verbatim copy of i386 version; tweak CRIS-specific bits in
6 the kernel if necessary. */
8 struct __old_kernel_stat
{
10 unsigned short st_ino
;
11 unsigned short st_mode
;
12 unsigned short st_nlink
;
13 unsigned short st_uid
;
14 unsigned short st_gid
;
15 unsigned short st_rdev
;
16 unsigned long st_size
;
17 unsigned long st_atime
;
18 unsigned long st_mtime
;
19 unsigned long st_ctime
;
22 #define STAT_HAVE_NSEC 1
27 unsigned short st_mode
;
28 unsigned short st_nlink
;
29 unsigned short st_uid
;
30 unsigned short st_gid
;
31 unsigned long st_rdev
;
32 unsigned long st_size
;
33 unsigned long st_blksize
;
34 unsigned long st_blocks
;
35 unsigned long st_atime
;
36 unsigned long st_atime_nsec
;
37 unsigned long st_mtime
;
38 unsigned long st_mtime_nsec
;
39 unsigned long st_ctime
;
40 unsigned long st_ctime_nsec
;
41 unsigned long __unused4
;
42 unsigned long __unused5
;
45 /* This matches struct stat64 in glibc2.1, hence the absolutely
46 * insane amounts of padding around dev_t's.
49 unsigned long long st_dev
;
50 unsigned char __pad0
[4];
52 #define STAT64_HAS_BROKEN_ST_INO 1
53 unsigned long __st_ino
;
56 unsigned int st_nlink
;
61 unsigned long long st_rdev
;
62 unsigned char __pad3
[4];
65 unsigned long st_blksize
;
67 unsigned long st_blocks
; /* Number 512-byte blocks allocated. */
68 unsigned long __pad4
; /* future possible st_blocks high bits */
70 unsigned long st_atime
;
71 unsigned long st_atime_nsec
;
73 unsigned long st_mtime
;
74 unsigned long st_mtime_nsec
;
76 unsigned long st_ctime
;
77 unsigned long st_ctime_nsec
; /* will be high 32 bits of ctime someday */
79 unsigned long long st_ino
;