blob: 9cc00f2b057402a5f8081f910b1065d561a21dbf [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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_GENERIC_STAT_H
20#define __ASM_GENERIC_STAT_H
21#include <asm/bitsperlong.h>
22#define STAT_HAVE_NSEC 1
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080024 unsigned long st_dev;
25 unsigned long st_ino;
26 unsigned int st_mode;
Tao Baod7db5942015-01-28 10:07:51 -080027 unsigned int st_nlink;
28 unsigned int st_uid;
29 unsigned int st_gid;
30 unsigned long st_rdev;
Tao Baod7db5942015-01-28 10:07:51 -080031 unsigned long __pad1;
32 long st_size;
33 int st_blksize;
34 int __pad2;
Tao Baod7db5942015-01-28 10:07:51 -080035 long st_blocks;
36 long st_atime;
37 unsigned long st_atime_nsec;
38 long st_mtime;
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned long st_mtime_nsec;
40 long st_ctime;
41 unsigned long st_ctime_nsec;
42 unsigned int __unused4;
Tao Baod7db5942015-01-28 10:07:51 -080043 unsigned int __unused5;
Ben Cheng655a7c02013-10-16 16:09:24 -070044};
Elliott Hughes40596aa2013-11-05 14:54:29 -080045#if __BITS_PER_LONG != 64 || defined(__ARCH_WANT_STAT64)
Ben Cheng655a7c02013-10-16 16:09:24 -070046struct stat64 {
Tao Baod7db5942015-01-28 10:07:51 -080047 unsigned long long st_dev;
48 unsigned long long st_ino;
49 unsigned int st_mode;
50 unsigned int st_nlink;
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned int st_uid;
52 unsigned int st_gid;
53 unsigned long long st_rdev;
54 unsigned long long __pad1;
Tao Baod7db5942015-01-28 10:07:51 -080055 long long st_size;
56 int st_blksize;
57 int __pad2;
58 long long st_blocks;
Tao Baod7db5942015-01-28 10:07:51 -080059 int st_atime;
60 unsigned int st_atime_nsec;
61 int st_mtime;
62 unsigned int st_mtime_nsec;
Tao Baod7db5942015-01-28 10:07:51 -080063 int st_ctime;
64 unsigned int st_ctime_nsec;
65 unsigned int __unused4;
66 unsigned int __unused5;
Ben Cheng655a7c02013-10-16 16:09:24 -070067};
68#endif
69#endif