[sdks] Bump Android NDK, build tools and platform tools versions
[mono-project.git] / mono / utils / linux_magic.h
blob9d8e94a2bce815b700ba73109d9cfb1870cdbd43
1 /**
2 * \file
3 */
5 #ifndef __LINUX_MAGIC_H
6 #define __LINUX_MAGIC_H
8 #if __linux__
9 #if HAVE_LINUX_MAGIC_H
10 #include <linux/magic.h>
11 #endif
13 #ifndef ADFS_SUPER_MAGIC
14 #define ADFS_SUPER_MAGIC 0xadf5
15 #endif
17 #ifndef AFFS_SUPER_MAGIC
18 #define AFFS_SUPER_MAGIC 0xadff
19 #endif
21 #ifndef AFS_SUPER_MAGIC
22 #define AFS_SUPER_MAGIC 0x5346414F
23 #endif
25 #ifndef AUTOFS_SUPER_MAGIC
26 #define AUTOFS_SUPER_MAGIC 0x0187
27 #endif
29 #ifndef AUTOFS_SBI_MAGIC
30 #define AUTOFS_SBI_MAGIC 0x6d4a556d
31 #endif
33 #ifndef CODA_SUPER_MAGIC
34 #define CODA_SUPER_MAGIC 0x73757245
35 #endif
37 #ifndef CRAMFS_MAGIC
38 #define CRAMFS_MAGIC 0x28cd3d45
39 #endif
41 #ifndef CRAMFS_MAGIC_WEND
42 #define CRAMFS_MAGIC_WEND 0x453dcd28
43 #endif
45 #ifndef DEBUGFS_MAGIC
46 #define DEBUGFS_MAGIC 0x64626720
47 #endif
49 #ifndef SYSFS_MAGIC
50 #define SYSFS_MAGIC 0x62656572
51 #endif
53 #ifndef SECURITYFS_MAGIC
54 #define SECURITYFS_MAGIC 0x73636673
55 #endif
57 #ifndef SELINUX_MAGIC
58 #define SELINUX_MAGIC 0xf97cff8c
59 #endif
61 #ifndef RAMFS_MAGIC
62 #define RAMFS_MAGIC 0x858458f6
63 #endif
65 #ifndef TMPFS_MAGIC
66 #define TMPFS_MAGIC 0x01021994
67 #endif
69 #ifndef HUGETLBFS_MAGIC
70 #define HUGETLBFS_MAGIC 0x958458f6
71 #endif
73 #ifndef SQUASHFS_MAGIC
74 #define SQUASHFS_MAGIC 0x73717368
75 #endif
77 #ifndef EFS_SUPER_MAGIC
78 #define EFS_SUPER_MAGIC 0x414A53
79 #endif
81 #ifndef EXT2_SUPER_MAGIC
82 #define EXT2_SUPER_MAGIC 0xEF53
83 #endif
85 #ifndef EXT3_SUPER_MAGIC
86 #define EXT3_SUPER_MAGIC 0xEF53
87 #endif
89 #ifndef XENFS_SUPER_MAGIC
90 #define XENFS_SUPER_MAGIC 0xabba1974
91 #endif
93 #ifndef EXT4_SUPER_MAGIC
94 #define EXT4_SUPER_MAGIC 0xEF53
95 #endif
97 #ifndef BTRFS_SUPER_MAGIC
98 #define BTRFS_SUPER_MAGIC 0x9123683E
99 #endif
101 #ifndef HPFS_SUPER_MAGIC
102 #define HPFS_SUPER_MAGIC 0xf995e849
103 #endif
105 #ifndef ISOFS_SUPER_MAGIC
106 #define ISOFS_SUPER_MAGIC 0x9660
107 #endif
109 #ifndef JFFS2_SUPER_MAGIC
110 #define JFFS2_SUPER_MAGIC 0x72b6
111 #endif
113 #ifndef JFS_SUPER_MAGIC
114 #define JFS_SUPER_MAGIC 0x3153464a
115 #endif
117 #ifndef ANON_INODE_FS_MAGIC
118 #define ANON_INODE_FS_MAGIC 0x09041934
119 #endif
121 #ifndef MINIX_SUPER_MAGIC
122 #define MINIX_SUPER_MAGIC 0x137F
123 #endif
125 #ifndef MINIX_SUPER_MAGIC2
126 #define MINIX_SUPER_MAGIC2 0x138F
127 #endif
129 #ifndef MINIX2_SUPER_MAGIC
130 #define MINIX2_SUPER_MAGIC 0x2468
131 #endif
133 #ifndef MINIX2_SUPER_MAGIC2
134 #define MINIX2_SUPER_MAGIC2 0x2478
135 #endif
137 #ifndef MINIX3_SUPER_MAGIC
138 #define MINIX3_SUPER_MAGIC 0x4d5a
139 #endif
141 #ifndef MSDOS_SUPER_MAGIC
142 #define MSDOS_SUPER_MAGIC 0x4d44
143 #endif
145 #ifndef NCP_SUPER_MAGIC
146 #define NCP_SUPER_MAGIC 0x564c
147 #endif
149 #ifndef NFS_SUPER_MAGIC
150 #define NFS_SUPER_MAGIC 0x6969
151 #endif
153 #ifndef OPENPROM_SUPER_MAGIC
154 #define OPENPROM_SUPER_MAGIC 0x9fa1
155 #endif
157 #ifndef PROC_SUPER_MAGIC
158 #define PROC_SUPER_MAGIC 0x9fa0
159 #endif
161 #ifndef QNX4_SUPER_MAGIC
162 #define QNX4_SUPER_MAGIC 0x002f
163 #endif
165 #ifndef REISERFS_SUPER_MAGIC
166 #define REISERFS_SUPER_MAGIC 0x52654973
167 #endif
169 #ifndef SMB_SUPER_MAGIC
170 #define SMB_SUPER_MAGIC 0x517B
171 #endif
173 #ifndef USBDEVICE_SUPER_MAGIC
174 #define USBDEVICE_SUPER_MAGIC 0x9fa2
175 #endif
177 #ifndef CGROUP_SUPER_MAGIC
178 #define CGROUP_SUPER_MAGIC 0x27e0eb
179 #endif
181 #ifndef FUTEXFS_SUPER_MAGIC
182 #define FUTEXFS_SUPER_MAGIC 0xBAD1DEA
183 #endif
185 #ifndef DEVPTS_SUPER_MAGIC
186 #define DEVPTS_SUPER_MAGIC 0x1cd1
187 #endif
189 #ifndef CIFS_MAGIC_NUMBER
190 #define CIFS_MAGIC_NUMBER 0xFF534D42
191 #endif
193 #ifndef BEFS_SUPER_MAGIC1
194 #define BEFS_SUPER_MAGIC1 0x42465331
195 #endif
197 #ifndef BEFS_SUPER_MAGIC2
198 #define BEFS_SUPER_MAGIC2 0xdd121031
199 #endif
201 #ifndef BEFS_SUPER_MAGIC3
202 #define BEFS_SUPER_MAGIC3 0x15b6830e
203 #endif
205 #ifndef BFS_MAGIC
206 #define BFS_MAGIC 0x1BADFACE
207 #endif
209 #ifndef NTFS_SB_MAGIC
210 #define NTFS_SB_MAGIC 0x5346544e
211 #endif
213 enum {
214 MONO_SYSV_FSTYPE_NONE = 0,
215 MONO_SYSV_FSTYPE_XENIX,
216 MONO_SYSV_FSTYPE_SYSV4,
217 MONO_SYSV_FSTYPE_SYSV2,
218 MONO_SYSV_FSTYPE_COH,
221 #ifndef SYSV_MAGIC_BASE
222 #define SYSV_MAGIC_BASE 0x012FF7B3
223 #endif
225 #ifndef XENIX_SUPER_MAGIC
226 #define XENIX_SUPER_MAGIC (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_XENIX)
227 #endif
229 #ifndef SYSV4_SUPER_MAGIC
230 #define SYSV4_SUPER_MAGIC (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_SYSV4)
231 #endif
233 #ifndef SYSV2_SUPER_MAGIC
234 #define SYSV2_SUPER_MAGIC (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_SYSV2)
235 #endif
237 #ifndef COH_SUPER_MAGIC
238 #define COH_SUPER_MAGIC (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_COH)
239 #endif
241 #ifndef UFS_MAGIC
242 #define UFS_MAGIC 0x00011954
243 #endif
245 #ifndef UFS_MAGIC_BW
246 #define UFS_MAGIC_BW 0x0f242697
247 #endif
249 #ifndef UFS2_MAGIC
250 #define UFS2_MAGIC 0x19540119
251 #endif
253 #ifndef UFS_CIGAM
254 #define UFS_CIGAM 0x54190100
255 #endif
257 #ifndef UDF_SUPER_MAGIC
258 #define UDF_SUPER_MAGIC 0x15013346
259 #endif
261 #ifndef XFS_SB_MAGIC
262 #define XFS_SB_MAGIC 0x58465342
263 #endif
265 #ifndef FUSE_SUPER_MAGIC
266 #define FUSE_SUPER_MAGIC 0x65735546
267 #endif
269 #ifndef V9FS_MAGIC
270 #define V9FS_MAGIC 0x01021997
271 #endif
273 #ifndef CEPH_SUPER_MAGIC
274 #define CEPH_SUPER_MAGIC 0x00c36400
275 #endif
277 #ifndef CONFIGFS_MAGIC
278 #define CONFIGFS_MAGIC 0x62656570
279 #endif
281 #ifndef ECRYPTFS_SUPER_MAGIC
282 #define ECRYPTFS_SUPER_MAGIC 0xf15f
283 #endif
285 #ifndef EXOFS_SUPER_MAGIC
286 #define EXOFS_SUPER_MAGIC 0x5df5
287 #endif
289 #ifndef VXFS_SUPER_MAGIC
290 #define VXFS_SUPER_MAGIC 0xa501fcf5
291 #endif
293 #ifndef VXFS_OLT_MAGIC
294 #define VXFS_OLT_MAGIC 0xa504fcf5
295 #endif
297 #ifndef GFS2_MAGIC
298 #define GFS2_MAGIC 0x01161970
299 #endif
301 #ifndef HFS_SUPER_MAGIC
302 #define HFS_SUPER_MAGIC 0x4244
303 #endif
305 #ifndef HFSPLUS_SUPER_MAGIC
306 #define HFSPLUS_SUPER_MAGIC 0x482b
307 #endif
309 #ifndef LOGFS_MAGIC_U32
310 #define LOGFS_MAGIC_U32 0xc97e8168
311 #endif
313 #ifndef OCFS2_SUPER_MAGIC
314 #define OCFS2_SUPER_MAGIC 0x7461636f
315 #endif
317 #ifndef OMFS_MAGIC
318 #define OMFS_MAGIC 0xc2993d87
319 #endif
321 #ifndef UBIFS_SUPER_MAGIC
322 #define UBIFS_SUPER_MAGIC 0x24051905
323 #endif
325 #ifndef ROMFS_MAGIC
326 #define ROMFS_MAGIC 0x7275
327 #endif
329 #endif
330 #endif