7442072c9d71b0b707353117c759dc181f6d035c
[dragonfly.git] / contrib / file-4 / magic / Magdir / archive
1
2 #------------------------------------------------------------------------------
3 # archive:  file(1) magic for archive formats (see also "msdos" for self-
4 #           extracting compressed archives)
5 #
6 # cpio, ar, arc, arj, hpack, lha/lharc, rar, squish, uc2, zip, zoo, etc.
7 # pre-POSIX "tar" archives are handled in the C code.
8
9 # POSIX tar archives
10 257     string          ustar\0         POSIX tar archive
11 257     string          ustar\040\040\0 GNU tar archive
12
13 # cpio archives
14 #
15 # Yes, the top two "cpio archive" formats *are* supposed to just be "short".
16 # The idea is to indicate archives produced on machines with the same
17 # byte order as the machine running "file" with "cpio archive", and
18 # to indicate archives produced on machines with the opposite byte order
19 # from the machine running "file" with "byte-swapped cpio archive".
20 #
21 # The SVR4 "cpio(4)" hints that there are additional formats, but they
22 # are defined as "short"s; I think all the new formats are
23 # character-header formats and thus are strings, not numbers.
24 0       short           070707          cpio archive
25 0       short           0143561         byte-swapped cpio archive
26 0       string          070707          ASCII cpio archive (pre-SVR4 or odc)
27 0       string          070701          ASCII cpio archive (SVR4 with no CRC)
28 0       string          070702          ASCII cpio archive (SVR4 with CRC)
29
30 # Debian package (needs to go before regular portable archives)
31 #
32 0       string          =!<arch>\ndebian
33 >8      string          debian-split    part of multipart Debian package
34 >8      string          debian-binary   Debian binary package
35 >68     string          >\0             (format %s)
36 >81     string          bz2             \b, uses bzip2 compression
37 >84     string          gz              \b, uses gzip compression
38 #>136   ledate          x               created: %s
39
40 # other archives
41 0       long            0177555         very old archive
42 0       short           0177555         very old PDP-11 archive
43 0       long            0177545         old archive
44 0       short           0177545         old PDP-11 archive
45 0       long            0100554         apl workspace
46 0       string          =<ar>           archive
47
48 # MIPS archive (needs to go before regular portable archives)
49 #
50 0       string  =!<arch>\n__________E   MIPS archive
51 >20     string  U                       with MIPS Ucode members
52 >21     string  L                       with MIPSEL members
53 >21     string  B                       with MIPSEB members
54 >19     string  L                       and an EL hash table
55 >19     string  B                       and an EB hash table
56 >22     string  X                       -- out of date
57
58 0       string          -h-             Software Tools format archive text
59
60 #
61 # XXX - why are there multiple <ar> thingies?  Note that 0x213c6172 is
62 # "!<ar", so, for new-style (4.xBSD/SVR2andup) archives, we have:
63 #
64 # 0     string          =!<arch>                current ar archive
65 # 0     long            0x213c6172      archive file
66 #
67 # and for SVR1 archives, we have:
68 #
69 # 0     string          \<ar>           System V Release 1 ar archive
70 # 0     string          =<ar>           archive
71 #
72 # XXX - did Aegis really store shared libraries, breakpointed modules,
73 # and absolute code program modules in the same format as new-style
74 # "ar" archives?
75 #
76 0       string          =!<arch>                current ar archive
77 >8      string          __.SYMDEF       random library
78 >0      belong          =65538          - pre SR9.5
79 >0      belong          =65539          - post SR9.5
80 >0      beshort         2               - object archive
81 >0      beshort         3               - shared library module
82 >0      beshort         4               - debug break-pointed module
83 >0      beshort         5               - absolute code program module
84 0       string          \<ar>           System V Release 1 ar archive
85 0       string          =<ar>           archive
86 #
87 # XXX - from "vax", which appears to collect a bunch of byte-swapped
88 # thingies, to help you recognize VAX files on big-endian machines;
89 # with "leshort", "lelong", and "string", that's no longer necessary....
90 #
91 0       belong          0x65ff0000      VAX 3.0 archive
92 0       belong          0x3c61723e      VAX 5.0 archive
93 #
94 0       long            0x213c6172      archive file
95 0       lelong          0177555         very old VAX archive
96 0       leshort         0177555         very old PDP-11 archive
97 #
98 # XXX - "pdp" claims that 0177545 can have an __.SYMDEF member and thus
99 # be a random library (it said 0xff65 rather than 0177545).
100 #
101 0       lelong          0177545         old VAX archive
102 >8      string          __.SYMDEF       random library
103 0       leshort         0177545         old PDP-11 archive
104 >8      string          __.SYMDEF       random library
105 #
106 # From "pdp" (but why a 4-byte quantity?)
107 #
108 0       lelong          0x39bed         PDP-11 old archive
109 0       lelong          0x39bee         PDP-11 4.0 archive
110
111 # ARC archiver, from Daniel Quinlan (quinlan@yggdrasil.com)
112 #
113 # The first byte is the magic (0x1a), byte 2 is the compression type for
114 # the first file (0x01 through 0x09), and bytes 3 to 15 are the MS-DOS
115 # filename of the first file (null terminated).  Since some types collide
116 # we only test some types on basis of frequency: 0x08 (83%), 0x09 (5%),
117 # 0x02 (5%), 0x03 (3%), 0x04 (2%), 0x06 (2%).  0x01 collides with terminfo.
118 0       lelong&0x8080ffff       0x0000081a      ARC archive data, dynamic LZW
119 0       lelong&0x8080ffff       0x0000091a      ARC archive data, squashed
120 0       lelong&0x8080ffff       0x0000021a      ARC archive data, uncompressed
121 0       lelong&0x8080ffff       0x0000031a      ARC archive data, packed
122 0       lelong&0x8080ffff       0x0000041a      ARC archive data, squeezed
123 0       lelong&0x8080ffff       0x0000061a      ARC archive data, crunched
124 # [JW] stuff taken from idarc, obviously ARC successors:
125 0       lelong&0x8080ffff       0x00000a1a      PAK archive data
126 0       lelong&0x8080ffff       0x0000141a      ARC+ archive data
127 0       lelong&0x8080ffff       0x0000481a      HYP archive data
128
129 # Acorn archive formats (Disaster prone simpleton, m91dps@ecs.ox.ac.uk)
130 # I can't create either SPARK or ArcFS archives so I have not tested this stuff
131 # [GRR:  the original entries collide with ARC, above; replaced with combined
132 #  version (not tested)]
133 #0      byte            0x1a            RISC OS archive
134 #>1     string          archive         (ArcFS format)
135 #0      string          \032archive     RISC OS archive (ArcFS format)
136 0       string          \032            RISC OS archive (spark format)
137 0       string          Archive\000     RISC OS archive (ArcFS format)
138
139 # All these were taken from idarc, many could not be verified. Unfortunately,
140 # there were many low-quality sigs, i.e. easy to trigger false positives.
141 # Please notify me of any real-world fishy/ambiguous signatures and I'll try
142 # to get my hands on the actual archiver and see if I find something better. [JW]
143 # probably many can be enhanced by finding some 0-byte or control char near the start
144
145 # idarc calls this Crush/Uncompressed... *shrug*
146 0       string  CRUSH Crush archive data
147 # Squeeze It (.sqz)
148 0       string  HLSQZ Squeeze It archive data
149 # SQWEZ
150 0       string  SQWEZ SQWEZ archive data
151 # HPack (.hpk)
152 0       string  HPAK HPack archive data
153 # HAP
154 0       string  \x91\x33HF HAP archive data
155 # MD/MDCD
156 0       string  MDmd MDCD archive data
157 # LIM
158 0       string  LIM\x1a LIM archive data
159 # SAR
160 3       string  LH5 SAR archive data
161 # BSArc/BS2
162 0       string  \212\3SB \0 BSArc/BS2 archive data
163 # MAR
164 2       string  =-ah MAR archive data
165 # ACB
166 0       belong&0x00f800ff       0x00800000 ACB archive data
167 # CPZ
168 # TODO, this is what idarc says: 0      string  \0\0\0 CPZ archive data
169 # JRC
170 0       string  JRchive JRC archive data
171 # Quantum
172 0       string  DS\0 Quantum archive data
173 # ReSOF
174 0       string  PK\3\6 ReSOF archive data
175 # QuArk
176 0       string  7\4 QuArk archive data
177 # YAC
178 14      string  YC YAC archive data
179 # X1
180 0       string  X1 X1 archive data
181 0       string  XhDr X1 archive data
182 # CDC Codec (.dqt)
183 0       belong&0xffffe000       0x76ff2000 CDC Codec archive data
184 # AMGC
185 0       string  \xad6" AMGC archive data
186 # NuLIB
187 0       string  NõFélå NuLIB archive data
188 # PakLeo
189 0       string  LEOLZW PAKLeo archive data
190 # ChArc
191 0       string  SChF ChArc archive data
192 # PSA
193 0       string  PSA PSA archive data
194 # CrossePAC
195 0       string  DSIGDCC CrossePAC archive data
196 # Freeze
197 0       string  \x1f\x9f\x4a\x10\x0a Freeze archive data
198 # KBoom
199 0       string  ¨MP¨ KBoom archive data
200 # NSQ, must go after CDC Codec
201 0       string  \x76\xff NSQ archive data
202 # DPA
203 0       string  Dirk\ Paehl DPA archive data
204 # BA
205 # TODO: idarc says "bytes 0-2 == bytes 3-5"
206 # TTComp
207 0       string  \0\6 TTComp archive data
208 # ESP, could this conflict with Easy Software Products' (e.g.ESP ghostscript) documentation?
209 0       string  ESP ESP archive data
210 # ZPack
211 0       string  \1ZPK\1 ZPack archive data
212 # Sky
213 0       string  \xbc\x40 Sky archive data
214 # UFA
215 0       string  UFA UFA archive data
216 # Dry
217 0       string  =-H2O DRY archive data
218 # FoxSQZ
219 0       string  FOXSQZ FoxSQZ archive data
220 # AR7
221 0       string  ,AR7 AR7 archive data
222 # PPMZ
223 0       string  PPMZ PPMZ archive data
224 # MS Compress
225 4       string  \x88\xf0\x27 MS Compress archive data
226 # MP3 (archiver, not lossy audio compression)
227 0       string  MP3\x1a MP3-Archiver archive data
228 # ZET
229 0       string  OZÝ ZET archive data
230 # TSComp
231 0       string  \x65\x5d\x13\x8c\x08\x01\x03\x00 TSComp archive data
232 # ARQ
233 0       string  gW\4\1 ARQ archive data
234 # Squash
235 3       string  OctSqu Squash archive data
236 # Terse
237 0       string  \5\1\1\0 Terse archive data
238 # PUCrunch
239 0       string  \x01\x08\x0b\x08\xef\x00\x9e\x32\x30\x36\x31 PUCrunch archive data
240 # UHarc
241 0       string  UHA UHarc archive data
242 # ABComp
243 0       string  \2AB ABComp archive data
244 0       string  \3AB2 ABComp archive data
245 # CMP
246 0       string  CO\0 CMP archive data
247 # Splint
248 0       string  \x93\xb9\x06 Splint archive data
249 # InstallShield
250 0       string   \x13\x5d\x65\x8c InstallShield Z archive Data
251 # Gather
252 1       string  GTH Gather archive data
253 # BOA
254 0       string  BOA BOA archive data
255 # RAX
256 0       string  ULEB\xa RAX archive data
257 # Xtreme
258 0       string  ULEB\0 Xtreme archive data
259 # Pack Magic
260 0       string  @â\1\0 Pack Magic archive data
261 # BTS
262 0       belong&0xfeffffff       0x1a034465 BTS archive data
263 # ELI 5750
264 0       string  Ora\  ELI 5750 archive data
265 # QFC
266 0       string  \x1aFC\x1a QFC archive data
267 0       string  \x1aQF\x1a QFC archive data
268 # PRO-PACK
269 0       string  RNC PRO-PACK archive data
270 # 777
271 0       string  777 777 archive data
272 # LZS221
273 0       string  sTaC LZS221 archive data
274 # HPA
275 0       string  HPA HPA archive data
276 # Arhangel
277 0       string  LG Arhangel archive data
278 # EXP1, uses bzip2
279 0       string  0123456789012345BZh EXP1 archive data
280 # IMP
281 0       string  IMP\xa IMP archive data
282 # NRV
283 0       string  \x00\x9E\x6E\x72\x76\xFF NRV archive data
284 # Squish
285 0       string  \x73\xb2\x90\xf4 Squish archive data
286 # Par
287 0       string  PHILIPP Par archive data
288 0       string  PAR Par archive data
289 # HIT
290 0       string  UB HIT archive data
291 # SBX
292 0       belong&0xfffff000       0x53423000 SBX archive data
293 # NaShrink
294 0       string  NSK NaShrink archive data
295 # SAPCAR
296 0       string  #\ CAR\ archive\ header SAPCAR archive data
297 0       string  CAR\ 2.00RG SAPCAR archive data
298 # Disintegrator
299 0       string  DST Disintegrator archive data
300 # ASD
301 0       string  ASD ASD archive data
302 # InstallShield CAB
303 0       string  ISc( InstallShield CAB
304 # TOP4
305 0       string  T4\x1a TOP4 archive data
306 # BatComp left out: sig looks like COM executable
307 # so TODO: get real 4dos batcomp file and find sig
308 # BlakHole
309 0       string  BH\5\7 BlakHole archive data
310 # BIX
311 0       string  BIX0 BIX archive data
312 # ChiefLZA
313 0       string  ChfLZ ChiefLZA archive data
314 # Blink
315 0       string  Blink Blink archive data
316 # Logitech Compress
317 0       string  \xda\xfa Logitech Compress archive data
318 # ARS-Sfx (FIXME: really a SFX? then goto COM/EXE)
319 1       string  (C)\ STEPANYUK ARS-Sfx archive data
320 # AKT/AKT32
321 0       string  AKT32 AKT32 archive data
322 0       string  AKT AKT archive data
323 # NPack
324 0       string  MSTSM NPack archive data
325 # PFT
326 0       string  \0\x50\0\x14 PFT archive data
327 # SemOne
328 0       string  SEM SemOne archive data
329 # PPMD
330 0       string  \x8f\xaf\xac\x84 PPMD archive data
331 # FIZ
332 0       string  FIZ FIZ archive data
333 # MSXiE
334 0       belong&0xfffff0f0       0x4d530000 MSXiE archive data
335 # DeepFreezer
336 0       belong&0xfffffff0       0x797a3030 DeepFreezer archive data
337 # DC
338 0       string  =<DC- DC archive data
339 # TPac
340 0       string  \4TPAC\3 TPac archive data
341 # Ai
342 0       string  Ai\1\1\0 Ai archive data
343 0       string  Ai\1\0\0 Ai archive data
344 # Ai32
345 0       string  Ai\2\0 Ai32 archive data
346 0       string  Ai\2\1 Ai32 archive data
347 # SBC
348 0       string  SBC SBC archive data
349 # Ybs
350 0       string  YBS Ybs archive data
351 # DitPack
352 0       string  \x9e\0\0 DitPack archive data
353 # DMS
354 0       string  DMS! DMS archive data
355 # EPC
356 0       string  \x8f\xaf\xac\x8c EPC archive data
357 # VSARC
358 0       string  VS\x1a VSARC archive data
359 # PDZ
360 0       string  PDZ PDZ archive data
361 # ReDuq
362 0       string  rdqx ReDuq archive data
363 # GCA
364 0       string  GCAX GCA archive data
365 # PPMN
366 0       string  pN PPMN archive data
367 # WinImage
368 3       string  WINIMAGE WinImage archive data
369 # Compressia
370 0       string  CMP0CMP Compressia archive data
371 # UHBC
372 0       string  UHB UHBC archive data
373 # WinHKI
374 0       string  \x61\x5C\x04\x05 WinHKI archive data
375 # WWPack data file
376 0       string  WWP WWPack archive data
377 # BSN (BSA, PTS-DOS)
378 0       string  \xffBSG BSN archive data
379 1       string  \xffBSG BSN archive data
380 3       string  \xffBSG BSN archive data
381 1       string  \0\xae\2 BSN archive data
382 1       string  \0\xae\3 BSN archive data
383 1       string  \0\xae\7 BSN archive data
384 # AIN
385 0       string  \x33\x18 AIN archive data
386 0       string  \x33\x17 AIN archive data
387 # XPA32
388 0       string  xpa\0\1 XPA32 archive data
389 # SZip (TODO: doesn't catch all versions)
390 0       string  SZ\x0a\4 SZip archive data
391 # XPack DiskImage
392 0       string  jm XPack DiskImage archive data
393 # XPack Data
394 0       string  xpa XPack archive data
395 # XPack Single Data
396 0       string  Í\ jm XPack single archive data
397
398 # TODO: missing due to unknown magic/magic at end of file:
399 #DWC
400 #ARG
401 #ZAR
402 #PC/3270
403 #InstallIt
404 #RKive
405 #RK
406 #XPack Diskimage
407
408 # These were inspired by idarc, but actually verified
409 # Dzip archiver (.dz)
410 0       string  DZ Dzip archive data
411 >2      byte    x \b, version %i
412 >3      byte    x \b.%i
413 # ZZip archiver (.zz)
414 0       string  ZZ\ \0\0 ZZip archive data
415 0       string  ZZ0 ZZip archive data
416 # PAQ archiver (.paq)
417 0       string  \xaa\x40\x5f\x77\x1f\xe5\x82\x0d PAQ archive data
418 0       string  PAQ PAQ archive data
419 >3      byte&0xf0       0x30
420 >>3     byte    x (v%c)
421 # JAR archiver (.j), this is the successor to ARJ, not Java's JAR (which is essentially ZIP)
422 0xe     string  \x1aJar\x1b JAR (ARJ Software, Inc.) archive data
423 0       string  JARCS JAR (ARJ Software, Inc.) archive data
424
425 # ARJ archiver (jason@jarthur.Claremont.EDU)
426 0       leshort         0xea60          ARJ archive data
427 >5      byte            x               \b, v%d,
428 >8      byte            &0x04           multi-volume,
429 >8      byte            &0x10           slash-switched,
430 >8      byte            &0x20           backup,
431 >34     string          x               original name: %s,
432 >7      byte            0               os: MS-DOS
433 >7      byte            1               os: PRIMOS
434 >7      byte            2               os: Unix
435 >7      byte            3               os: Amiga
436 >7      byte            4               os: Macintosh
437 >7      byte            5               os: OS/2
438 >7      byte            6               os: Apple ][ GS
439 >7      byte            7               os: Atari ST
440 >7      byte            8               os: NeXT
441 >7      byte            9               os: VAX/VMS
442 >3      byte            >0              %d]
443 # [JW] idarc says this is also possible
444 2       leshort         0xea60          ARJ archive data
445
446 # HA archiver (Greg Roelofs, newt@uchicago.edu)
447 # This is a really bad format. A file containing HAWAII will match this...
448 #0      string          HA              HA archive data,
449 #>2     leshort         =1              1 file,
450 #>2     leshort         >1              %u files,
451 #>4     byte&0x0f       =0              first is type CPY
452 #>4     byte&0x0f       =1              first is type ASC
453 #>4     byte&0x0f       =2              first is type HSC
454 #>4     byte&0x0f       =0x0e           first is type DIR
455 #>4     byte&0x0f       =0x0f           first is type SPECIAL
456 # suggestion: at least identify small archives (<1024 files)
457 0  belong&0xffff00fc 0x48410000 HA archive data
458 >2      leshort         =1              1 file,
459 >2      leshort         >1              %u files,
460 >4      byte&0x0f       =0              first is type CPY
461 >4      byte&0x0f       =1              first is type ASC
462 >4      byte&0x0f       =2              first is type HSC
463 >4      byte&0x0f       =0x0e           first is type DIR
464 >4      byte&0x0f       =0x0f           first is type SPECIAL
465
466 # HPACK archiver (Peter Gutmann, pgut1@cs.aukuni.ac.nz)
467 0       string          HPAK            HPACK archive data
468
469 # JAM Archive volume format, by Dmitry.Kohmanyuk@UA.net
470 0       string          \351,\001JAM\           JAM archive,
471 >7      string          >\0                     version %.4s
472 >0x26   byte            =0x27                   -
473 >>0x2b  string          >\0                     label %.11s,
474 >>0x27  lelong          x                       serial %08x,
475 >>0x36  string          >\0                     fstype %.8s
476
477 # LHARC/LHA archiver (Greg Roelofs, newt@uchicago.edu)
478 2       string          -lh0-           LHarc 1.x/ARX archive data [lh0]
479 2       string          -lh1-           LHarc 1.x/ARX archive data [lh1]
480 2       string          -lz4-           LHarc 1.x archive data [lz4]
481 2       string          -lz5-           LHarc 1.x archive data [lz5]
482 #       [never seen any but the last; -lh4- reported in comp.compression:]
483 2       string          -lzs-           LHa/LZS archive data [lzs]
484 2       string          -lh\40-         LHa 2.x? archive data [lh ]
485 2       string          -lhd-           LHa 2.x? archive data [lhd]
486 2       string          -lh2-           LHa 2.x? archive data [lh2]
487 2       string          -lh3-           LHa 2.x? archive data [lh3]
488 2       string          -lh4-           LHa (2.x) archive data [lh4]
489 2       string          -lh5-           LHa (2.x) archive data [lh5]
490 2       string          -lh6-           LHa (2.x) archive data [lh6]
491 2       string          -lh7-           LHa (2.x)/LHark archive data [lh7]
492 >20     byte            x               - header level %d
493 # taken from idarc [JW]
494 2   string      -lZ         PUT archive data
495 2   string      -lz         LZS archive data 
496 2   string      -sw1-       Swag archive data
497
498 # RAR archiver (Greg Roelofs, newt@uchicago.edu)
499 0       string          Rar!            RAR archive data,
500 >44     byte            x               v%0x,
501 >35     byte            0               os: MS-DOS
502 >35     byte            1               os: OS/2
503 >35     byte            2               os: Win32
504 >35     byte            3               os: Unix
505 # some old version? idarc says:
506 0   string      RE\x7e\x5e  RAR archive data
507
508 # SQUISH archiver (Greg Roelofs, newt@uchicago.edu)
509 0       string          SQSH            squished archive data (Acorn RISCOS)
510
511 # UC2 archiver (Greg Roelofs, newt@uchicago.edu)
512 # [JW] see exe section for self-extracting version
513 0       string          UC2\x1a         UC2 archive data
514
515 # ZIP archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu)
516 0       string          PK\003\004      Zip archive data
517 >4      byte            0x09            \b, at least v0.9 to extract
518 >4      byte            0x0a            \b, at least v1.0 to extract
519 >4      byte            0x0b            \b, at least v1.1 to extract
520 >4      byte            0x14            \b, at least v2.0 to extract
521
522 # Zoo archiver
523 20      lelong          0xfdc4a7dc      Zoo archive data
524 >4      byte            >48             \b, v%c.
525 >>6     byte            >47             \b%c
526 >>>7    byte            >47             \b%c
527 >32     byte            >0              \b, modify: v%d
528 >>33    byte            x               \b.%d+
529 >42     lelong          0xfdc4a7dc      \b,
530 >>70    byte            >0              extract: v%d
531 >>>71   byte            x               \b.%d+
532
533 # Shell archives
534 10      string          #\ This\ is\ a\ shell\ archive  shell archive text
535
536 #
537 # LBR. NB: May conflict with the questionable 
538 #          "binary Computer Graphics Metafile" format.
539 #
540 0       string  \0\ \ \ \ \ \ \ \ \ \ \ \0\0    LBR archive data
541 #
542 # PMA (CP/M derivative of LHA)
543 #
544 2       string          -pm0-           PMarc archive data [pm0]
545 2       string          -pm1-           PMarc archive data [pm1]
546 2       string          -pm2-           PMarc archive data [pm2]
547 2       string          -pms-           PMarc SFX archive (CP/M, DOS)
548 5       string          -pc1-           PopCom compressed executable (CP/M)
549
550 # From Rafael Laboissiere <rafael@laboissiere.net>
551 # The Project Revision Control System (see
552 # http://prcs.sourceforge.net) generates a packaged project
553 # file which is recognized by the following entry: 
554 0       leshort         0xeb81  PRCS packaged project
555
556 # Microsoft cabinets 
557 # by David Necas (Yeti) <yeti@physics.muni.cz>
558 #0      string  MSCF\0\0\0\0    Microsoft cabinet file data,
559 #>25    byte    x               v%d
560 #>24    byte    x               \b.%d
561 # MPi: All CABs have version 1.3, so this is pointless.
562 # Better magic in debian-additions.
563
564 # GTKtalog catalogs 
565 # by David Necas (Yeti) <yeti@physics.muni.cz>
566 4       string  gtktalog\       GTKtalog catalog data,
567 >13     string  3               version 3
568 >>14    beshort 0x677a          (gzipped)
569 >>14    beshort !0x677a         (not gzipped)
570 >13     string  >3              version %s
571
572 ############################################################################
573 # Parity archive reconstruction file, the 'par' file format now used on Usenet.
574 0       string          PAR\0   PARity archive data
575 >48     leshort         =0      - Index file
576 >48     leshort         >0      - file number %d
577
578 # Felix von Leitner <felix-file@fefe.de>
579 0       string  d8:announce     BitTorrent file
580
581 # Atari MSA archive - Teemu Hukkanen <tjhukkan@iki.fi>
582 0       beshort 0x0e0f          Atari MSA archive data
583 >2      beshort x               \b, %d sectors per track
584 >4      beshort 0               \b, 1 sided
585 >4      beshort 1               \b, 2 sided
586 >6      beshort x               \b, starting track: %d
587 >8      beshort x               \b, ending track: %d
588
589 # Alternate ZIP string (amc@arwen.cs.berkeley.edu)
590 0       string  PK00PK\003\004  Zip archive data
591
592 # ACE archive (from http://www.wotsit.org/download.asp?f=ace)
593 # by Stefan `Sec` Zehl <sec@42.org>
594 7       string          **ACE**         ACE archive data
595 >15     byte    >0              version %d
596 >16     byte    =0x00           \b, from MS-DOS
597 >16     byte    =0x01           \b, from OS/2
598 >16     byte    =0x02           \b, from Win/32
599 >16     byte    =0x03           \b, from Unix
600 >16     byte    =0x04           \b, from MacOS
601 >16     byte    =0x05           \b, from WinNT
602 >16     byte    =0x06           \b, from Primos
603 >16     byte    =0x07           \b, from AppleGS
604 >16     byte    =0x08           \b, from Atari
605 >16     byte    =0x09           \b, from Vax/VMS
606 >16     byte    =0x0A           \b, from Amiga
607 >16     byte    =0x0B           \b, from Next
608 >14     byte    x               \b, version %d to extract
609 >5      leshort &0x0080         \b, multiple volumes,
610 >>17    byte    x               \b (part %d),
611 >5      leshort &0x0002         \b, contains comment
612 >5      leshort &0x0200         \b, sfx
613 >5      leshort &0x0400         \b, small dictionary
614 >5      leshort &0x0800         \b, multi-volume
615 >5      leshort &0x1000         \b, contains AV-String
616 >>30    string\x16*UNREGISTERED\x20VERSION*     (unregistered)
617 >5      leshort &0x2000         \b, with recovery record
618 >5      leshort &0x4000         \b, locked
619 >5      leshort &0x8000         \b, solid
620 # Date in MS-DOS format (whatever that is)
621 #>18    lelong  x               Created on
622
623 # sfArk : compression program for Soundfonts (sf2) by Dirk Jagdmann
624 # <doj@cubic.org>
625 0x1A    string  sfArk           sfArk compressed Soundfont
626 >0x15   string  2
627 >>0x1   string  >\0             Version %s
628 >>0x2A  string  >\0             : %s
629
630 # DR-DOS 7.03 Packed File *.??_
631 0       string  Packed\ File\  Personal         NetWare Packed File
632 >12     string  x                               \b, was "%.12s"
633
634 # EET archive
635 # From: Tilman Sauerbeck <tilman@code-monkey.de>
636 0       belong  0x1ee7ff00      EET archive