blob: c11fdfd4f6761911762e5234787145bd53222b79 [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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
Christopher Ferris38062f92014-07-09 15:33:25 -070021#include <asm/posix_types.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080022#define STAT_HAVE_NSEC 1
Elliott Hughesabd62612013-11-08 11:45:48 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#ifdef __i386__
Elliott Hughesabd62612013-11-08 11:45:48 -080025struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080026 unsigned long st_dev;
27 unsigned long st_ino;
Elliott Hughesabd62612013-11-08 11:45:48 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 unsigned short st_mode;
30 unsigned short st_nlink;
31 unsigned short st_uid;
32 unsigned short st_gid;
Elliott Hughesabd62612013-11-08 11:45:48 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned long st_rdev;
35 unsigned long st_size;
36 unsigned long st_blksize;
37 unsigned long st_blocks;
Elliott Hughesabd62612013-11-08 11:45:48 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned long st_atime;
40 unsigned long st_atime_nsec;
41 unsigned long st_mtime;
42 unsigned long st_mtime_nsec;
Elliott Hughesabd62612013-11-08 11:45:48 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned long st_ctime;
45 unsigned long st_ctime_nsec;
46 unsigned long __unused4;
47 unsigned long __unused5;
Elliott Hughesabd62612013-11-08 11:45:48 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070049};
Tao Baod7db5942015-01-28 10:07:51 -080050#define INIT_STRUCT_STAT_PADDING(st) do { st.__unused4 = 0; st.__unused5 = 0; \
51} while(0)
Elliott Hughesabd62612013-11-08 11:45:48 -080052#define STAT64_HAS_BROKEN_ST_INO 1
53struct stat64 {
Elliott Hughesabd62612013-11-08 11:45:48 -080054/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080055 unsigned long long st_dev;
56 unsigned char __pad0[4];
57 unsigned long __st_ino;
58 unsigned int st_mode;
Elliott Hughesabd62612013-11-08 11:45:48 -080059/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080060 unsigned int st_nlink;
61 unsigned long st_uid;
62 unsigned long st_gid;
63 unsigned long long st_rdev;
Elliott Hughesabd62612013-11-08 11:45:48 -080064/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080065 unsigned char __pad3[4];
66 long long st_size;
67 unsigned long st_blksize;
68 unsigned long long st_blocks;
Elliott Hughesabd62612013-11-08 11:45:48 -080069/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080070 unsigned long st_atime;
71 unsigned long st_atime_nsec;
72 unsigned long st_mtime;
73 unsigned int st_mtime_nsec;
Elliott Hughesabd62612013-11-08 11:45:48 -080074/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080075 unsigned long st_ctime;
76 unsigned long st_ctime_nsec;
77 unsigned long long st_ino;
Elliott Hughesabd62612013-11-08 11:45:48 -080078};
Elliott Hughesabd62612013-11-08 11:45:48 -080079/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080080#define INIT_STRUCT_STAT64_PADDING(st) do { memset(& st.__pad0, 0, sizeof(st.__pad0)); memset(& st.__pad3, 0, sizeof(st.__pad3)); \
81} while(0)
Elliott Hughesabd62612013-11-08 11:45:48 -080082#else
83struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080084 __kernel_ulong_t st_dev;
Elliott Hughesabd62612013-11-08 11:45:48 -080085/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080086 __kernel_ulong_t st_ino;
87 __kernel_ulong_t st_nlink;
88 unsigned int st_mode;
89 unsigned int st_uid;
Christopher Ferris38062f92014-07-09 15:33:25 -070090/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080091 unsigned int st_gid;
92 unsigned int __pad0;
93 __kernel_ulong_t st_rdev;
94 __kernel_long_t st_size;
Elliott Hughesabd62612013-11-08 11:45:48 -080095/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080096 __kernel_long_t st_blksize;
97 __kernel_long_t st_blocks;
98 __kernel_ulong_t st_atime;
99 __kernel_ulong_t st_atime_nsec;
Elliott Hughesabd62612013-11-08 11:45:48 -0800100/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800101 __kernel_ulong_t st_mtime;
102 __kernel_ulong_t st_mtime_nsec;
103 __kernel_ulong_t st_ctime;
104 __kernel_ulong_t st_ctime_nsec;
Elliott Hughesabd62612013-11-08 11:45:48 -0800105/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800106 __kernel_long_t __linux_unused[3];
Elliott Hughesabd62612013-11-08 11:45:48 -0800107};
Tao Baod7db5942015-01-28 10:07:51 -0800108#define INIT_STRUCT_STAT_PADDING(st) do { st.__pad0 = 0; st.__linux_unused[0] = 0; st.__linux_unused[1] = 0; st.__linux_unused[2] = 0; \
109} while(0)
Elliott Hughesabd62612013-11-08 11:45:48 -0800110#endif
Elliott Hughesabd62612013-11-08 11:45:48 -0800111/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700112struct __old_kernel_stat {
Tao Baod7db5942015-01-28 10:07:51 -0800113 unsigned short st_dev;
114 unsigned short st_ino;
115 unsigned short st_mode;
Elliott Hughesabd62612013-11-08 11:45:48 -0800116/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800117 unsigned short st_nlink;
118 unsigned short st_uid;
119 unsigned short st_gid;
120 unsigned short st_rdev;
Elliott Hughesabd62612013-11-08 11:45:48 -0800121/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700122#ifdef __i386__
Tao Baod7db5942015-01-28 10:07:51 -0800123 unsigned long st_size;
124 unsigned long st_atime;
125 unsigned long st_mtime;
Elliott Hughesabd62612013-11-08 11:45:48 -0800126/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800127 unsigned long st_ctime;
Elliott Hughesabd62612013-11-08 11:45:48 -0800128#else
Tao Baod7db5942015-01-28 10:07:51 -0800129 unsigned int st_size;
130 unsigned int st_atime;
Elliott Hughesabd62612013-11-08 11:45:48 -0800131/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800132 unsigned int st_mtime;
133 unsigned int st_ctime;
Elliott Hughesabd62612013-11-08 11:45:48 -0800134#endif
135};
Elliott Hughesabd62612013-11-08 11:45:48 -0800136/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700137#endif