2 #------------------------------------------------------------------------------
3 # database: file(1) magic for various databases
5 # extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
9 # Will be maintained as part of the GDBM distribution in the future.
11 0 belong 0x13579ace GNU dbm 1.x or ndbm database, big endian
12 0 lelong 0x13579ace GNU dbm 1.x or ndbm database, little endian
13 0 string GDBM GNU dbm 2.x database
17 # Ian Darwin's file /etc/magic files: big/little-endian version.
19 # Hash 1.85/1.86 databases store metadata in network byte order.
20 # Btree 1.85/1.86 databases store the metadata in host byte order.
21 # Hash and Btree 2.X and later databases store the metadata in host byte order.
23 0 long 0x00061561 Berkeley DB
27 >>4 belong >0 (Hash, version %d, native byte-order)
31 >>4 belong >0 (Hash, version %d, little-endian)
33 0 belong 0x00061561 Berkeley DB
37 >>4 belong >0 (Hash, version %d, big-endian)
41 >>4 belong >0 (Hash, version %d, native byte-order)
43 0 long 0x00053162 Berkeley DB 1.85/1.86
44 >4 long >0 (Btree, version %d, native byte-order)
45 0 belong 0x00053162 Berkeley DB 1.85/1.86
46 >4 belong >0 (Btree, version %d, big-endian)
47 0 lelong 0x00053162 Berkeley DB 1.85/1.86
48 >4 lelong >0 (Btree, version %d, little-endian)
50 12 long 0x00061561 Berkeley DB
51 >16 long >0 (Hash, version %d, native byte-order)
52 12 belong 0x00061561 Berkeley DB
53 >16 belong >0 (Hash, version %d, big-endian)
54 12 lelong 0x00061561 Berkeley DB
55 >16 lelong >0 (Hash, version %d, little-endian)
57 12 long 0x00053162 Berkeley DB
58 >16 long >0 (Btree, version %d, native byte-order)
59 12 belong 0x00053162 Berkeley DB
60 >16 belong >0 (Btree, version %d, big-endian)
61 12 lelong 0x00053162 Berkeley DB
62 >16 lelong >0 (Btree, version %d, little-endian)
64 12 long 0x00042253 Berkeley DB
65 >16 long >0 (Queue, version %d, native byte-order)
66 12 belong 0x00042253 Berkeley DB
67 >16 belong >0 (Queue, version %d, big-endian)
68 12 lelong 0x00042253 Berkeley DB
69 >16 lelong >0 (Queue, version %d, little-endian)
72 # Round Robin Database Tool by Tobias Oetiker <oetiker@ee.ethz.ch>
73 0 string RRD RRDTool DB
74 >4 string x version %s
75 #----------------------------------------------------------------------
76 # ROOT: file(1) magic for ROOT databases
78 0 string root\0 ROOT file
79 >4 belong x Version %d
80 >33 belong x (Compression: %d)
83 # Alex Ott <ott@jet.msk.su>
84 ## Paradox file formats
85 #2 leshort 0x0800 Paradox
92 #>>0x04 byte 0 indexed .DB data file
93 #>>0x04 byte 1 primary index .PX file
94 #>>0x04 byte 2 non-indexed .DB data file
95 #>>0x04 byte 3 non-incrementing secondary index .Xnn file
96 #>>0x04 byte 4 secondary index .Ynn file
97 #>>0x04 byte 5 incrementing secondary index .Xnn file
98 #>>0x04 byte 6 non-incrementing secondary index .XGn file
99 #>>0x04 byte 7 secondary index .YGn file
100 #>>>0x04 byte 8 incrementing secondary index .XGn file
101 ## XBase database files
104 #>>12 leshort 0 FoxBase
105 #>>>0x04 lelong 0 (no records)
106 #>>>0x04 lelong >0 (%ld records)
110 #>>12 leshort 0 FoxBase+, FoxPro, dBaseIII+, dBaseIV, no memo
111 #>>>0x04 lelong 0 (no records)
112 #>>>0x04 lelong >0 (%ld records)
116 #>>12 leshort 0 dBASE IV no memo file
117 #>>>0x04 lelong 0 (no records)
118 #>>>0x04 lelong >0 (%ld records)
122 #>>12 leshort 0 dBASE V no memo file
123 #>>>0x04 lelong 0 (no records)
124 #>>>0x04 lelong >0 (%ld records)
128 #>>12 leshort 0 Visual FoxPro
129 #>>>0x04 lelong 0 (no records)
130 #>>>0x04 lelong >0 (%ld records)
134 #>>12 leshort 0 FlagShip with memo var size
135 #>>>0x04 lelong 0 (no records)
136 #>>>0x04 lelong >0 (%ld records)
140 #>>12 leshort 0 dBASEIV with memo
141 #>>>0x04 lelong 0 (no records)
142 #>>>0x04 lelong >0 (%ld records)
146 #>>12 leshort 0 FoxBase+, dBaseIII+ with memo
147 #>>>0x04 lelong 0 (no records)
148 #>>>0x04 lelong >0 (%ld records)
152 #>>12 leshort 0 dBaseIV with memo
153 #>>>0x04 lelong 0 (no records)
154 #>>>0x04 lelong >0 (%ld records)
158 #>>12 leshort 0 dBaseIV with SQL Table
159 #>>>0x04 lelong 0 (no records)
160 #>>>0x04 lelong >0 (%ld records)
164 #>>12 leshort 0 FlagShip with .dbt memo
165 #>>>0x04 lelong 0 (no records)
166 #>>>0x04 lelong >0 (%ld records)
170 #>>12 leshort 0 FoxPro with memo
171 #>>>0x04 lelong 0 (no records)
172 #>>>0x04 lelong >0 (%ld records)
174 #0 leshort 0x0006 DBase 3 index file
177 4 string Standard\ Jet\ DB Microsoft Access Database
179 # TDB database from Samba et al - Martin Pool <mbp@samba.org>
180 0 string TDB\ file TDB database
181 >32 lelong 0x2601196D version 6, little-endian
182 >>36 lelong x hash size %d bytes
184 # SE Linux policy database
185 0 lelong 0xf97cff8c SE Linux policy
188 >24 lelong x %d symbols
189 >28 lelong x %d ocons
191 # ICE authority file data (Wolfram Kleff)
192 2 string ICE ICE authority data
194 # X11 Xauthority file (Wolfram Kleff)
195 10 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
196 11 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
197 12 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
198 13 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
199 14 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
200 15 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
201 16 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
202 17 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
203 18 string MIT-MAGIC-COOKIE-1 X11 Xauthority data