#
#	@(#)magic 1.15 90/08/27 SMI; from S5R3.1 1.25
#
#		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 occasional 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.
#
# CODE CHANGED:
# 	8/27/90	  
#		- added specifications for File Manager to replace 
#		  install_filemgr.
#
0	string		\177ELF		ELF
0	short		070707		cpio archive
0	short		0143561		byte-swapped cpio archive
0	string		070707		ASCII cpio archive
0	long		0177555		very old archive
0	short		0177545		old archive
0	long		0100554		APL workspace (Ken's original?)
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		017437		old packed data
0	string		\037\036	packed data
0	string		\377\037	compacted data
0	string		\037\235	compressed data
>2	byte&0x80	>0		block compressed
>2	byte&0x1f	x		%d bits
0	string		\032\001	Compiled Terminfo Entry
0	short		0433		Curses screen image
0	short		0434		Curses screen image
0	string		<ar>		System V Release 1 archive
0	string		!<arch>\n__.SYMDEF	archive random library
0	string		!<arch>		archive
0	long		0x1010101	MMDF mailbox
0	string		<!OPS		Interleaf ASCII document
# version number follows, in the form <!OPS, Version n.n>
24	string		SunGKS		SunGKS
# version number follows, in the form m.n
>0	string		GKSM		Metafile
0	string		GKSM		GKS Metafile
0	string		%!		PostScript document
0	string		#!\040/bin/sh\n#OpenScript	Open Script
0	string		#!\040/bin/csh\n#OpenScript	Open Script
# 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
8	long		0x137A2B45	X11/NeWS bitmap font
8	long		0x137A2B48	X11/NeWS font family
0	long		0x137A2950	scalable OpenFont binary
0	long		0x137A2951	encrypted scalable OpenFont binary
0	string		<MakerFile	Frame Maker document
0	string		<MIFFile	Frame Maker MIF file
0	string		<MML		Frame Maker MML file
0	string		ARF_BEGARF	PHIGS clear text archive
0	string		@(#)SunPHIGS	SunPHIGS
# version number follows, in the form m.n
>40	string		SunBin		binary
>32	string		archive		archive
0	string		BEGMF		clear text Computer Graphics Metafile
0	short&0xffe0	0x0020		binary Computer Graphics Metafile
0	short		0x3020		character Computer Graphics Metafile
0	string		.snd		audio data:
>16     long            >0              not stripped
>12	long		1		8-bit u-law,
>12	long		2		8-bit linear PCM,
>12	long		3		16-bit linear PCM,
>12	long		4		24-bit linear PCM,
>12	long		5		32-bit linear PCM,
>12	long		6		32-bit floating point,
>12	long		7		64-bit floating point,
>20	long		1		mono,
>20	long		2		stereo,
>20	long		4		quad,
>16	long		x		%d Hz
# the following five are for the use of FileManager
0	string		From		mail folder
0	short		0436		vfont definition
0	long		0x59a66a95	raster file
3	string		pgscriptver	SunWrite document
10	string		sundraw		SunDraw document
# Values for Sun binaries
1	byte		3		sparc
>2	short		0407		executable
>2	short		0410		pure executable
>2	short		0413		demand paged executable
>16	long		>0		not stripped
0	short		1		mc68010
>2	short		0407		executable
>2	short		0410		pure executable
>2	short		0413		demand paged executable
>16	long		>0		not stripped
>2	short		0407		executable
>2	short		0410		pure executable
>2	short		0413		demand paged executable
>16	long		>0		not stripped
0	long		0x080456	core file
>128	string		>0		from '%s'
#
0	short		05401		byte-swapped demand paged executable
0	short		010001		byte-swapped demand paged executable
# ELF
#1	string		ELF		ELF executable
# Linux stuff
2	short		0x64		executable Linux (i386)

