#
#			@(#)magic	1.10
#
#		file cmd's magic file
#
#
#	Basically, the fields of this file are as follows:
#	byte offset, value type, optional operator (= by default), value
#	to match (numeric or string), and string to be printed.  Numeric
#	values may be decimal, octal, or hex.  Also note that the last
#	string may have 1 printf format spec.
#	The '>' in occassional column 1's is magic: it forces file to
#	continue scanning and matching additional lines.  The first line
#	afterwards not so marked terminates the search.
#
0	short		070707		cpio archive
0	string		070707		ASCII cpio archive
0	long		0177555		very old archive
0	short		0177545		old archive
0	long		0100554		apl workspace
0	short		017037		packed data
0	string		<ar>		System V rel.1 ar archive
0	short		0407		pdp11/pre System V vax executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0401		unix-rt ldp
0	short		0405		pdp11 overlay
0	short		0410		pdp11/pre System V vax pure executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0413		demand-page executable
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0411		pdp11 separate I&D
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0437		pdp11 kernel overlay
0	short		0570		vax executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		0575		vax pure executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		0502		basic-16 executable
>12	long		>0		not stripped
0	short		0503		basic-16 executable (TV)
>12	long		>0		not stripped
0	short		0510		x86 executable
>12	long		>0		not stripped
0	short		0511		x86 executable (TV)
>12	long		>0		not stripped
0	short		0550		3b20 executable
>12	long		>0		not stripped
0	short		0551		3b20 executable (TV)
>12	long		>0		not stripped
0	short		0560		3b2/3b5 executable
>12	long		>0		not stripped
0	short		0561		3b2/3b5 executable (TV)
>12	long		>0		not stripped
#
# Added magic table by SONY
#
0	short		0520		MC68k executable
>12	long		>0		not stripped
0>	short		0521		MC68k executable (shared)
>12	long		>0		not stripped
0>	short		0522		MC68k executable (shared demand paged)
>12	long		>0		not stripped
0	long		0407		68k executable
>16	long		!0		not stripped
>16	long		0		stripped
0	long		0410		68k pure executable
>16	long		!0		not stripped
>16	long		0		stripped
0	long		0413		68k demand paged pure executable
>16	long		!0		not stripped
>16	long		0		stripped
0	long		0x02000000	data
0	string		%!		PostScript document
0	string		<MakeFile	Frame Maker document
0	string		<MIFFile	Frame Maker MIF file
0	string		<MML		Frame Maker MML file
#
# MIPS binary information
#
0	short		0x0160		MIPS endian big
>20	short		0407		executable
>20	short		0410		pure
>20	short		0413		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>22	byte		x		- version %ld.
>23	byte		x		%ld
0	short		0x0162		MIPS endian little
>20	short		0407		executable
>20	short		0410		pure
>20	short		0413		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>23	byte		x		- version %ld.
>22	byte		x		%ld
0	short		0x6001		swapped MIPS-eb
>20	short		03401		executable
>20	short		04001		pure
>20	short		05401		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>22	byte		x		- version %ld.
>23	byte		x		%ld
0	short		0x6201		swapped MIPS-el
>20	short		03401		executable
>20	short		04001		pure
>20	short		05401		demand paged
>8	long		!0		not stripped
>8	long		0		stripped
>23	byte		x		- version %ld.
>22	byte		x		%ld
0	short		0x180		MIPS endian big ucode
0	short		0x182		MIPS endian little ucode
#
# MS-DOS binary information
#
0	byte		0xf0		MS-DOS library
0	short		0x206		Microsoft x.out
>30	short		&0x10		overlay
>30	short		&0x2		separate
>30	short		&0x4		pure
>30	short		&0x800		segmented
>30	short		&0x400		stanalone
>30	short		&0x8		fixed-stack
>28	byte		&0x80		byte-swapped
>28	byte		&0x40		word-swapped
>28	byte		&0x4		86
>28	byte		&0x9		286
>28	byte		&0xa		386
>30	short		&0x1		executable
>30	short		^0x1		object file
>30	short		&0x40		Large Text
>30	short		&0x20		Large Data
>30	short		&0x120		Huge Object enabled
0	short		0x140		old Microsoft 8086 x.out
#
# Archive - This handles archive subtypes
#
0	string		!<arch>\n__.SYMDEF	BSD archive random library
0	string		!<arch>\n__________E	MIPS archive
>20	string		U		with MIPS ucode members
>21	string		B		with MIPS-eb members
>21	string		L		with MIPS-el members
>19	string		L		and a EL hash table
>19	string		B		and a EB hash table
>22	string		X		-- out of date
0	string		!<arch>		archive
#
# Compressed data
#
0	short		017635		compressed data
>2	byte		0214		- with 12 bits
>2	byte		0215		- with 13 bits
>2	byte		0216		- with 14 bits
>2	byte		0217		- with 15 bits
>2	byte		0220		- with 16 bits
#
# Sony multi media format
#
0	string		@!		SONY multi media format
>2	string		sound		[sound] file
>2	string		draw		[draw] file
>2	string		paint		[paint] file
>2	string		write		[write] file
#
# Sony CDFF format
#
0	long		0x11010010	CDFF file
