xref: /freebsd/contrib/file/magic/Magdir/clipper (revision b6cee71de37d56e36dbc118e2d9b03e7cece5709)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: clipper,v 1.7 2014/04/30 21:41:02 christos Exp $
4*b6cee71dSXin LI# clipper:  file(1) magic for Intergraph (formerly Fairchild) Clipper.
5*b6cee71dSXin LI#
6*b6cee71dSXin LI# XXX - what byte order does the Clipper use?
7*b6cee71dSXin LI#
8*b6cee71dSXin LI# XXX - what's the "!" stuff:
9*b6cee71dSXin LI#
10*b6cee71dSXin LI# >18	short		!074000,000000	C1 R1
11*b6cee71dSXin LI# >18	short		!074000,004000	C2 R1
12*b6cee71dSXin LI# >18	short		!074000,010000	C3 R1
13*b6cee71dSXin LI# >18	short		!074000,074000	TEST
14*b6cee71dSXin LI#
15*b6cee71dSXin LI# I shall assume it's ANDing the field with the first value and
16*b6cee71dSXin LI# comparing it with the second, and rewrite it as:
17*b6cee71dSXin LI#
18*b6cee71dSXin LI# >18	short&074000	000000		C1 R1
19*b6cee71dSXin LI# >18	short&074000	004000		C2 R1
20*b6cee71dSXin LI# >18	short&074000	010000		C3 R1
21*b6cee71dSXin LI# >18	short&074000	074000		TEST
22*b6cee71dSXin LI#
23*b6cee71dSXin LI# as SVR3.1's "file" doesn't support anything of the "!074000,000000"
24*b6cee71dSXin LI# sort, nor does SunOS 4.x, so either it's something Intergraph added
25*b6cee71dSXin LI# in CLIX, or something AT&T added in SVR3.2 or later, or something
26*b6cee71dSXin LI# somebody else thought was a good idea; it's not documented in the
27*b6cee71dSXin LI# man page for this version of "magic", nor does it appear to be
28*b6cee71dSXin LI# implemented (at least not after I blew off the bogus code to turn
29*b6cee71dSXin LI# old-style "&"s into new-style "&"s, which just didn't work at all).
30*b6cee71dSXin LI#
31*b6cee71dSXin LI0	short		0575		CLIPPER COFF executable (VAX #)
32*b6cee71dSXin LI>20	short		0407		(impure)
33*b6cee71dSXin LI>20	short		0410		(5.2 compatible)
34*b6cee71dSXin LI>20	short		0411		(pure)
35*b6cee71dSXin LI>20	short		0413		(demand paged)
36*b6cee71dSXin LI>20	short		0443		(target shared library)
37*b6cee71dSXin LI>12	long		>0		not stripped
38*b6cee71dSXin LI>22	short		>0		- version %d
39*b6cee71dSXin LI0	short		0577		CLIPPER COFF executable
40*b6cee71dSXin LI>18	short&074000	000000		C1 R1
41*b6cee71dSXin LI>18	short&074000	004000		C2 R1
42*b6cee71dSXin LI>18	short&074000	010000		C3 R1
43*b6cee71dSXin LI>18	short&074000	074000		TEST
44*b6cee71dSXin LI>20	short		0407		(impure)
45*b6cee71dSXin LI>20	short		0410		(pure)
46*b6cee71dSXin LI>20	short		0411		(separate I&D)
47*b6cee71dSXin LI>20	short		0413		(paged)
48*b6cee71dSXin LI>20	short		0443		(target shared library)
49*b6cee71dSXin LI>12	long		>0		not stripped
50*b6cee71dSXin LI>22	short		>0		- version %d
51*b6cee71dSXin LI>48	long&01		01		alignment trap enabled
52*b6cee71dSXin LI>52	byte		1		-Ctnc
53*b6cee71dSXin LI>52	byte		2		-Ctsw
54*b6cee71dSXin LI>52	byte		3		-Ctpw
55*b6cee71dSXin LI>52	byte		4		-Ctcb
56*b6cee71dSXin LI>53	byte		1		-Cdnc
57*b6cee71dSXin LI>53	byte		2		-Cdsw
58*b6cee71dSXin LI>53	byte		3		-Cdpw
59*b6cee71dSXin LI>53	byte		4		-Cdcb
60*b6cee71dSXin LI>54	byte		1		-Csnc
61*b6cee71dSXin LI>54	byte		2		-Cssw
62*b6cee71dSXin LI>54	byte		3		-Cspw
63*b6cee71dSXin LI>54	byte		4		-Cscb
64*b6cee71dSXin LI4	string		pipe		CLIPPER instruction trace
65*b6cee71dSXin LI4	string		prof		CLIPPER instruction profile
66