• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 _LINUX_FS_H
20 #define _LINUX_FS_H
21 #include <linux/limits.h>
22 #include <linux/ioctl.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #undef NR_OPEN
25 #define NR_OPEN (1024*1024)
26 #define INR_OPEN 1024
27 #define BLOCK_SIZE_BITS 10
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
30 #define SEEK_SET 0
31 #define SEEK_CUR 1
32 #define SEEK_END 2
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 struct files_stat_struct {
35  int nr_files;
36  int nr_free_files;
37  int max_files;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 struct inodes_stat_t {
41  int nr_inodes;
42  int nr_unused;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  int dummy[5];
45 };
46 #define NR_FILE 8192
47 #define MAY_EXEC 1
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define MAY_WRITE 2
50 #define MAY_READ 4
51 #define MAY_APPEND 8
52 #define FMODE_READ 1
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define FMODE_WRITE 2
55 #define FMODE_LSEEK 4
56 #define FMODE_PREAD 8
57 #define FMODE_PWRITE FMODE_PREAD
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define FMODE_EXEC 16
60 #define RW_MASK 1
61 #define RWA_MASK 2
62 #define READ 0
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define WRITE 1
65 #define READA 2
66 #define SWRITE 3
67 #define SPECIAL 4
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define READ_SYNC (READ | (1 << BIO_RW_SYNC))
70 #define WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC))
71 #define WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER))
72 #define SEL_IN 1
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define SEL_OUT 2
75 #define SEL_EX 4
76 #define FS_REQUIRES_DEV 1
77 #define FS_BINARY_MOUNTDATA 2
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define FS_REVAL_DOT 16384
80 #define FS_ODD_RENAME 32768
81 #define MS_RDONLY 1
82 #define MS_NOSUID 2
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define MS_NODEV 4
85 #define MS_NOEXEC 8
86 #define MS_SYNCHRONOUS 16
87 #define MS_REMOUNT 32
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define MS_MANDLOCK 64
90 #define MS_DIRSYNC 128
91 #define MS_NOATIME 1024
92 #define MS_NODIRATIME 2048
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define MS_BIND 4096
95 #define MS_MOVE 8192
96 #define MS_REC 16384
97 #define MS_VERBOSE 32768
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define MS_SILENT 32768
100 #define MS_POSIXACL (1<<16)
101 #define MS_UNBINDABLE (1<<17)
102 #define MS_PRIVATE (1<<18)
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define MS_SLAVE (1<<19)
105 #define MS_SHARED (1<<20)
106 #define MS_ACTIVE (1<<30)
107 #define MS_NOUSER (1<<31)
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define MS_RMT_MASK (MS_RDONLY|MS_SYNCHRONOUS|MS_MANDLOCK)
110 #define MS_MGC_VAL 0xC0ED0000
111 #define MS_MGC_MSK 0xffff0000
112 #define S_SYNC 1
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define S_NOATIME 2
115 #define S_APPEND 4
116 #define S_IMMUTABLE 8
117 #define S_DEAD 16
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define S_NOQUOTA 32
120 #define S_DIRSYNC 64
121 #define S_NOCMTIME 128
122 #define S_SWAPFILE 256
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define S_PRIVATE 512
125 #define __IS_FLG(inode,flg) ((inode)->i_sb->s_flags & (flg))
126 #define IS_RDONLY(inode) ((inode)->i_sb->s_flags & MS_RDONLY)
127 #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) ||   ((inode)->i_flags & S_SYNC))
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) ||   ((inode)->i_flags & (S_SYNC|S_DIRSYNC)))
130 #define IS_MANDLOCK(inode) __IS_FLG(inode, MS_MANDLOCK)
131 #define IS_NOQUOTA(inode) ((inode)->i_flags & S_NOQUOTA)
132 #define IS_APPEND(inode) ((inode)->i_flags & S_APPEND)
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define IS_IMMUTABLE(inode) ((inode)->i_flags & S_IMMUTABLE)
135 #define IS_POSIXACL(inode) __IS_FLG(inode, MS_POSIXACL)
136 #define IS_DEADDIR(inode) ((inode)->i_flags & S_DEAD)
137 #define IS_NOCMTIME(inode) ((inode)->i_flags & S_NOCMTIME)
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 #define IS_SWAPFILE(inode) ((inode)->i_flags & S_SWAPFILE)
140 #define IS_PRIVATE(inode) ((inode)->i_flags & S_PRIVATE)
141 #define BLKROSET _IO(0x12,93)
142 #define BLKROGET _IO(0x12,94)
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 #define BLKRRPART _IO(0x12,95)
145 #define BLKGETSIZE _IO(0x12,96)
146 #define BLKFLSBUF _IO(0x12,97)
147 #define BLKRASET _IO(0x12,98)
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 #define BLKRAGET _IO(0x12,99)
150 #define BLKFRASET _IO(0x12,100)
151 #define BLKFRAGET _IO(0x12,101)
152 #define BLKSECTSET _IO(0x12,102)
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 #define BLKSECTGET _IO(0x12,103)
155 #define BLKSSZGET _IO(0x12,104)
156 #define BLKBSZGET _IOR(0x12,112,size_t)
157 #define BLKBSZSET _IOW(0x12,113,size_t)
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 #define BLKGETSIZE64 _IOR(0x12,114,size_t)
160 #define BLKTRACESETUP _IOWR(0x12,115,struct blk_user_trace_setup)
161 #define BLKTRACESTART _IO(0x12,116)
162 #define BLKTRACESTOP _IO(0x12,117)
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 #define BLKTRACETEARDOWN _IO(0x12,118)
165 #define BMAP_IOCTL 1
166 #define FIBMAP _IO(0x00,1)
167 #define FIGETBSZ _IO(0x00,2)
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 #define SYNC_FILE_RANGE_WAIT_BEFORE 1
170 #define SYNC_FILE_RANGE_WRITE 2
171 #define SYNC_FILE_RANGE_WAIT_AFTER 4
172 #endif
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174