blob: e37e7ab09b8a16cc95751f6172778ca422bb5f93 [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_STAT_H
20#define _ASM_STAT_H
21#include <linux/types.h>
22#include <asm/sgidefs.h>
Elliott Hughesabd62612013-11-08 11:45:48 -080023#if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_NABI32
24struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080025 unsigned st_dev;
26 long st_pad1[3];
Tao Baod7db5942015-01-28 10:07:51 -080027 ino_t st_ino;
28 mode_t st_mode;
29 __u32 st_nlink;
30 uid_t st_uid;
Tao Baod7db5942015-01-28 10:07:51 -080031 gid_t st_gid;
32 unsigned st_rdev;
33 long st_pad2[2];
34 __kernel_off_t st_size;
Tao Baod7db5942015-01-28 10:07:51 -080035 long st_pad3;
36 time_t st_atime;
37 long st_atime_nsec;
38 time_t st_mtime;
Tao Baod7db5942015-01-28 10:07:51 -080039 long st_mtime_nsec;
40 time_t st_ctime;
41 long st_ctime_nsec;
42 long st_blksize;
Tao Baod7db5942015-01-28 10:07:51 -080043 long st_blocks;
44 long st_pad4[14];
Elliott Hughesabd62612013-11-08 11:45:48 -080045};
46struct stat64 {
Tao Baod7db5942015-01-28 10:07:51 -080047 unsigned long st_dev;
48 unsigned long st_pad0[3];
49 unsigned long long st_ino;
50 mode_t st_mode;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 st_nlink;
52 uid_t st_uid;
53 gid_t st_gid;
54 unsigned long st_rdev;
Tao Baod7db5942015-01-28 10:07:51 -080055 unsigned long st_pad1[3];
56 long long st_size;
57 time_t st_atime;
58 unsigned long st_atime_nsec;
Tao Baod7db5942015-01-28 10:07:51 -080059 time_t st_mtime;
60 unsigned long st_mtime_nsec;
61 time_t st_ctime;
62 unsigned long st_ctime_nsec;
Tao Baod7db5942015-01-28 10:07:51 -080063 unsigned long st_blksize;
64 unsigned long st_pad2;
65 long long st_blocks;
Elliott Hughesabd62612013-11-08 11:45:48 -080066};
Elliott Hughesabd62612013-11-08 11:45:48 -080067#endif
68#if _MIPS_SIM == _MIPS_SIM_ABI64
69struct stat {
Tao Baod7db5942015-01-28 10:07:51 -080070 unsigned int st_dev;
Tao Baod7db5942015-01-28 10:07:51 -080071 unsigned int st_pad0[3];
72 unsigned long st_ino;
73 mode_t st_mode;
74 __u32 st_nlink;
Tao Baod7db5942015-01-28 10:07:51 -080075 uid_t st_uid;
76 gid_t st_gid;
77 unsigned int st_rdev;
78 unsigned int st_pad1[3];
Tao Baod7db5942015-01-28 10:07:51 -080079 __kernel_off_t st_size;
80 unsigned int st_atime;
81 unsigned int st_atime_nsec;
82 unsigned int st_mtime;
Tao Baod7db5942015-01-28 10:07:51 -080083 unsigned int st_mtime_nsec;
84 unsigned int st_ctime;
85 unsigned int st_ctime_nsec;
86 unsigned int st_blksize;
Tao Baod7db5942015-01-28 10:07:51 -080087 unsigned int st_pad2;
88 unsigned long st_blocks;
Elliott Hughesabd62612013-11-08 11:45:48 -080089};
90#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080091#define STAT_HAVE_NSEC 1
92#endif