1#
2# "ar", for all kinds of archives.
3#
4# XXX - why are there multiple <ar> thingies?  Note that 0x213c6172 is
5# "!<ar", so, for new-style (4.xBSD/SVR2andup) archives, we have:
6#
7# 0	string		!<arch>		current ar archive
8# 0	long		0x213c6172	archive file
9#
10# and for SVR3.1 archives, we have:
11#
12# 0	string		\<ar>		System V Release 1 ar archive
13# 0	string		=<ar>		archive
14# 0	string		=<ar>		archive
15#
16# XXX - did Aegis really store shared libraries, breakpointed modules,
17# and absolute code program modules in the same format as new-style
18# "ar" archives?
19#
200	string		!<arch>		current ar archive
21>8	string		__.SYMDEF	random library
22>0	belong		=65538		- pre SR9.5
23>0	belong		=65539		- post SR9.5
24>0	beshort		2		- object archive
25>0	beshort		3		- shared library module
26>0	beshort		4		- debug break-pointed module
27>0	beshort		5		- absolute code program module
280	string		\<ar>		System V Release 1 ar archive
290	string		=<ar>		archive
30#
31# XXX - from "vax", which appears to collect a bunch of byte-swapped
32# thingies, to help you recognize VAX files on big-endian machines;
33# with "leshort", "lelong", and "string", that's no longer necessary....
34#
35# 0	long		0x3c61723e	VAX 5.0 archive
36#
370	long		0x213c6172	archive file
380	lelong		0177555		very old VAX archive
390	leshort		0177555		very old PDP-11 archive
40#
41# XXX - "pdp" claims that 0177545 can have an __.SYMDEF member and thus
42# be a random library (it said 0xff65 rather than 0177545).
43#
440	lelong		0177545		old VAX archive
45>8	string		__.SYMDEF	random library
460	leshort		0177545		old PDP-11 archive
47>8	string		__.SYMDEF	random library
48#
490	string		=<ar>		archive
50#
51# From "pdp":
52#
530	lelong		0x39bed		PDP-11 old archive
540	lelong		0x39bee		PDP-11 4.0 archive
55#
560	string		-h-		Software Tools format archive text
57# "arc" archiver
580	byte		26		'arc' archive
59>1	byte		0		(empty)
60>1	byte		1		(old format)
61# Rahul Dhesi's zoo archive format, from keith@cerberus.uchicago.edu.
6220	long		0xdca7c4fd	Rahul Dhesi's "zoo" archive
63# ZIP archiver
640	string		PK		zip archive file
65>4	byte		x		- version
66>4	byte		10		1.0
67>4	byte		20		2.0
68
692	string		-lh		LHarc archive data
70>6	byte		x		type %c
71>20	byte		x		- header level %d
72
73# From: <u31b3hs@pool.informatik.rwth-aachen.de> (Michael Haardt)
742	string		-lh0-		Lharc 1.x archive
752	string		-lh1-		Lharc 1.x archive
762	string		-lz4-		Lharc 1.x archive
772	string		-lz5-		Lharc 1.x archive
782	string		-lzs-		LHa 2.x? archive [lzs]
792	string		-lh -		LHa 2.x? archive [lh ]
802	string		-lhd-		LHa 2.x? archive [lhd]
812	string		-lh2-		LHa 2.x? archive [lh2]
822	string		-lh3-		LHa 2.x? archive [lh3]
832	string		-lh4-		LHa 2.x? archive [lh4]
842	string		-lh5-		LHa (2.x) archive
85
86# ARJ archive data from jason@jarthur.Claremont.EDU
870	leshort		0xea60		ARJ archive data
88>5	byte		x		- version %d,
89>8	byte		>0		flags:
90>>8	byte		&0x04		multi-volume,
91>>8	byte		&0x10		slash switched,
92>>8	byte		&0x20		backup,
93>34	string		x		original name: %s,
94>7	byte		0		os: MS/DOS
95>7	byte		1		os: PRIMOS
96>7	byte		2		os: UNIX
97>7	byte		3		os: Amiga
98>7	byte		4		os: Macintosh
99>7	byte		5		os: OS/2
100>7	byte		6		os: Apple ][ GS
101>7	byte		7		os: Atari ST
102>7	byte		8		os: NeXT
103>7	byte		9		os: VAX/VMS
104>3	byte		>0		%d]
105