Home | History | Annotate | Download | only in x32
      1 /*
      2  * This is a replacement for x32 <asm/stat.h> which
      3  * appears to be wrong in older kernel headers.
      4  */
      5 
      6 #ifndef STRACE_ASM_STAT_H
      7 
      8 # define STRACE_ASM_STAT_H
      9 
     10 # include "kernel_types.h"
     11 
     12 struct stat {
     13 	kernel_ulong_t	st_dev;
     14 	kernel_ulong_t	st_ino;
     15 	kernel_ulong_t	st_nlink;
     16 	unsigned int	st_mode;
     17 	unsigned int	st_uid;
     18 	unsigned int	st_gid;
     19 	unsigned int	pad0__;
     20 	kernel_ulong_t	st_rdev;
     21 	kernel_long_t	st_size;
     22 	kernel_long_t	st_blksize;
     23 	kernel_long_t	st_blocks;
     24 	kernel_ulong_t	st_atime;
     25 	kernel_ulong_t	st_atime_nsec;
     26 	kernel_ulong_t	st_mtime;
     27 	kernel_ulong_t	st_mtime_nsec;
     28 	kernel_ulong_t	st_ctime;
     29 	kernel_ulong_t	st_ctime_nsec;
     30 	kernel_long_t	pad1__[3];
     31 };
     32 
     33 struct __old_kernel_stat {
     34 	unsigned short st_dev;
     35 	unsigned short st_ino;
     36 	unsigned short st_mode;
     37 	unsigned short st_nlink;
     38 	unsigned short st_uid;
     39 	unsigned short st_gid;
     40 	unsigned short st_rdev;
     41 	unsigned int  st_size;
     42 	unsigned int  st_atime;
     43 	unsigned int  st_mtime;
     44 	unsigned int  st_ctime;
     45 };
     46 
     47 #endif /* !STRACE_ASM_STAT_H */
     48