2 #------------------------------------------------------------------------------
3 # $File: clipper,v 1.6 2009/09/19 16:28:08 christos Exp $
4 # clipper: file(1) magic for Intergraph (formerly Fairchild) Clipper.
6 # XXX - what byte order does the Clipper use?
8 # XXX - what's the "!" stuff:
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
15 # I shall assume it's ANDing the field with the first value and
16 # comparing it with the second, and rewrite it as:
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
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).
31 0 short 0575 CLIPPER COFF executable (VAX #)
32 >20 short 0407 (impure)
33 >20 short 0410 (5.2 compatible)
35 >20 short 0413 (demand paged)
36 >20 short 0443 (target shared library)
37 >12 long >0 not stripped
38 >22 short >0 - version %ld
39 0 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)
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 %ld
51 >48 long&01 01 alignment trap enabled
64 4 string pipe CLIPPER instruction trace
65 4 string prof CLIPPER instruction profile