xref: /onnv-gate/usr/src/cmd/file/magic (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#
2*0Sstevel@tonic-gate# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*0Sstevel@tonic-gate# Use is subject to license terms.
4*0Sstevel@tonic-gate#
5*0Sstevel@tonic-gate# CDDL HEADER START
6*0Sstevel@tonic-gate#
7*0Sstevel@tonic-gate# The contents of this file are subject to the terms of the
8*0Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
9*0Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
10*0Sstevel@tonic-gate# with the License.
11*0Sstevel@tonic-gate#
12*0Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13*0Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
14*0Sstevel@tonic-gate# See the License for the specific language governing permissions
15*0Sstevel@tonic-gate# and limitations under the License.
16*0Sstevel@tonic-gate#
17*0Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
18*0Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19*0Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
20*0Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
21*0Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
22*0Sstevel@tonic-gate#
23*0Sstevel@tonic-gate# CDDL HEADER END
24*0Sstevel@tonic-gate#
25*0Sstevel@tonic-gate#ident	"%Z%%M%	%I%	%E% SMI"
26*0Sstevel@tonic-gate#
27*0Sstevel@tonic-gate# This file contains the dictionary of file format identifiers (magic strings)
28*0Sstevel@tonic-gate# used by file(1).  The fields of this file are as follows:
29*0Sstevel@tonic-gate#
30*0Sstevel@tonic-gate# (1) byte offset
31*0Sstevel@tonic-gate# (2) value type
32*0Sstevel@tonic-gate# (3) optional operator (= by default)
33*0Sstevel@tonic-gate# (4) value to match (numeric or string)
34*0Sstevel@tonic-gate# (5) string to be printed
35*0Sstevel@tonic-gate#
36*0Sstevel@tonic-gate# Numeric values may be decimal, octal, or hex.  Also note that the last string
37*0Sstevel@tonic-gate# may have one printf format specifier.  The '>' in occassional column 1's is
38*0Sstevel@tonic-gate# magic: it forces file(1) to continue scanning and matching additional lines.
39*0Sstevel@tonic-gate# The first line afterwards not so marked terminates the search.
40*0Sstevel@tonic-gate#
41*0Sstevel@tonic-gate# The entries for ELF are not needed anymore, as file(1) now uses the elf(3ELF)
42*0Sstevel@tonic-gate# routines to look at ELF files.  They remain, commented out, for reference.
43*0Sstevel@tonic-gate#
44*0Sstevel@tonic-gate#0	string		\177ELF		ELF
45*0Sstevel@tonic-gate#>4	byte		1		32-bit
46*0Sstevel@tonic-gate#>5	byte		1		LSB
47*0Sstevel@tonic-gate#>5	byte		2		MSB
48*0Sstevel@tonic-gate#>16	short		0		unknown type
49*0Sstevel@tonic-gate#>16	short		1		relocatable
50*0Sstevel@tonic-gate#>16	short		2		executable
51*0Sstevel@tonic-gate#>16	short		3		dynamic lib
52*0Sstevel@tonic-gate#>16	short		4		core file
53*0Sstevel@tonic-gate#>18	short		0		unknown machine
54*0Sstevel@tonic-gate#>18	short		1		WE32100
55*0Sstevel@tonic-gate#>18	short		2		SPARC
56*0Sstevel@tonic-gate#>18	short		3		80386
57*0Sstevel@tonic-gate#>18	short		4		M68000
58*0Sstevel@tonic-gate#>18	short		5		M88000
59*0Sstevel@tonic-gate#>18	short		6		i80486
60*0Sstevel@tonic-gate#>18	short		7		i860
61*0Sstevel@tonic-gate#>18	short		8		RS3000_BE
62*0Sstevel@tonic-gate#>18	short		9		UNKNOWN
63*0Sstevel@tonic-gate#>18	short		10		RS3000_LE
64*0Sstevel@tonic-gate#>18	short		11		RS6000
65*0Sstevel@tonic-gate#>18	short		12		UNKNOWN
66*0Sstevel@tonic-gate#>18	short		13		UNKNOWN
67*0Sstevel@tonic-gate#>18	short		14		UNKNOWN
68*0Sstevel@tonic-gate#>18	short		15		PA_RISC
69*0Sstevel@tonic-gate#>18	short		16		nCUBE
70*0Sstevel@tonic-gate#>18	short		17		VPP500
71*0Sstevel@tonic-gate#>18	short		18		SPARC32PLUS
72*0Sstevel@tonic-gate#>18	short		19		UNKNOWN
73*0Sstevel@tonic-gate#>18	short		20		PowerPC
74*0Sstevel@tonic-gate#>20	long		1		Version 1
75*0Sstevel@tonic-gate#>36	long		1		MAU Required
76*0Sstevel@tonic-gate257	string		ustar		USTAR tar archive
77*0Sstevel@tonic-gate>156	byte		88		extended format
78*0Sstevel@tonic-gate0	short		070701		cpio archive
79*0Sstevel@tonic-gate0	string		070701		ASCII cpio archive
80*0Sstevel@tonic-gate0	short		070702		cpio archive - CRC header
81*0Sstevel@tonic-gate0	string		070702		ASCII cpio archive - CRC header
82*0Sstevel@tonic-gate0	short		070707		cpio archive - CHR (-c) header
83*0Sstevel@tonic-gate0	string		070707		ASCII cpio archive - CHR (-c) header
84*0Sstevel@tonic-gate0	long		0177555		obsolete ar archive
85*0Sstevel@tonic-gate0	short		0177545		pdp11/pre System V ar archive
86*0Sstevel@tonic-gate0	long		0100554		apl workspace
87*0Sstevel@tonic-gate0	short		017037		packed data
88*0Sstevel@tonic-gate0	string		<ar>		System V Release 1 ar archive
89*0Sstevel@tonic-gate0	string		!<arch>		current ar archive
90*0Sstevel@tonic-gate0	short		0407		pdp11/pre System V vax executable
91*0Sstevel@tonic-gate>8	ushort		>0		not stripped
92*0Sstevel@tonic-gate>15	ubyte		>0		- version %ld
93*0Sstevel@tonic-gate0	short		0401		unix-rt ldp
94*0Sstevel@tonic-gate0	short		0405		pdp11 overlay
95*0Sstevel@tonic-gate0	short		0410		pdp11/pre System V vax pure executable
96*0Sstevel@tonic-gate>8	ushort		>0		not stripped
97*0Sstevel@tonic-gate>15	ubyte		>0		- version %ld
98*0Sstevel@tonic-gate0	short		0411		pdp11 separate I&D
99*0Sstevel@tonic-gate>8	ushort		>0		not stripped
100*0Sstevel@tonic-gate>15	ubyte		>0		- version %ld
101*0Sstevel@tonic-gate0	short		015001		Compiled Terminfo Entry
102*0Sstevel@tonic-gate# little-endian entry
103*0Sstevel@tonic-gate0	short		0432		Compiled Terminfo Entry
104*0Sstevel@tonic-gate0	short		0433		Curses screen image
105*0Sstevel@tonic-gate0	short		0434		Curses screen image
106*0Sstevel@tonic-gate0	short		0437		pdp11 kernel overlay
107*0Sstevel@tonic-gate0	short		0570		vax executable
108*0Sstevel@tonic-gate>12	long		>0		not stripped
109*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
110*0Sstevel@tonic-gate0	short		0575		vax pure executable
111*0Sstevel@tonic-gate>12	long		>0		not stripped
112*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
113*0Sstevel@tonic-gate0	short		0502		basic-16 executable
114*0Sstevel@tonic-gate>12	long		>0		not stripped
115*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
116*0Sstevel@tonic-gate0	short		0503		basic-16 executable (TV)
117*0Sstevel@tonic-gate>12	long		>0		not stripped
118*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
119*0Sstevel@tonic-gate0	short		0510		x86 executable
120*0Sstevel@tonic-gate>12	long		>0		not stripped
121*0Sstevel@tonic-gate0	short		0511		x86 executable (TV)
122*0Sstevel@tonic-gate>12	long		>0		not stripped
123*0Sstevel@tonic-gate0	short		0550		3b20 executable
124*0Sstevel@tonic-gate>12	long		>0		not stripped
125*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
126*0Sstevel@tonic-gate0	short		0551		3b20 executable (TV)
127*0Sstevel@tonic-gate>12	long		>0		not stripped
128*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
129*0Sstevel@tonic-gate0	short		0560		WE32000 executable
130*0Sstevel@tonic-gate>12	long		>0		not stripped
131*0Sstevel@tonic-gate>18	short		^00010000	- N/A on 3b2/300 w/paging
132*0Sstevel@tonic-gate>18	short		&00020000	- 32100 required
133*0Sstevel@tonic-gate>18	short		&00040000	and mau hardware required
134*0Sstevel@tonic-gate>20	short		0443		(target shared library)
135*0Sstevel@tonic-gate>20	short		0410		(swapped)
136*0Sstevel@tonic-gate>20	short		0413		(paged)
137*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
138*0Sstevel@tonic-gate0	short		0561		WE32000 executable (TV)
139*0Sstevel@tonic-gate>12	long		>0		not stripped
140*0Sstevel@tonic-gate>18	short		&00020000	- 32100 required
141*0Sstevel@tonic-gate>18	short		&00040000	and mau hardware required
142*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
143*0Sstevel@tonic-gate0	short		=0512		iAPX 286 executable small model (COFF)
144*0Sstevel@tonic-gate>12	long		>0		not stripped
145*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
146*0Sstevel@tonic-gate0	short		=0522		iAPX 286 executable large model (COFF)
147*0Sstevel@tonic-gate>12	long		>0		not stripped
148*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
149*0Sstevel@tonic-gate0	short		0514		iAPX 386 executable (COFF) (deprecated)
150*0Sstevel@tonic-gate>12	long		>0		not stripped
151*0Sstevel@tonic-gate>22	ushort		>0		- version %ld
152*0Sstevel@tonic-gate0	short		0520		mc68k executable
153*0Sstevel@tonic-gate>12	long		>0		not stripped
154*0Sstevel@tonic-gate0	short		0521		mc68k executable (shared)
155*0Sstevel@tonic-gate>12	long		>0		not stripped
156*0Sstevel@tonic-gate0	short		0522		mc68k executable (shared demand paged)
157*0Sstevel@tonic-gate>12	long		>0		not stripped
158*0Sstevel@tonic-gate# big-endian entries for pure executables
159*0Sstevel@tonic-gate2	short		0410		pure
160*0Sstevel@tonic-gate>1	byte		0		sun2 executable
161*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
162*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
163*0Sstevel@tonic-gate>1	byte		3		SPARC executable
164*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
165*0Sstevel@tonic-gate# little-endian entries for pure executables
166*0Sstevel@tonic-gate2	short		04001		pure
167*0Sstevel@tonic-gate>1	byte		0		sun2 executable
168*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
169*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
170*0Sstevel@tonic-gate>1	byte		3		SPARC executable
171*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
172*0Sstevel@tonic-gate# big-endian entries for impure executables
173*0Sstevel@tonic-gate2	short		0407		impure
174*0Sstevel@tonic-gate>1	byte		0		sun2 executable
175*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
176*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
177*0Sstevel@tonic-gate>1	byte		3		SPARC executable
178*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
179*0Sstevel@tonic-gate# little-endian entries for impure executables
180*0Sstevel@tonic-gate2	short		03401		impure
181*0Sstevel@tonic-gate>1	byte		0		sun2 executable
182*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
183*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
184*0Sstevel@tonic-gate>1	byte		3		SPARC executable
185*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
186*0Sstevel@tonic-gate# big-endian entries for Sun demand paged executables
187*0Sstevel@tonic-gate2	short		0413		Sun demand paged
188*0Sstevel@tonic-gate>1	byte		0		sun2 executable
189*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
190*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
191*0Sstevel@tonic-gate>1	byte		3		SPARC executable
192*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
193*0Sstevel@tonic-gate# little-endian entries for Sun demand paged executables
194*0Sstevel@tonic-gate2	short		05401		Sun demand paged
195*0Sstevel@tonic-gate>1	byte		0		sun2 executable
196*0Sstevel@tonic-gate>1	byte		1		mc68010 executable
197*0Sstevel@tonic-gate>1	byte		2		mc68020 executable
198*0Sstevel@tonic-gate>1	byte		3		SPARC executable
199*0Sstevel@tonic-gate>0	ubyte		>077		dynamically linked
200*0Sstevel@tonic-gate0	short		0x8001		Adobe PostScript Type 1 binary font (PFB)
201*0Sstevel@tonic-gate0	short		0x0180		Adobe PostScript Type 1 binary font (PFB)
202*0Sstevel@tonic-gate0	long		0x00010000	TrueType font file version 1.0 (TTF)
203*0Sstevel@tonic-gate0	long		0x00000100	TrueType font file version 1.0 (TTF)
204*0Sstevel@tonic-gate0	long		0xf00000ff	extended accounting file
205*0Sstevel@tonic-gate# little-endian entry
206*0Sstevel@tonic-gate0	long		0xff0000f0	extended accounting file
207*0Sstevel@tonic-gate0	byte		0x80		8086 relocatable (Microsoft)
208*0Sstevel@tonic-gate0	byte		0xf0		MS-DOS library
209*0Sstevel@tonic-gate0	short		0xff65		x.out
210*0Sstevel@tonic-gate>2	string		__.SYMDEF	randomized
211*0Sstevel@tonic-gate>0	byte		x		archive
212*0Sstevel@tonic-gate0	short		0x206		Microsoft a.out
213*0Sstevel@tonic-gate>0x1e	short		&0x10		overlay
214*0Sstevel@tonic-gate>0x1e	short		&0x2		separate
215*0Sstevel@tonic-gate>0x1e	short		&0x4		pure
216*0Sstevel@tonic-gate>0x1e	short		&0x800		segmented
217*0Sstevel@tonic-gate>0x1e	short		&0x400		standalone
218*0Sstevel@tonic-gate>0x1e	short		&0x8		fixed-stack
219*0Sstevel@tonic-gate>0x1c	byte		&0x80		byte-swapped
220*0Sstevel@tonic-gate>0x1c	byte		&0x40		word-swapped
221*0Sstevel@tonic-gate>0x10	long		>0		not-stripped
222*0Sstevel@tonic-gate>0x1e	short		^0xc000		pre-SysV
223*0Sstevel@tonic-gate>0x1c	byte		&0x4		86
224*0Sstevel@tonic-gate>0x1c	byte		&0x9		286
225*0Sstevel@tonic-gate>0x1c	byte		&0xa		386
226*0Sstevel@tonic-gate>0x1e	short		&0x1		executable
227*0Sstevel@tonic-gate>0x1e	short		^0x1		object file
228*0Sstevel@tonic-gate>0x1e	short		&0x40		Large Text
229*0Sstevel@tonic-gate>0x1e	short		&0x20		Large Data
230*0Sstevel@tonic-gate>0x1e	short		&0x120		Huge Objects Enabled
231*0Sstevel@tonic-gate0	short		0x10b		VAX demand load format a.out object file
232*0Sstevel@tonic-gate>0x10	long		>0		not stripped
233*0Sstevel@tonic-gate0	short		0x140		old Microsoft 8086 x.out
234*0Sstevel@tonic-gate>0x3	byte		&0x4		separate
235*0Sstevel@tonic-gate>0x3	byte		&0x2		pure
236*0Sstevel@tonic-gate>0	byte		&0x1		executable
237*0Sstevel@tonic-gate>0	byte		^0x1		relocatable
238*0Sstevel@tonic-gate>0x14	long		>0		not stripped
239*0Sstevel@tonic-gate0	long		0x10b		VAX demand load format a.out object file
240*0Sstevel@tonic-gate>0x10	long		>0		not stripped
241*0Sstevel@tonic-gate0	long		0x140		old Microsoft 8086 x.out
242*0Sstevel@tonic-gate>0x3	byte		&0x4		separate
243*0Sstevel@tonic-gate>0x3	byte		&0x2		pure
244*0Sstevel@tonic-gate>0	byte		&0x1		executable
245*0Sstevel@tonic-gate>0	byte		^0x1		relocatable
246*0Sstevel@tonic-gate>0x14	long		>0		not stripped
247*0Sstevel@tonic-gate0	long		0xe807		object file (z8000 a.out)
248*0Sstevel@tonic-gate0	long		0xe808		pure object file (z8000 a.out)
249*0Sstevel@tonic-gate0	long		0xe809		separate object file (z8000 a.out)
250*0Sstevel@tonic-gate0	long		0xe805		overlay object file (z8000 a.out)
251*0Sstevel@tonic-gate0	long		0x178		Bell 5.0 executable
252*0Sstevel@tonic-gate2	short		0410		Sun read-only text executable
253*0Sstevel@tonic-gate>2	short		0407		Sun old executable
254*0Sstevel@tonic-gate>1	byte		3		(SPARC)
255*0Sstevel@tonic-gate>1	byte		2		(68020)
256*0Sstevel@tonic-gate>1	byte		1		(68010)
257*0Sstevel@tonic-gate>1	byte		0		(Sun2)
258*0Sstevel@tonic-gate0	short		0143561		byte-swapped cpio archive
259*0Sstevel@tonic-gate0	long		0101555		PDP-11 single precision APL workspace
260*0Sstevel@tonic-gate0	long		0101554		PDP-11 double precision APL workspace
261*0Sstevel@tonic-gate0	long		0101557		VAX single precision APL workspace
262*0Sstevel@tonic-gate0	long		0101556		VAX double precision APL workspace
263*0Sstevel@tonic-gate0	short		017437		old packed data
264*0Sstevel@tonic-gate0	string		\037\036	packed data
265*0Sstevel@tonic-gate0	string		\377\037	compacted data
266*0Sstevel@tonic-gate0	string		\037\235	compressed data
267*0Sstevel@tonic-gate>2	byte&0x80	>0		block compressed
268*0Sstevel@tonic-gate>2	byte&0x1f	x		%d bits
269*0Sstevel@tonic-gate0	string		\037\213	gzip compressed data
270*0Sstevel@tonic-gate>2	byte		8		- deflate method
271*0Sstevel@tonic-gate>3	byte		&0x1		, ascii
272*0Sstevel@tonic-gate>3	byte		&0x2		, continuation
273*0Sstevel@tonic-gate>3	byte		&0x4		, extra field
274*0Sstevel@tonic-gate>3	byte		&0x8		, original file name
275*0Sstevel@tonic-gate>3	byte		&0x10		, comment
276*0Sstevel@tonic-gate>3	byte		&0x20		, encrypted
277*0Sstevel@tonic-gate>8	byte		2		, max compression
278*0Sstevel@tonic-gate>8	byte		4		, max speed
279*0Sstevel@tonic-gate0	string		!<arch>\n__.SYMDEF	archive random library
280*0Sstevel@tonic-gate0	long		0x1010101	MMDF mailbox
281*0Sstevel@tonic-gate0	string		<!OPS		Interleaf ASCII document
282*0Sstevel@tonic-gate24	string		SunGKS		SunGKS
283*0Sstevel@tonic-gate# version number follows, in the form m.n
284*0Sstevel@tonic-gate>0	string		GKSM		Metafile
285*0Sstevel@tonic-gate0	string		GKSM		GKS Metafile
286*0Sstevel@tonic-gate# version number follows, in the form <!OPS, Version n.n>
287*0Sstevel@tonic-gate0	string		%!PS-AdobeFont	Adobe PostScript ASCII font (PFA)
288*0Sstevel@tonic-gate0	string		%!		PostScript document
289*0Sstevel@tonic-gate>2	string		PS-Adobe	 conforming to level
290*0Sstevel@tonic-gate>10	string		-1.0		 1.0
291*0Sstevel@tonic-gate>10	string		-2.0		 2.0
292*0Sstevel@tonic-gate>10	string		-3.0		 3.0
293*0Sstevel@tonic-gate# version ID follows, in the form PS-Adobe-nn
294*0Sstevel@tonic-gate0	string		Interpress/Xerox	Interpress document
295*0Sstevel@tonic-gate# version ID follows, in the form /n.n
296*0Sstevel@tonic-gate0	string		StartFontMetrics	Adobe font metrics
297*0Sstevel@tonic-gate0	string		StartFont	Adobe font bits
298*0Sstevel@tonic-gate0	long		0x137A2944	NeWS bitmap font
299*0Sstevel@tonic-gate0	long		0x137A2947	NeWS font family
300*0Sstevel@tonic-gate8	long		0x137A2B45	X11/NeWS bitmap font
301*0Sstevel@tonic-gate8	long		0x137A2B48	X11/NeWS font family
302*0Sstevel@tonic-gate# snoop files are always big-endian
303*0Sstevel@tonic-gate# big-endian entries, with ullong equivalent of string "snoop"
304*0Sstevel@tonic-gate0	ullong		0x736e6f6f70000000	Snoop capture file
305*0Sstevel@tonic-gate>8	long		>0		- version %ld
306*0Sstevel@tonic-gate# little-endian entries, with ullong equivalent of string "snoop"
307*0Sstevel@tonic-gate0	ullong		0x000000706f6f6e73	Snoop capture file
308*0Sstevel@tonic-gate>11	long		>0		- version %ld
309*0Sstevel@tonic-gate0	short		0436		vfont definition
310*0Sstevel@tonic-gate0	string		<MakerFile	Frame Maker document
311*0Sstevel@tonic-gate0	string		<MIFFile	Frame Maker MIF file
312*0Sstevel@tonic-gate0	string		<MML		Frame Maker MML file
313*0Sstevel@tonic-gate0	string		<BookFile	Frame Maker book file
314*0Sstevel@tonic-gate# Audio files are always big-endian so there are two sets of tables here.
315*0Sstevel@tonic-gate# The CPU endian architecture is determined via the ordering of the first 4 bytes
316*0Sstevel@tonic-gate# (the string ".snd"). The tables below have this value represented as a single
317*0Sstevel@tonic-gate# 4 byte long. If the architecture is big-endian the %d token can be used for
318*0Sstevel@tonic-gate# interpreting the sampling rate.
319*0Sstevel@tonic-gate# Since %d can't be done on the data for little endian machines the limitation
320*0Sstevel@tonic-gate# is that sampling rates not included in the x86 entries will not be recognized.
321*0Sstevel@tonic-gate#
322*0Sstevel@tonic-gate# big-endian entries
323*0Sstevel@tonic-gate#
324*0Sstevel@tonic-gate0	long		0x2e736e64	audio data:
325*0Sstevel@tonic-gate>12	long		1		8-bit u-law,
326*0Sstevel@tonic-gate>12	long		2		8-bit linear PCM,
327*0Sstevel@tonic-gate>12	long		3		16-bit linear PCM,
328*0Sstevel@tonic-gate>12	long		4		24-bit linear PCM,
329*0Sstevel@tonic-gate>12	long		5		32-bit linear PCM,
330*0Sstevel@tonic-gate>12	long		6		32-bit floating point,
331*0Sstevel@tonic-gate>12	long		7		64-bit floating point,
332*0Sstevel@tonic-gate>12	long		23		compressed (4-bit G.721 ADPCM),
333*0Sstevel@tonic-gate>12	long		24		compressed (8-bit G.722 ADPCM),
334*0Sstevel@tonic-gate>12	long		25		compressed (3-bit G.723 ADPCM),
335*0Sstevel@tonic-gate>12	long		26		compressed (5-bit G.723 ADPCM),
336*0Sstevel@tonic-gate>12	long		27		8-bit A-law,
337*0Sstevel@tonic-gate>20	long		1		mono,
338*0Sstevel@tonic-gate>20	long		2		stereo,
339*0Sstevel@tonic-gate>20	long		4		quad,
340*0Sstevel@tonic-gate>16	long		x		%d Hz
341*0Sstevel@tonic-gate#
342*0Sstevel@tonic-gate# little-endian entries
343*0Sstevel@tonic-gate#
344*0Sstevel@tonic-gate0	long		0x646e732e	audio data:
345*0Sstevel@tonic-gate>12	long		0x01000000	8-bit u-law,
346*0Sstevel@tonic-gate>12	long		0x02000000	8-bit linear PCM,
347*0Sstevel@tonic-gate>12	long		0x03000000	16-bit linear PCM,
348*0Sstevel@tonic-gate>12	long		0x04000000	24-bit linear PCM,
349*0Sstevel@tonic-gate>12	long		0x05000000	32-bit linear PCM,
350*0Sstevel@tonic-gate>12	long		0x06000000	32-bit floating point,
351*0Sstevel@tonic-gate>12	long		0x07000000	64-bit floating point,
352*0Sstevel@tonic-gate>12	long		0x17000000	compressed (4-bit G.721 ADPCM),
353*0Sstevel@tonic-gate>12	long		0x18000000	compressed (8-bit G.722 ADPCM),
354*0Sstevel@tonic-gate>12	long		0x19000000	compressed (3-bit G.723 ADPCM),
355*0Sstevel@tonic-gate>12	long		0x1a000000	compressed (5-bit G.723 ADPCM),
356*0Sstevel@tonic-gate>12	long		0x1b000000	8-bit A-law,
357*0Sstevel@tonic-gate>20	long		0x01000000	mono,
358*0Sstevel@tonic-gate>20	long		0x02000000	stereo,
359*0Sstevel@tonic-gate>20	long		0x04000000	quad,
360*0Sstevel@tonic-gate>16	long		0x401f0000	8000 Hz
361*0Sstevel@tonic-gate>16	long		0x80250000	9600 Hz
362*0Sstevel@tonic-gate>16	long		0x112b0000	11025 Hz
363*0Sstevel@tonic-gate>16	long		0x803e0000	16000 Hz
364*0Sstevel@tonic-gate>16	long		0xd4490000	18900 Hz
365*0Sstevel@tonic-gate>16	long		0x22560000	22050 Hz
366*0Sstevel@tonic-gate>16	long		0x007d0000	32000 Hz
367*0Sstevel@tonic-gate>16	long		0xa8930000	37800 Hz
368*0Sstevel@tonic-gate>16	long		0x44ac0000	44100 Hz
369*0Sstevel@tonic-gate>16	long		0x80bb0000	48000 Hz
370*0Sstevel@tonic-gate# .wav files are always little-endian
371*0Sstevel@tonic-gate# .wav big-endian entries, starting with long value for the string "RIFF"
372*0Sstevel@tonic-gate0	long		0x52494646	audio data:
373*0Sstevel@tonic-gate>34	short		0x0800		8-bit
374*0Sstevel@tonic-gate>34	short		0x1000		16-bit
375*0Sstevel@tonic-gate>20	short		0x0100		linear PCM,
376*0Sstevel@tonic-gate>20	short		0x0200		MS ADPCM,
377*0Sstevel@tonic-gate>20	short		0x0600		A-law,
378*0Sstevel@tonic-gate>20	short		0x0700		u-law,
379*0Sstevel@tonic-gate>20	short		0x1100		DVI ADPCM,
380*0Sstevel@tonic-gate>22	short		0x0100		mono
381*0Sstevel@tonic-gate>22	short		0x0200		stereo
382*0Sstevel@tonic-gate# .wav little-endian entries, starting with long value for the string "RIFF"
383*0Sstevel@tonic-gate0	long		0x46464952	audio data:
384*0Sstevel@tonic-gate>34	short		0x0008		8-bit
385*0Sstevel@tonic-gate>34	short		0x0010		16-bit
386*0Sstevel@tonic-gate>20	short		0x0001		linear PCM,
387*0Sstevel@tonic-gate>20	short		0x0002		MS ADPCM,
388*0Sstevel@tonic-gate>20	short		0x0006		A-law,
389*0Sstevel@tonic-gate>20	short		0x0007		u-law,
390*0Sstevel@tonic-gate>20	short		0x0011		DVI ADPCM,
391*0Sstevel@tonic-gate>22	short		0x0001		mono
392*0Sstevel@tonic-gate>22	short		0x0002		stereo
393*0Sstevel@tonic-gate# .aiff files are always big-endian
394*0Sstevel@tonic-gate# .aiff big-endian entries, starting with long value for the string "FORM"
395*0Sstevel@tonic-gate0	long		0x464f524d	audio data:
396*0Sstevel@tonic-gate>26	short		0x0008		8-bit linear PCM,
397*0Sstevel@tonic-gate>26	short		0x0010		16-bit linear PCM,
398*0Sstevel@tonic-gate>20	short		0x0001		mono
399*0Sstevel@tonic-gate>20	short		0x0002		stereo
400*0Sstevel@tonic-gate# .aiff little-endian entries, starting with long value for the string "FORM"
401*0Sstevel@tonic-gate0	long		0x4d524f46	audio data:
402*0Sstevel@tonic-gate>26	short		0x0800		8-bit linear PCM,
403*0Sstevel@tonic-gate>26	short		0x1000		16-bit linear PCM,
404*0Sstevel@tonic-gate>20	short		0x0100		mono
405*0Sstevel@tonic-gate>20	short		0x0200		stereo
406*0Sstevel@tonic-gate# .mid files are always big-endian
407*0Sstevel@tonic-gate# .mid big-endian entries, starting with long value for the string "MThd"
408*0Sstevel@tonic-gate0	long		0x4d546864	MIDI data:
409*0Sstevel@tonic-gate>8	short		x		type %u,
410*0Sstevel@tonic-gate>10	short		x		%u track(s)
411*0Sstevel@tonic-gate# .mid little-endian entry (the string "MThd")
412*0Sstevel@tonic-gate# can't translate big-endian type and track information
413*0Sstevel@tonic-gate0	long		0x6468544d	MIDI data
414*0Sstevel@tonic-gate#
415*0Sstevel@tonic-gate0	short		0x1010		PEX Binary Archive
416*0Sstevel@tonic-gate# rasterfiles are big-endian
417*0Sstevel@tonic-gate# big-endian rasterfile entries
418*0Sstevel@tonic-gate0	long		0x59a66a95	rasterfile,
419*0Sstevel@tonic-gate>4	long		>0		%ld x
420*0Sstevel@tonic-gate>8	long		>0		%ld x
421*0Sstevel@tonic-gate>12	long		>0		%ld
422*0Sstevel@tonic-gate>20	long		0		old format image
423*0Sstevel@tonic-gate>20	long		1		standard format image
424*0Sstevel@tonic-gate>20	long		2		run-length byte encoded image
425*0Sstevel@tonic-gate>20	long		3		XRGB or RGB format image
426*0Sstevel@tonic-gate>20	long		4		tiff format image
427*0Sstevel@tonic-gate>20	long		5		iff (TAAC format) image
428*0Sstevel@tonic-gate>20	long		0xffff		experimental format image
429*0Sstevel@tonic-gate# little-endian rasterfile entries
430*0Sstevel@tonic-gate# cannot translate resolution stored as big-endian longs
431*0Sstevel@tonic-gate0	long		0x956aa659	rasterfile,
432*0Sstevel@tonic-gate>23	long		0		old format image
433*0Sstevel@tonic-gate>23	long		1		standard format image
434*0Sstevel@tonic-gate>23	long		2		run-length byte encoded image
435*0Sstevel@tonic-gate>23	long		3		XRGB or RGB format image
436*0Sstevel@tonic-gate>23	long		4		tiff format image
437*0Sstevel@tonic-gate>23	long		5		iff (TAAC format) image
438*0Sstevel@tonic-gate>20	long		0xffff		experimental format image
439*0Sstevel@tonic-gate0	long		0x884f5053	Interleaf fast-saved document
440*0Sstevel@tonic-gate0	long		0x2a535441	Aster*x
441*0Sstevel@tonic-gate>7	long		0x574f5244		Words Document
442*0Sstevel@tonic-gate>7	long		0x47524150		Graphic
443*0Sstevel@tonic-gate>7	long		0x53505245		Spreadsheet
444*0Sstevel@tonic-gate>7	long		0x4d414352		Macro
445*0Sstevel@tonic-gate0	long		0x32323738	Aster*x Version 2
446*0Sstevel@tonic-gate>29	byte		0x36			Words Document
447*0Sstevel@tonic-gate>29	byte		0x35			Graphic
448*0Sstevel@tonic-gate>29	byte		0x32			Spreadsheet
449*0Sstevel@tonic-gate>29	byte		0x38			Macro
450*0Sstevel@tonic-gate4	string		pgscriptver	IslandWrite document
451*0Sstevel@tonic-gate13	string		DrawFile	IslandDraw document
452*0Sstevel@tonic-gate0	string		P1		PBM ascii file
453*0Sstevel@tonic-gate0	string		P2		PGM ascii file
454*0Sstevel@tonic-gate0	string		P3		PPM ascii file
455*0Sstevel@tonic-gate0	string		P4		PBM raw file
456*0Sstevel@tonic-gate0	string		P5		PGM raw file
457*0Sstevel@tonic-gate0	string		P6		PPM raw file
458*0Sstevel@tonic-gate0	string		\115\115	TIFF file, big-endian
459*0Sstevel@tonic-gate0	string		\111\111	TIFF file, little-endian
460*0Sstevel@tonic-gate0	string		GIF87a		GIF file, v87
461*0Sstevel@tonic-gate0	string		GIF89a		GIF file, v89
462*0Sstevel@tonic-gate0	string		\377\330\377\340	JPEG file
463*0Sstevel@tonic-gate0	string		\377\330\377\341	JPEG file
464*0Sstevel@tonic-gate0	string		\377\330\377\356	JPG file
465*0Sstevel@tonic-gate8	string		ILBM		IFF ILBM file
466*0Sstevel@tonic-gate0	string		\312\376\272\276	java class file
467*0Sstevel@tonic-gate36	string		acsp	Kodak Color Management System, ICC Profile
468*0Sstevel@tonic-gate0	string		%PDF		Adobe Portable Document Format (PDF)
469*0Sstevel@tonic-gate>4	string		-1.0		v1.0
470*0Sstevel@tonic-gate>4	string		-1.1		v1.1
471*0Sstevel@tonic-gate>4	string		-1.2		v1.2
472*0Sstevel@tonic-gate>4	string		-1.3		v1.3
473*0Sstevel@tonic-gate>4	string		-1.4		v1.4
474*0Sstevel@tonic-gate>4	string		-1.5		v1.5
475*0Sstevel@tonic-gate0	string		<html		html document
476*0Sstevel@tonic-gate0	string		<HTML		html document
477*0Sstevel@tonic-gate0	string		<Html		html document
478*0Sstevel@tonic-gate0	string		<!doctype HTML	html document
479*0Sstevel@tonic-gate0	string		<!doctype Html	html document
480*0Sstevel@tonic-gate0	string		<!doctype html	html document
481*0Sstevel@tonic-gate0	string		<!DOCTYPE HTML	html document
482*0Sstevel@tonic-gate0	string		<!DOCTYPE Html	html document
483*0Sstevel@tonic-gate0	string		<!DOCTYPE html	html document
484*0Sstevel@tonic-gate0	string		<!Doctype HTML	html document
485*0Sstevel@tonic-gate0	string		<!Doctype Html	html document
486*0Sstevel@tonic-gate0	string		<!Doctype html	html document
487*0Sstevel@tonic-gate0	string		<head		html document
488*0Sstevel@tonic-gate0	string		<HEAD		html document
489*0Sstevel@tonic-gate0	string		<Head		html document
490*0Sstevel@tonic-gate0	string		<title		html document
491*0Sstevel@tonic-gate0	string		<TITLE		html document
492*0Sstevel@tonic-gate0	string		<Title		html document
493*0Sstevel@tonic-gate0	string		<?xml		XML document
494*0Sstevel@tonic-gate0	string		<?XML		XML document
495*0Sstevel@tonic-gate0	string		<?Xml		XML document
496*0Sstevel@tonic-gate0	string		\0211PNG	PNG image data
497*0Sstevel@tonic-gate0	string		.RMF		RealMedia file
498*0Sstevel@tonic-gate0	string		FlAsH-aRcHiVe	Flash Archive
499*0Sstevel@tonic-gate>13	string		-1.0		 1.0
500*0Sstevel@tonic-gate>13	string		-2.0		 2.0
501*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.writer	StarOffice 7 Text Document
502*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.calc	StarOffice 7 Spreadsheet
503*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.draw	StarOffice 7 Drawing
504*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.impress	StarOffice 7 Presentation
505*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.math	StarOffice 7 Formula
506*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.chart	OpenDocument Chart
507*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.database	OpenDocument Database
508*0Sstevel@tonic-gate38	string		application/vnd.sun.xml.base			OpenDocument Database
509*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.formula	OpenDocument Formula
510*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.image	OpenDocument Image
511*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.text-web	HTML Document Template
512*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.text-	OpenDocument
513*0Sstevel@tonic-gate>78	string		template						Text Template
514*0Sstevel@tonic-gate>78	string		master							Master Document
515*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.text		OpenDocument Text
516*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.graphics	OpenDocument Drawing
517*0Sstevel@tonic-gate>81	string		-template						Template
518*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.presentation	OpenDocument Presentation
519*0Sstevel@tonic-gate>85	string		-template						Template
520*0Sstevel@tonic-gate38	string		application/vnd.oasis.opendocument.spreadsheet	OpenDocument Spreadsheet
521*0Sstevel@tonic-gate>84	string		-template						Template
522*0Sstevel@tonic-gate0	string		PK\003\004	ZIP archive
523*0Sstevel@tonic-gate0	string		MZ		DOS executable (EXE)
524*0Sstevel@tonic-gate0	string		LZ		DOS built-in
525*0Sstevel@tonic-gate0	byte		0xe9		DOS executable (COM)
526*0Sstevel@tonic-gate0	byte		0xeb		DOS executable (COM)
527*0Sstevel@tonic-gate24	long		60012		ufsdump archive file
528*0Sstevel@tonic-gate0	string		TZif		zoneinfo timezone data file
529*0Sstevel@tonic-gate0	string		BZh		bzip2 compressed data
530*0Sstevel@tonic-gate>3	byte		>47		, block size = %c00k
531*0Sstevel@tonic-gate0	string		SUNWcpch	Sun C compiler precompiled header
532*0Sstevel@tonic-gate0	string		SUNWCpch	Sun C++ compiler precompiled header
533*0Sstevel@tonic-gate0	string		\043\040PaCkAgE\040DaTaStReAm	package datastream
534*0Sstevel@tonic-gate0	short		0xcff1		CTF data file
535*0Sstevel@tonic-gate0	string		\177DOF		DTrace DOF data file
536*0Sstevel@tonic-gate0	string		\177FCF		fmd(1M) checkpoint file
537*0Sstevel@tonic-gate0	string		EFT\0		Fault tree file,
538*0Sstevel@tonic-gate>4	ushort		x		v%u
539*0Sstevel@tonic-gate>6	ushort		x		rev %u,
540*0Sstevel@tonic-gate>8	ushort		x		from esc v%u
541*0Sstevel@tonic-gate>10	ushort		x		rev %u
542