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