# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.
#ident	"$Header: magic 1.9 90/08/14 $@(#)magic	1.3"
#
#		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	short		0143561		byte-swapped cpio archive
0	long		0177555		obsolete ar archive
0	short		0177545		pdp11/pre System V ar archive
0	long		0101555		PDP-11 single precision APL workspace
0	long		0101554		PDP-11 double precision APL workspace
0	long		0101557		VAX single precision APL workspace
0	long		0101556		VAX double precision APL workspace
0	short		017037		packed data
0	short		017437		old packed data
0	string		<ar>		System V Release 1 ar archive
0	string		!<arch>		current 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		0411		pdp11 separate I&D
>8	short		>0		not stripped
>15	byte		>0		- version %ld
0	short		0432		Compiled Terminfo Entry
0	short		0433		Curses screen image
0	short		0434		Curses screen image
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
>22	short		>0		- version %ld
0	short		0503		basic-16 executable (TV)
>12	long		>0		not stripped
>22	short		>0		- version %ld
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
>22	short		>0		- version %ld
0	short		0551		3b20 executable (TV)
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		0560		WE32000 executable
>12	long		>0		not stripped
>18	short		^00010000	- N/A on 3b2/300 w/paging
>18	short		&00020000	- 32100 required
>18	short		&00040000	and mau hardware required
>20	short		0443		(target shared library)
>20	short		0410		(swapped)
>20	short		0413		(paged)
>22	short		>0		- version %ld
0	short		0561		WE32000 executable (TV)
>12	long		>0		not stripped
>18	short		&00020000	- 32100 required
>18	short		&00040000	and mau hardware required
>22	short		>0		- version %ld
0	short		01006		286 executable (STL)
>31	byte		<0x040		small model
>31	byte		=0x048		large model	
>31	byte		=0x049		huge model 
>16	long		>0		not stripped
0	long		0413		demand paged VAX or old BALANCE NS32000 executable
>16	long		>0		not stripped
0	long		011353		old SYMMETRY I386 .o
>124	long		>0		version %ld
0	long		021353		old SYMMETRY I386 executable (0 @ 0)
>16	long		>0		not stripped
>124	long		>0		version %ld
0	long		031353		old SYMMETRY I386 executable (invalid @ 0)
>16	long		>0		not stripped
>124	long		>0		version %ld
0	long		041353		old SYMMETRY I386 stand alone executable
>16	long		>0		not stripped
>124	long		>0		version %ld
0	long		000352		BALANCE NS32000 .o
>124	long		>0		version %ld
0	long		010352		BALANCE NS32000 executable (0 @ 0)
>16	long		>0		not stripped
>124	long		>0		version %ld
0	long		020352		BALANCE NS32000 executable (invalid @ 0)
>16	long		>0		not stripped
>124	long		>0		version %ld
0	long		030352		BALANCE NS32000 stand alone executable
>16	long		>0		not stripped
>124	long		>0		version %ld
0	string		MZ		DOS executable (EXE)
0	string		LZ		DOS built-in
0	byte		0xe9		DOS executable (COM)
0	byte		0xeb		DOS executable (COM)
0	short		=0512		iAPX 286 executable small model (COFF)
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		=0522		iAPX 286 executable large model (COFF)
>12	long		>0		not stripped
>22	short		>0		- version %ld
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	short		=0514		System V iAPX 386 executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	short		=0524		iAPX 386 executable
>12	long		>0		not stripped
>22	short		>0		- version %ld
0	byte		0037		compressed data
>1	byte		0235
>2	byte		<0200		- %d bits
>2	byte		0214		- 12 bits
>2	byte		0215		- 13 bits
>2	byte		0220		- 16 bits
0	string		\377\037	compacted data
0	string		!<arch>\n__.SYMDEF	archive random library
0	string		!<arch>		archive
0	long		0x1010101	MMDF mailbox
0	string		<!OPS		Interleaf ASCII document
24	string		SunGKS		SunGKS
# version number follows, in the form m.n
>0	string		GKSM		Metafile
0	string		GKSM		GKS Metafile
# version number follows, in the form <!OPS, Version n.n>
0	string		%!		PostScript document
# version ID follows, in the form PS-Adobe-nn
0	string		Interpress/Xerox	Interpress document
# version ID follows, in the form /n.n
0	string		StartFontMetrics	ASCII font metrics
0	string		StartFont	ASCII font bits
0	long		0x137A2944	NeWS bitmap font
0	long		0x137A2947	NeWS font family
0	string		<MakerFile	Frame Maker document
0	string		<MIFFile	Frame Maker MIF file
0	string		<MML		Frame Maker MML file
1	short		0x0100		old sun-2 executable
>2	short		0x0B01		demand load format
>2	short		0x0801		read-only text
>2	short		0x0701		old impure format
1	byte		0x0101		Sun 68010 or 68020 executable
>2	short		0x0B01		demand load format
>2	short		0x0801		read-only text
>2	short		0x0701		old impure format
1	byte		0x0102		Sun 68020 executable
>2	short		0x0B01		demand load format
>2	short		0x0801		read-only text
>2	short		0x0701		old impure format
1	short		0x0103		Sun sparc executable
>2	short		0x0B01		demand load format
>2	short		0x0801		read-only text
>2	short		0x0701		old impure format
