Start sentences on a new line, fix typo and use .An.
[dragonfly.git] / contrib / file-4 / magic / Magdir / database
1
2 #------------------------------------------------------------------------------
3 # database:  file(1) magic for various databases
4 #
5 # extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
6 #
7 #
8 # GDBM magic numbers
9 #  Will be maintained as part of the GDBM distribution in the future.
10 #  <downsj@teeny.org>
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
14 #
15 # Berkeley DB
16 #
17 # Ian Darwin's file /etc/magic files: big/little-endian version.
18 #
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.
22
23 0       long    0x00061561      Berkeley DB
24 >8      belong  4321
25 >>4     belong  >2              1.86
26 >>4     belong  <3              1.85
27 >>4     belong  >0              (Hash, version %d, native byte-order)
28 >8      belong  1234
29 >>4     belong  >2              1.86
30 >>4     belong  <3              1.85
31 >>4     belong  >0              (Hash, version %d, little-endian)
32
33 0       belong  0x00061561      Berkeley DB
34 >8      belong  4321
35 >>4     belong  >2              1.86
36 >>4     belong  <3              1.85
37 >>4     belong  >0              (Hash, version %d, big-endian)
38 >8      belong  1234
39 >>4     belong  >2              1.86
40 >>4     belong  <3              1.85
41 >>4     belong  >0              (Hash, version %d, native byte-order)
42
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)
49
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)
56
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)
63
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)
70
71 # From Max Bowsher.
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)
78
79 #
80 #
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
86 #
87 0       string  root\0  ROOT file
88 >4      belong  x       Version %d
89 >33     belong  x       (Compression: %d)
90
91 # XXX: Weak magic.
92 # Alex Ott <ott@jet.msk.su>
93 ## Paradox file formats
94 #2        leshort       0x0800  Paradox 
95 #>0x39    byte          3       v. 3.0 
96 #>0x39    byte          4       v. 3.5 
97 #>0x39    byte          9       v. 4.x 
98 #>0x39    byte          10      v. 5.x 
99 #>0x39    byte          11      v. 5.x 
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
111 #0      byte       0x02 
112 #>8     leshort   >0
113 #>>12   leshort    0    FoxBase 
114 #>>>0x04        lelong          0               (no records)
115 #>>>0x04        lelong          >0              (%ld records)
116 #
117 #0      byte       0x03 
118 #>8     leshort   >0
119 #>>12   leshort    0    FoxBase+, FoxPro, dBaseIII+, dBaseIV, no memo 
120 #>>>0x04        lelong          0               (no records)
121 #>>>0x04        lelong          >0              (%ld records)
122 #
123 #0      byte       0x04 
124 #>8     leshort   >0
125 #>>12   leshort    0    dBASE IV no memo file 
126 #>>>0x04        lelong          0               (no records)
127 #>>>0x04        lelong          >0              (%ld records)
128 #
129 #0      byte       0x05 
130 #>8     leshort   >0
131 #>>12   leshort    0    dBASE V no memo file 
132 #>>>0x04        lelong          0               (no records)
133 #>>>0x04        lelong          >0              (%ld records)
134 #
135 #0      byte       0x30
136 #>8     leshort   >0
137 #>>12   leshort    0    Visual FoxPro 
138 #>>>0x04        lelong          0               (no records)
139 #>>>0x04        lelong          >0              (%ld records)
140 #
141 #0      byte       0x43
142 #>8     leshort   >0
143 #>>12   leshort    0    FlagShip with memo var size 
144 #>>>0x04        lelong          0               (no records)
145 #>>>0x04        lelong          >0              (%ld records)
146 #
147 #0      byte       0x7b
148 #>8     leshort   >0
149 #>>12   leshort    0    dBASEIV with memo 
150 #>>>0x04        lelong          0               (no records)
151 #>>>0x04        lelong          >0              (%ld records)
152 #
153 #0      byte       0x83 
154 #>8     leshort   >0
155 #>>12   leshort    0    FoxBase+, dBaseIII+ with memo 
156 #>>>0x04        lelong          0               (no records)
157 #>>>0x04        lelong          >0              (%ld records)
158 #
159 #0      byte       0x8b
160 #>8     leshort   >0
161 #>>12   leshort    0    dBaseIV with memo 
162 #>>>0x04        lelong          0               (no records)
163 #>>>0x04        lelong          >0              (%ld records)
164 #
165 #0      byte       0x8e 
166 #>8     leshort   >0
167 #>>12   leshort    0    dBaseIV with SQL Table 
168 #>>>0x04        lelong          0               (no records)
169 #>>>0x04        lelong          >0              (%ld records)
170 #
171 #0      byte       0xb3
172 #>8     leshort   >0
173 #>>12   leshort    0    FlagShip with .dbt memo 
174 #>>>0x04        lelong          0               (no records)
175 #>>>0x04        lelong          >0              (%ld records)
176 #
177 #0      byte       0xf5
178 #>8     leshort   >0
179 #>>12   leshort    0    FoxPro with memo 
180 #>>>0x04        lelong          0               (no records)
181 #>>>0x04        lelong          >0              (%ld records)
182 #
183 #0      leshort         0x0006          DBase 3 index file
184
185 # MS Access database
186 4         string        Standard\ Jet\ DB       Microsoft Access Database
187
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
192
193 # SE Linux policy database
194 0       lelong  0xf97cff8c      SE Linux policy
195 >16     lelong  x               v%d
196 >20     lelong  1      MLS
197 >24     lelong  x       %d symbols
198 >28     lelong  x       %d ocons
199
200 # ICE authority file data (Wolfram Kleff)
201 2       string          ICE             ICE authority data
202
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