• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef STRACE_X86_64_ASM_STAT_H
2 #define STRACE_X86_64_ASM_STAT_H
3 
4 # if defined __x86_64__ && defined __ILP32__
5 #  define stat redirect_kernel_stat
6 # endif
7 
8 # include "linux/asm_stat.h"
9 
10 # if defined __x86_64__ && defined __ILP32__
11 #  undef stat
12 /*
13  * This is a replacement for x32 <asm/stat.h> which
14  * appears to be wrong in older kernel headers.
15  */
16 struct stat {
17 	kernel_ulong_t	st_dev;
18 	kernel_ulong_t	st_ino;
19 	kernel_ulong_t	st_nlink;
20 	unsigned int	st_mode;
21 	unsigned int	st_uid;
22 	unsigned int	st_gid;
23 	unsigned int	pad0__;
24 	kernel_ulong_t	st_rdev;
25 	kernel_long_t	st_size;
26 	kernel_long_t	st_blksize;
27 	kernel_long_t	st_blocks;
28 	kernel_ulong_t	st_atime;
29 	kernel_ulong_t	st_atime_nsec;
30 	kernel_ulong_t	st_mtime;
31 	kernel_ulong_t	st_mtime_nsec;
32 	kernel_ulong_t	st_ctime;
33 	kernel_ulong_t	st_ctime_nsec;
34 	kernel_long_t	pad1__[3];
35 };
36 
37 # endif /* __x86_64__ && __ILP32__ */
38 
39 #endif /* !STRACE_X86_64_ASM_STAT_H */
40