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 12 long 0x00040988 Berkeley DB
73 >16 long >0 (Log, version %d, native byte-order)
74 12 belong 0x00040988 Berkeley DB
75 >16 belong >0 (Log, version %d, big-endian)
76 12 lelong 0x00040988 Berkeley DB
77 >16 lelong >0 (Log, version %d, little-endian)
81 # Round Robin Database Tool by Tobias Oetiker <oetiker@ee.ethz.ch>
82 0 string RRD RRDTool DB
83 >4 string x version %s
84 #----------------------------------------------------------------------
85 # ROOT: file(1) magic for ROOT databases
87 0 string root\0 ROOT file
88 >4 belong x Version %d
89 >33 belong x (Compression: %d)
92 # Alex Ott <ott@jet.msk.su>
93 ## Paradox file formats
94 #2 leshort 0x0800 Paradox
100 #>0x39 byte 12 v. 7.x
101 #>>0x04 byte 0 indexed .DB data file
102 #>>0x04 byte 1 primary index .PX file
103 #>>0x04 byte 2 non-indexed .DB data file
104 #>>0x04 byte 3 non-incrementing secondary index .Xnn file
105 #>>0x04 byte 4 secondary index .Ynn file
106 #>>0x04 byte 5 incrementing secondary index .Xnn file
107 #>>0x04 byte 6 non-incrementing secondary index .XGn file
108 #>>0x04 byte 7 secondary index .YGn file
109 #>>>0x04 byte 8 incrementing secondary index .XGn file
110 ## XBase database files
113 #>>12 leshort 0 FoxBase
114 #>>>0x04 lelong 0 (no records)
115 #>>>0x04 lelong >0 (%ld records)
119 #>>12 leshort 0 FoxBase+, FoxPro, dBaseIII+, dBaseIV, no memo
120 #>>>0x04 lelong 0 (no records)
121 #>>>0x04 lelong >0 (%ld records)
125 #>>12 leshort 0 dBASE IV no memo file
126 #>>>0x04 lelong 0 (no records)
127 #>>>0x04 lelong >0 (%ld records)
131 #>>12 leshort 0 dBASE V no memo file
132 #>>>0x04 lelong 0 (no records)
133 #>>>0x04 lelong >0 (%ld records)
137 #>>12 leshort 0 Visual FoxPro
138 #>>>0x04 lelong 0 (no records)
139 #>>>0x04 lelong >0 (%ld records)
143 #>>12 leshort 0 FlagShip with memo var size
144 #>>>0x04 lelong 0 (no records)
145 #>>>0x04 lelong >0 (%ld records)
149 #>>12 leshort 0 dBASEIV with memo
150 #>>>0x04 lelong 0 (no records)
151 #>>>0x04 lelong >0 (%ld records)
155 #>>12 leshort 0 FoxBase+, dBaseIII+ with memo
156 #>>>0x04 lelong 0 (no records)
157 #>>>0x04 lelong >0 (%ld records)
161 #>>12 leshort 0 dBaseIV with memo
162 #>>>0x04 lelong 0 (no records)
163 #>>>0x04 lelong >0 (%ld records)
167 #>>12 leshort 0 dBaseIV with SQL Table
168 #>>>0x04 lelong 0 (no records)
169 #>>>0x04 lelong >0 (%ld records)
173 #>>12 leshort 0 FlagShip with .dbt memo
174 #>>>0x04 lelong 0 (no records)
175 #>>>0x04 lelong >0 (%ld records)
179 #>>12 leshort 0 FoxPro with memo
180 #>>>0x04 lelong 0 (no records)
181 #>>>0x04 lelong >0 (%ld records)
183 #0 leshort 0x0006 DBase 3 index file
186 4 string Standard\ Jet\ DB Microsoft Access Database
188 # TDB database from Samba et al - Martin Pool <mbp@samba.org>
189 0 string TDB\ file TDB database
190 >32 lelong 0x2601196D version 6, little-endian
191 >>36 lelong x hash size %d bytes
193 # SE Linux policy database
194 0 lelong 0xf97cff8c SE Linux policy
197 >24 lelong x %d symbols
198 >28 lelong x %d ocons
200 # ICE authority file data (Wolfram Kleff)
201 2 string ICE ICE authority data
203 # X11 Xauthority file (Wolfram Kleff)
204 10 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
205 11 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
206 12 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
207 13 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
208 14 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
209 15 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
210 16 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
211 17 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
212 18 string MIT-MAGIC-COOKIE-1 X11 Xauthority data