blob: 27ec243f75e2a6fb7b9c09faaf99da14d42f832e [file] [log] [blame]
Ben Chenga6b53f02013-11-06 15:51:05 -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 _ASMARM_STAT_H
20#define _ASMARM_STAT_H
21struct __old_kernel_stat {
Tao Baod7db5942015-01-28 10:07:51 -080022 unsigned short st_dev;
Tao Baod7db5942015-01-28 10:07:51 -080023 unsigned short st_ino;
24 unsigned short st_mode;
25 unsigned short st_nlink;
26 unsigned short st_uid;
Tao Baod7db5942015-01-28 10:07:51 -080027 unsigned short st_gid;
28 unsigned short st_rdev;
29 unsigned long st_size;
30 unsigned long st_atime;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned long st_mtime;
32 unsigned long st_ctime;
Ben Chenga6b53f02013-11-06 15:51:05 -080033};
34#define STAT_HAVE_NSEC
Ben Chenga6b53f02013-11-06 15:51:05 -080035struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080036 unsigned long st_dev;
37 unsigned long st_ino;
38 unsigned short st_mode;
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned short st_nlink;
40 unsigned short st_uid;
41 unsigned short st_gid;
42 unsigned long st_rdev;
Tao Baod7db5942015-01-28 10:07:51 -080043 unsigned long st_size;
44 unsigned long st_blksize;
45 unsigned long st_blocks;
46 unsigned long st_atime;
Tao Baod7db5942015-01-28 10:07:51 -080047 unsigned long st_atime_nsec;
48 unsigned long st_mtime;
49 unsigned long st_mtime_nsec;
50 unsigned long st_ctime;
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned long st_ctime_nsec;
52 unsigned long __unused4;
53 unsigned long __unused5;
Ben Chenga6b53f02013-11-06 15:51:05 -080054};
55struct stat64 {
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned long long st_dev;
57 unsigned char __pad0[4];
Ben Chenga6b53f02013-11-06 15:51:05 -080058#define STAT64_HAS_BROKEN_ST_INO 1
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned long __st_ino;
60 unsigned int st_mode;
61 unsigned int st_nlink;
62 unsigned long st_uid;
Tao Baod7db5942015-01-28 10:07:51 -080063 unsigned long st_gid;
64 unsigned long long st_rdev;
65 unsigned char __pad3[4];
66 long long st_size;
Tao Baod7db5942015-01-28 10:07:51 -080067 unsigned long st_blksize;
68 unsigned long long st_blocks;
69 unsigned long st_atime;
70 unsigned long st_atime_nsec;
Tao Baod7db5942015-01-28 10:07:51 -080071 unsigned long st_mtime;
72 unsigned long st_mtime_nsec;
73 unsigned long st_ctime;
74 unsigned long st_ctime_nsec;
Tao Baod7db5942015-01-28 10:07:51 -080075 unsigned long long st_ino;
Ben Chenga6b53f02013-11-06 15:51:05 -080076};
Ben Chenga6b53f02013-11-06 15:51:05 -080077#endif