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