• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ****************************************************************************
11  ****************************************************************************/
12 #ifndef _ASMARM_STAT_H
13 #define _ASMARM_STAT_H
14 
15 struct __old_kernel_stat {
16  unsigned short st_dev;
17  unsigned short st_ino;
18  unsigned short st_mode;
19  unsigned short st_nlink;
20  unsigned short st_uid;
21  unsigned short st_gid;
22  unsigned short st_rdev;
23  unsigned long st_size;
24  unsigned long st_atime;
25  unsigned long st_mtime;
26  unsigned long st_ctime;
27 };
28 
29 #define STAT_HAVE_NSEC
30 
31 struct stat {
32 #ifdef __ARMEB__
33  unsigned short st_dev;
34  unsigned short __pad1;
35 #else
36  unsigned long st_dev;
37 #endif
38  unsigned long st_ino;
39  unsigned short st_mode;
40  unsigned short st_nlink;
41  unsigned short st_uid;
42  unsigned short st_gid;
43 #ifdef __ARMEB__
44  unsigned short st_rdev;
45  unsigned short __pad2;
46 #else
47  unsigned long st_rdev;
48 #endif
49  unsigned long st_size;
50  unsigned long st_blksize;
51  unsigned long st_blocks;
52  unsigned long st_atime;
53  unsigned long st_atime_nsec;
54  unsigned long st_mtime;
55  unsigned long st_mtime_nsec;
56  unsigned long st_ctime;
57  unsigned long st_ctime_nsec;
58  unsigned long __unused4;
59  unsigned long __unused5;
60 };
61 
62 struct stat64 {
63  unsigned long long st_dev;
64  unsigned char __pad0[4];
65 
66 #define STAT64_HAS_BROKEN_ST_INO 1
67  unsigned long __st_ino;
68  unsigned int st_mode;
69  unsigned int st_nlink;
70 
71  unsigned long st_uid;
72  unsigned long st_gid;
73 
74  unsigned long long st_rdev;
75  unsigned char __pad3[4];
76 
77  long long st_size;
78  unsigned long st_blksize;
79  unsigned long long st_blocks;
80 
81  unsigned long st_atime;
82  unsigned long st_atime_nsec;
83 
84  unsigned long st_mtime;
85  unsigned long st_mtime_nsec;
86 
87  unsigned long st_ctime;
88  unsigned long st_ctime_nsec;
89 
90  unsigned long long st_ino;
91 };
92 
93 #endif
94