1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
5 * Derived from "include/asm-i386/stat.h"
12 struct __old_kernel_stat
{
13 unsigned short st_dev
;
14 unsigned short st_ino
;
15 unsigned short st_mode
;
16 unsigned short st_nlink
;
17 unsigned short st_uid
;
18 unsigned short st_gid
;
19 unsigned short st_rdev
;
20 unsigned long st_size
;
21 unsigned long st_atime
;
22 unsigned long st_mtime
;
23 unsigned long st_ctime
;
27 unsigned short st_dev
;
28 unsigned short __pad1
;
30 unsigned short st_mode
;
31 unsigned short st_nlink
;
32 unsigned short st_uid
;
33 unsigned short st_gid
;
34 unsigned short st_rdev
;
35 unsigned short __pad2
;
36 unsigned long st_size
;
37 unsigned long st_blksize
;
38 unsigned long st_blocks
;
39 unsigned long st_atime
;
40 unsigned long st_atime_nsec
;
41 unsigned long st_mtime
;
42 unsigned long st_mtime_nsec
;
43 unsigned long st_ctime
;
44 unsigned long st_ctime_nsec
;
45 unsigned long __unused4
;
46 unsigned long __unused5
;
49 /* This matches struct stat64 in glibc2.1, hence the absolutely
50 * insane amounts of padding around dev_t's.
53 unsigned long long st_dev
;
55 #define STAT64_HAS_BROKEN_ST_INO 1
56 unsigned long __st_ino
;
58 unsigned int st_nlink
;
61 unsigned long long st_rdev
;
64 unsigned long st_blksize
;
65 unsigned char __pad4
[4];
66 unsigned long __pad5
; /* future possible st_blocks high bits */
67 unsigned long st_blocks
; /* Number 512-byte blocks allocated. */
68 unsigned long st_atime
;
69 unsigned long st_atime_nsec
;
70 unsigned long st_mtime
;
71 unsigned long st_mtime_nsec
;
72 unsigned long st_ctime
;
73 unsigned long st_ctime_nsec
; /* will be high 32 bits of ctime someday */
74 unsigned long long st_ino
;
82 unsigned long st_nlink
;
87 unsigned long st_rdev
;
88 unsigned long st_size
;
89 unsigned long st_atime
;
90 unsigned long st_atime_nsec
;
91 unsigned long st_mtime
;
92 unsigned long st_mtime_nsec
;
93 unsigned long st_ctime
;
94 unsigned long st_ctime_nsec
;
95 unsigned long st_blksize
;
97 unsigned long __unused
[3];
100 #endif /* __s390x__ */
102 #define STAT_HAVE_NSEC 1