[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / mono / utils / linux_magic.h
1 /**
2  * \file
3  */
4
5 #ifndef __LINUX_MAGIC_H
6 #define __LINUX_MAGIC_H
7
8 #if __linux__
9 #if HAVE_LINUX_MAGIC_H
10 #include <linux/magic.h>
11 #endif
12
13 #ifndef ADFS_SUPER_MAGIC
14 #define ADFS_SUPER_MAGIC        0xadf5
15 #endif
16
17 #ifndef AFFS_SUPER_MAGIC
18 #define AFFS_SUPER_MAGIC        0xadff
19 #endif
20
21 #ifndef AFS_SUPER_MAGIC
22 #define AFS_SUPER_MAGIC         0x5346414F
23 #endif
24
25 #ifndef AUTOFS_SUPER_MAGIC
26 #define AUTOFS_SUPER_MAGIC      0x0187
27 #endif
28
29 #ifndef AUTOFS_SBI_MAGIC
30 #define AUTOFS_SBI_MAGIC        0x6d4a556d
31 #endif
32
33 #ifndef CODA_SUPER_MAGIC
34 #define CODA_SUPER_MAGIC        0x73757245
35 #endif
36
37 #ifndef CRAMFS_MAGIC
38 #define CRAMFS_MAGIC            0x28cd3d45
39 #endif
40
41 #ifndef CRAMFS_MAGIC_WEND
42 #define CRAMFS_MAGIC_WEND       0x453dcd28
43 #endif
44
45 #ifndef DEBUGFS_MAGIC
46 #define DEBUGFS_MAGIC          0x64626720
47 #endif
48
49 #ifndef SYSFS_MAGIC
50 #define SYSFS_MAGIC             0x62656572
51 #endif
52
53 #ifndef SECURITYFS_MAGIC
54 #define SECURITYFS_MAGIC        0x73636673
55 #endif
56
57 #ifndef SELINUX_MAGIC
58 #define SELINUX_MAGIC           0xf97cff8c
59 #endif
60
61 #ifndef RAMFS_MAGIC
62 #define RAMFS_MAGIC             0x858458f6
63 #endif
64
65 #ifndef TMPFS_MAGIC
66 #define TMPFS_MAGIC             0x01021994
67 #endif
68
69 #ifndef HUGETLBFS_MAGIC
70 #define HUGETLBFS_MAGIC         0x958458f6
71 #endif
72
73 #ifndef SQUASHFS_MAGIC
74 #define SQUASHFS_MAGIC          0x73717368
75 #endif
76
77 #ifndef EFS_SUPER_MAGIC
78 #define EFS_SUPER_MAGIC         0x414A53
79 #endif
80
81 #ifndef EXT2_SUPER_MAGIC
82 #define EXT2_SUPER_MAGIC        0xEF53
83 #endif
84
85 #ifndef EXT3_SUPER_MAGIC
86 #define EXT3_SUPER_MAGIC        0xEF53
87 #endif
88
89 #ifndef XENFS_SUPER_MAGIC
90 #define XENFS_SUPER_MAGIC       0xabba1974
91 #endif
92
93 #ifndef EXT4_SUPER_MAGIC
94 #define EXT4_SUPER_MAGIC        0xEF53
95 #endif
96
97 #ifndef BTRFS_SUPER_MAGIC
98 #define BTRFS_SUPER_MAGIC       0x9123683E
99 #endif
100
101 #ifndef HPFS_SUPER_MAGIC
102 #define HPFS_SUPER_MAGIC        0xf995e849
103 #endif
104
105 #ifndef ISOFS_SUPER_MAGIC
106 #define ISOFS_SUPER_MAGIC       0x9660
107 #endif
108
109 #ifndef JFFS2_SUPER_MAGIC
110 #define JFFS2_SUPER_MAGIC       0x72b6
111 #endif
112
113 #ifndef JFS_SUPER_MAGIC
114 #define JFS_SUPER_MAGIC         0x3153464a
115 #endif
116
117 #ifndef ANON_INODE_FS_MAGIC
118 #define ANON_INODE_FS_MAGIC     0x09041934
119 #endif
120
121 #ifndef MINIX_SUPER_MAGIC
122 #define MINIX_SUPER_MAGIC       0x137F
123 #endif
124
125 #ifndef MINIX_SUPER_MAGIC2
126 #define MINIX_SUPER_MAGIC2      0x138F
127 #endif
128
129 #ifndef MINIX2_SUPER_MAGIC
130 #define MINIX2_SUPER_MAGIC      0x2468
131 #endif
132
133 #ifndef MINIX2_SUPER_MAGIC2
134 #define MINIX2_SUPER_MAGIC2     0x2478
135 #endif
136
137 #ifndef MINIX3_SUPER_MAGIC
138 #define MINIX3_SUPER_MAGIC      0x4d5a
139 #endif
140
141 #ifndef MSDOS_SUPER_MAGIC
142 #define MSDOS_SUPER_MAGIC       0x4d44
143 #endif
144
145 #ifndef NCP_SUPER_MAGIC
146 #define NCP_SUPER_MAGIC         0x564c
147 #endif
148
149 #ifndef NFS_SUPER_MAGIC
150 #define NFS_SUPER_MAGIC         0x6969
151 #endif
152
153 #ifndef OPENPROM_SUPER_MAGIC
154 #define OPENPROM_SUPER_MAGIC    0x9fa1
155 #endif
156
157 #ifndef PROC_SUPER_MAGIC
158 #define PROC_SUPER_MAGIC        0x9fa0
159 #endif
160
161 #ifndef QNX4_SUPER_MAGIC
162 #define QNX4_SUPER_MAGIC        0x002f
163 #endif
164
165 #ifndef REISERFS_SUPER_MAGIC
166 #define REISERFS_SUPER_MAGIC    0x52654973
167 #endif
168
169 #ifndef SMB_SUPER_MAGIC
170 #define SMB_SUPER_MAGIC         0x517B
171 #endif
172
173 #ifndef USBDEVICE_SUPER_MAGIC
174 #define USBDEVICE_SUPER_MAGIC   0x9fa2
175 #endif
176
177 #ifndef CGROUP_SUPER_MAGIC
178 #define CGROUP_SUPER_MAGIC      0x27e0eb
179 #endif
180
181 #ifndef FUTEXFS_SUPER_MAGIC
182 #define FUTEXFS_SUPER_MAGIC     0xBAD1DEA
183 #endif
184
185 #ifndef DEVPTS_SUPER_MAGIC
186 #define DEVPTS_SUPER_MAGIC      0x1cd1
187 #endif
188
189 #ifndef CIFS_MAGIC_NUMBER
190 #define CIFS_MAGIC_NUMBER       0xFF534D42
191 #endif
192
193 #ifndef BEFS_SUPER_MAGIC1
194 #define BEFS_SUPER_MAGIC1       0x42465331
195 #endif
196
197 #ifndef BEFS_SUPER_MAGIC2
198 #define BEFS_SUPER_MAGIC2       0xdd121031
199 #endif
200
201 #ifndef BEFS_SUPER_MAGIC3
202 #define BEFS_SUPER_MAGIC3       0x15b6830e
203 #endif
204
205 #ifndef BFS_MAGIC
206 #define BFS_MAGIC               0x1BADFACE
207 #endif
208
209 #ifndef NTFS_SB_MAGIC
210 #define NTFS_SB_MAGIC           0x5346544e
211 #endif
212
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,
219 };
220
221 #ifndef SYSV_MAGIC_BASE
222 #define SYSV_MAGIC_BASE         0x012FF7B3
223 #endif
224
225 #ifndef XENIX_SUPER_MAGIC
226 #define XENIX_SUPER_MAGIC       (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_XENIX)
227 #endif
228
229 #ifndef SYSV4_SUPER_MAGIC
230 #define SYSV4_SUPER_MAGIC       (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_SYSV4)
231 #endif
232
233 #ifndef SYSV2_SUPER_MAGIC
234 #define SYSV2_SUPER_MAGIC       (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_SYSV2)
235 #endif
236
237 #ifndef COH_SUPER_MAGIC
238 #define COH_SUPER_MAGIC         (SYSV_MAGIC_BASE+MONO_SYSV_FSTYPE_COH)
239 #endif
240
241 #ifndef UFS_MAGIC
242 #define UFS_MAGIC               0x00011954
243 #endif
244
245 #ifndef UFS_MAGIC_BW
246 #define UFS_MAGIC_BW            0x0f242697
247 #endif
248
249 #ifndef UFS2_MAGIC
250 #define UFS2_MAGIC              0x19540119
251 #endif
252
253 #ifndef UFS_CIGAM
254 #define UFS_CIGAM               0x54190100
255 #endif
256
257 #ifndef UDF_SUPER_MAGIC
258 #define UDF_SUPER_MAGIC         0x15013346
259 #endif
260
261 #ifndef XFS_SB_MAGIC
262 #define XFS_SB_MAGIC            0x58465342
263 #endif
264
265 #ifndef FUSE_SUPER_MAGIC
266 #define FUSE_SUPER_MAGIC        0x65735546
267 #endif
268
269 #ifndef V9FS_MAGIC
270 #define V9FS_MAGIC              0x01021997
271 #endif
272
273 #ifndef CEPH_SUPER_MAGIC
274 #define CEPH_SUPER_MAGIC        0x00c36400
275 #endif
276
277 #ifndef CONFIGFS_MAGIC
278 #define CONFIGFS_MAGIC          0x62656570
279 #endif
280
281 #ifndef ECRYPTFS_SUPER_MAGIC
282 #define ECRYPTFS_SUPER_MAGIC    0xf15f
283 #endif
284
285 #ifndef EXOFS_SUPER_MAGIC
286 #define EXOFS_SUPER_MAGIC       0x5df5
287 #endif
288
289 #ifndef VXFS_SUPER_MAGIC
290 #define VXFS_SUPER_MAGIC        0xa501fcf5
291 #endif
292
293 #ifndef VXFS_OLT_MAGIC
294 #define VXFS_OLT_MAGIC          0xa504fcf5
295 #endif
296
297 #ifndef GFS2_MAGIC
298 #define GFS2_MAGIC              0x01161970
299 #endif
300
301 #ifndef HFS_SUPER_MAGIC
302 #define HFS_SUPER_MAGIC         0x4244
303 #endif
304
305 #ifndef HFSPLUS_SUPER_MAGIC
306 #define HFSPLUS_SUPER_MAGIC     0x482b
307 #endif
308
309 #ifndef LOGFS_MAGIC_U32
310 #define LOGFS_MAGIC_U32         0xc97e8168
311 #endif
312
313 #ifndef OCFS2_SUPER_MAGIC
314 #define OCFS2_SUPER_MAGIC       0x7461636f
315 #endif
316
317 #ifndef OMFS_MAGIC
318 #define OMFS_MAGIC              0xc2993d87
319 #endif
320
321 #ifndef UBIFS_SUPER_MAGIC
322 #define UBIFS_SUPER_MAGIC       0x24051905
323 #endif
324
325 #ifndef ROMFS_MAGIC
326 #define ROMFS_MAGIC             0x7275
327 #endif
328
329 #endif
330 #endif