* Remove timevaladd() and move timevalfix() and timevalsub() to
[dragonfly.git] / contrib / file-4.12 / 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 #
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
77 #
78 0       string  root\0  ROOT file
79 >4      belong  x       Version %d
80 >33     belong  x       (Compression: %d)
81
82 # XXX: Weak magic.
83 # Alex Ott <ott@jet.msk.su>
84 ## Paradox file formats
85 #2        leshort       0x0800  Paradox 
86 #>0x39    byte          3       v. 3.0 
87 #>0x39    byte          4       v. 3.5 
88 #>0x39    byte          9       v. 4.x 
89 #>0x39    byte          10      v. 5.x 
90 #>0x39    byte          11      v. 5.x 
91 #>0x39    byte          12      v. 7.x 
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
102 #0      byte       0x02 
103 #>8     leshort   >0
104 #>>12   leshort    0    FoxBase 
105 #>>>0x04        lelong          0               (no records)
106 #>>>0x04        lelong          >0              (%ld records)
107 #
108 #0      byte       0x03 
109 #>8     leshort   >0
110 #>>12   leshort    0    FoxBase+, FoxPro, dBaseIII+, dBaseIV, no memo 
111 #>>>0x04        lelong          0               (no records)
112 #>>>0x04        lelong          >0              (%ld records)
113 #
114 #0      byte       0x04 
115 #>8     leshort   >0
116 #>>12   leshort    0    dBASE IV no memo file 
117 #>>>0x04        lelong          0               (no records)
118 #>>>0x04        lelong          >0              (%ld records)
119 #
120 #0      byte       0x05 
121 #>8     leshort   >0
122 #>>12   leshort    0    dBASE V no memo file 
123 #>>>0x04        lelong          0               (no records)
124 #>>>0x04        lelong          >0              (%ld records)
125 #
126 #0      byte       0x30
127 #>8     leshort   >0
128 #>>12   leshort    0    Visual FoxPro 
129 #>>>0x04        lelong          0               (no records)
130 #>>>0x04        lelong          >0              (%ld records)
131 #
132 #0      byte       0x43
133 #>8     leshort   >0
134 #>>12   leshort    0    FlagShip with memo var size 
135 #>>>0x04        lelong          0               (no records)
136 #>>>0x04        lelong          >0              (%ld records)
137 #
138 #0      byte       0x7b
139 #>8     leshort   >0
140 #>>12   leshort    0    dBASEIV with memo 
141 #>>>0x04        lelong          0               (no records)
142 #>>>0x04        lelong          >0              (%ld records)
143 #
144 #0      byte       0x83 
145 #>8     leshort   >0
146 #>>12   leshort    0    FoxBase+, dBaseIII+ with memo 
147 #>>>0x04        lelong          0               (no records)
148 #>>>0x04        lelong          >0              (%ld records)
149 #
150 #0      byte       0x8b
151 #>8     leshort   >0
152 #>>12   leshort    0    dBaseIV with memo 
153 #>>>0x04        lelong          0               (no records)
154 #>>>0x04        lelong          >0              (%ld records)
155 #
156 #0      byte       0x8e 
157 #>8     leshort   >0
158 #>>12   leshort    0    dBaseIV with SQL Table 
159 #>>>0x04        lelong          0               (no records)
160 #>>>0x04        lelong          >0              (%ld records)
161 #
162 #0      byte       0xb3
163 #>8     leshort   >0
164 #>>12   leshort    0    FlagShip with .dbt memo 
165 #>>>0x04        lelong          0               (no records)
166 #>>>0x04        lelong          >0              (%ld records)
167 #
168 #0      byte       0xf5
169 #>8     leshort   >0
170 #>>12   leshort    0    FoxPro with memo 
171 #>>>0x04        lelong          0               (no records)
172 #>>>0x04        lelong          >0              (%ld records)
173 #
174 #0      leshort         0x0006          DBase 3 index file
175
176 # MS Access database
177 4         string        Standard\ Jet\ DB       Microsoft Access Database
178
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
183
184 # SE Linux policy database
185 0       lelong  0xf97cff8c      SE Linux policy
186 >16     lelong  x               v%d
187 >20     lelong  1      MLS
188 >24     lelong  x       %d symbols
189 >28     lelong  x       %d ocons
190
191 # ICE authority file data (Wolfram Kleff)
192 2       string          ICE             ICE authority data
193
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