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 _ASMARM_STAT_H
20 #define _ASMARM_STAT_H
21 struct __old_kernel_stat {
22   unsigned short st_dev;
23   unsigned short st_ino;
24   unsigned short st_mode;
25   unsigned short st_nlink;
26   unsigned short st_uid;
27   unsigned short st_gid;
28   unsigned short st_rdev;
29   unsigned long st_size;
30   unsigned long st_atime;
31   unsigned long st_mtime;
32   unsigned long st_ctime;
33 };
34 #define STAT_HAVE_NSEC
35 struct stat {
36   unsigned long st_dev;
37   unsigned long st_ino;
38   unsigned short st_mode;
39   unsigned short st_nlink;
40   unsigned short st_uid;
41   unsigned short st_gid;
42   unsigned long st_rdev;
43   unsigned long st_size;
44   unsigned long st_blksize;
45   unsigned long st_blocks;
46   unsigned long st_atime;
47   unsigned long st_atime_nsec;
48   unsigned long st_mtime;
49   unsigned long st_mtime_nsec;
50   unsigned long st_ctime;
51   unsigned long st_ctime_nsec;
52   unsigned long __unused4;
53   unsigned long __unused5;
54 };
55 struct stat64 {
56   unsigned long long st_dev;
57   unsigned char __pad0[4];
58 #define STAT64_HAS_BROKEN_ST_INO 1
59   unsigned long __st_ino;
60   unsigned int st_mode;
61   unsigned int st_nlink;
62   unsigned long st_uid;
63   unsigned long st_gid;
64   unsigned long long st_rdev;
65   unsigned char __pad3[4];
66   long long st_size;
67   unsigned long st_blksize;
68   unsigned long long st_blocks;
69   unsigned long st_atime;
70   unsigned long st_atime_nsec;
71   unsigned long st_mtime;
72   unsigned long st_mtime_nsec;
73   unsigned long st_ctime;
74   unsigned long st_ctime_nsec;
75   unsigned long long st_ino;
76 };
77 #endif
78