1 #ifndef _BITS_STAT_STRUCT_H
2 #define _BITS_STAT_STRUCT_H
3 
4 /* This file provides whatever this particular arch's kernel thinks
5  * struct kernel_stat should look like...  It turns out each arch has a
6  * different opinion on the subject... */
7 
8 struct kernel_stat {
9     unsigned short	st_dev;
10     unsigned long	st_ino;
11     unsigned short	st_mode;
12     short		st_nlink;
13     unsigned short	st_uid;
14     unsigned short	st_gid;
15     unsigned short	st_rdev;
16     long		st_size;
17     struct timespec	st_atim;
18     struct timespec	st_mtim;
19     struct timespec	st_ctim;
20     long		st_blksize;
21     long		st_blocks;
22     unsigned long	__unused4[2];
23 };
24 
25 struct kernel_stat64 {
26 	unsigned long long	st_dev;
27 	unsigned long long	st_ino;
28 	unsigned int	st_mode;
29 	unsigned int	st_nlink;
30 	unsigned int	st_uid;
31 	unsigned int	st_gid;
32 	unsigned long long	st_rdev;
33 	unsigned char	__pad3[8];
34 	long long	st_size;
35 	unsigned int	st_blksize;
36 	unsigned char	__pad4[8];
37 	unsigned int	st_blocks;
38 	struct timespec	st_atim;
39 	struct timespec	st_mtim;
40 	struct timespec	st_ctim;
41 	unsigned int	__unused4;
42 	unsigned int	__unused5;
43 };
44 
45 #endif	/*  _BITS_STAT_STRUCT_H */
46