stat.h revision 94a85f663694e1869acb1c2e8a3c374a6fa3ab86
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 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_X86_STAT_H
20#define _ASM_X86_STAT_H
21#define STAT_HAVE_NSEC 1
22#ifdef __i386__
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct stat {
25 unsigned long st_dev;
26 unsigned long st_ino;
27 unsigned short st_mode;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 unsigned short st_nlink;
30 unsigned short st_uid;
31 unsigned short st_gid;
32 unsigned long st_rdev;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned long st_size;
35 unsigned long st_blksize;
36 unsigned long st_blocks;
37 unsigned long st_atime;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned long st_atime_nsec;
40 unsigned long st_mtime;
41 unsigned long st_mtime_nsec;
42 unsigned long st_ctime;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 unsigned long st_ctime_nsec;
45 unsigned long __unused4;
46 unsigned long __unused5;
47};
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define STAT64_HAS_BROKEN_ST_INO 1
50struct stat64 {
51 unsigned long long st_dev;
52 unsigned char __pad0[4];
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned long __st_ino;
55 unsigned int st_mode;
56 unsigned int st_nlink;
57 unsigned long st_uid;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned long st_gid;
60 unsigned long long st_rdev;
61 unsigned char __pad3[4];
62 long long st_size;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned long st_blksize;
65 unsigned long long st_blocks;
66 unsigned long st_atime;
67 unsigned long st_atime_nsec;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 unsigned long st_mtime;
70 unsigned int st_mtime_nsec;
71 unsigned long st_ctime;
72 unsigned long st_ctime_nsec;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned long long st_ino;
75};
76#else
77struct stat {
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 unsigned long st_dev;
80 unsigned long st_ino;
81 unsigned long st_nlink;
82 unsigned int st_mode;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 unsigned int st_uid;
85 unsigned int st_gid;
86 unsigned int __pad0;
87 unsigned long st_rdev;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 long st_size;
90 long st_blksize;
91 long st_blocks;
92 unsigned long st_atime;
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 unsigned long st_atime_nsec;
95 unsigned long st_mtime;
96 unsigned long st_mtime_nsec;
97 unsigned long st_ctime;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 unsigned long st_ctime_nsec;
100 long __unused[3];
101};
102#endif
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104struct __old_kernel_stat {
105 unsigned short st_dev;
106 unsigned short st_ino;
107 unsigned short st_mode;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 unsigned short st_nlink;
110 unsigned short st_uid;
111 unsigned short st_gid;
112 unsigned short st_rdev;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#ifdef __i386__
115 unsigned long st_size;
116 unsigned long st_atime;
117 unsigned long st_mtime;
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 unsigned long st_ctime;
120#else
121 unsigned int st_size;
122 unsigned int st_atime;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 unsigned int st_mtime;
125 unsigned int st_ctime;
126#endif
127};
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129#endif
130