stat.h revision abd626117cfd366faa16a5d0ac4621f608a5c887
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 _ASM_STAT_H
20#define _ASM_STAT_H
21#include <linux/types.h>
22#include <asm/sgidefs.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#if _MIPS_SIM == _MIPS_SIM_ABI32 || _MIPS_SIM == _MIPS_SIM_NABI32
25struct stat {
26 unsigned st_dev;
27 long st_pad1[3];
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 ino_t st_ino;
30 mode_t st_mode;
31 __u32 st_nlink;
32 uid_t st_uid;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 gid_t st_gid;
35 unsigned st_rdev;
36 long st_pad2[2];
37 __kernel_off_t st_size;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 long st_pad3;
40 time_t st_atime;
41 long st_atime_nsec;
42 time_t st_mtime;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 long st_mtime_nsec;
45 time_t st_ctime;
46 long st_ctime_nsec;
47 long st_blksize;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 long st_blocks;
50 long st_pad4[14];
51};
52struct stat64 {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned long st_dev;
55 unsigned long st_pad0[3];
56 unsigned long long st_ino;
57 mode_t st_mode;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __u32 st_nlink;
60 uid_t st_uid;
61 gid_t st_gid;
62 unsigned long st_rdev;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned long st_pad1[3];
65 long long st_size;
66 time_t st_atime;
67 unsigned long st_atime_nsec;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 time_t st_mtime;
70 unsigned long st_mtime_nsec;
71 time_t st_ctime;
72 unsigned long st_ctime_nsec;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 unsigned long st_blksize;
75 unsigned long st_pad2;
76 long long st_blocks;
77};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#endif
80#if _MIPS_SIM == _MIPS_SIM_ABI64
81struct stat {
82 unsigned int st_dev;
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 unsigned int st_pad0[3];
85 unsigned long st_ino;
86 mode_t st_mode;
87 __u32 st_nlink;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 uid_t st_uid;
90 gid_t st_gid;
91 unsigned int st_rdev;
92 unsigned int st_pad1[3];
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 __kernel_off_t st_size;
95 unsigned int st_atime;
96 unsigned int st_atime_nsec;
97 unsigned int st_mtime;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 unsigned int st_mtime_nsec;
100 unsigned int st_ctime;
101 unsigned int st_ctime_nsec;
102 unsigned int st_blksize;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 unsigned int st_pad2;
105 unsigned long st_blocks;
106};
107#endif
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define STAT_HAVE_NSEC 1
110#endif
111