clipper revision 267843
1139827Simp
2139827Simp#------------------------------------------------------------------------------
3139827Simp# $File: clipper,v 1.7 2014/04/30 21:41:02 christos Exp $
4139827Simp# clipper:  file(1) magic for Intergraph (formerly Fairchild) Clipper.
5139827Simp#
6139827Simp# XXX - what byte order does the Clipper use?
7139827Simp#
8139827Simp# XXX - what's the "!" stuff:
9139827Simp#
10139827Simp# >18	short		!074000,000000	C1 R1 
11139827Simp# >18	short		!074000,004000	C2 R1
12139827Simp# >18	short		!074000,010000	C3 R1
13139827Simp# >18	short		!074000,074000	TEST
14139827Simp#
15139827Simp# I shall assume it's ANDing the field with the first value and
16139827Simp# comparing it with the second, and rewrite it as:
17139827Simp#
18139827Simp# >18	short&074000	000000		C1 R1 
19139827Simp# >18	short&074000	004000		C2 R1
20139827Simp# >18	short&074000	010000		C3 R1
21139827Simp# >18	short&074000	074000		TEST
22139827Simp#
23139827Simp# as SVR3.1's "file" doesn't support anything of the "!074000,000000"
24139827Simp# sort, nor does SunOS 4.x, so either it's something Intergraph added
25139827Simp# in CLIX, or something AT&T added in SVR3.2 or later, or something
2683366Sjulian# somebody else thought was a good idea; it's not documented in the
2783366Sjulian# man page for this version of "magic", nor does it appear to be
2815885Sjulian# implemented (at least not after I blew off the bogus code to turn
29165972Srwatson# old-style "&"s into new-style "&"s, which just didn't work at all).
30165972Srwatson#
31142226Srwatson0	short		0575		CLIPPER COFF executable (VAX #)
32165972Srwatson>20	short		0407		(impure)
33142226Srwatson>20	short		0410		(5.2 compatible)
34142226Srwatson>20	short		0411		(pure)
35142226Srwatson>20	short		0413		(demand paged)
36142226Srwatson>20	short		0443		(target shared library)
37142226Srwatson>12	long		>0		not stripped
3815885Sjulian>22	short		>0		- version %d
39165972Srwatson0	short		0577		CLIPPER COFF executable
4033054Sbde>18	short&074000	000000		C1 R1 
41165972Srwatson>18	short&074000	004000		C2 R1
42165972Srwatson>18	short&074000	010000		C3 R1
4383366Sjulian>18	short&074000	074000		TEST
44165972Srwatson>20	short		0407		(impure)
4533054Sbde>20	short		0410		(pure)
46165972Srwatson>20	short		0411		(separate I&D)
47165972Srwatson>20	short		0413		(paged)
48165972Srwatson>20	short		0443		(target shared library)
49165972Srwatson>12	long		>0		not stripped
50165972Srwatson>22	short		>0		- version %d
51165972Srwatson>48	long&01		01		alignment trap enabled
52165972Srwatson>52	byte		1		-Ctnc
53165972Srwatson>52	byte		2		-Ctsw
54165972Srwatson>52	byte		3		-Ctpw
55165972Srwatson>52	byte		4		-Ctcb
56165972Srwatson>53	byte		1		-Cdnc
57165972Srwatson>53	byte		2		-Cdsw
58194819Srwatson>53	byte		3		-Cdpw
59194819Srwatson>53	byte		4		-Cdcb
60178888Sjulian>54	byte		1		-Csnc
61165972Srwatson>54	byte		2		-Cssw
62165972Srwatson>54	byte		3		-Cspw
63165972Srwatson>54	byte		4		-Cscb
64165972Srwatson4	string		pipe		CLIPPER instruction trace
65165972Srwatson4	string		prof		CLIPPER instruction profile
6633054Sbde