convex revision 284194
1203134Sthompsa
2205042Sthompsa#------------------------------------------------------------------------------
3205042Sthompsa# $File: convex,v 1.8 2012/10/03 23:44:43 christos Exp $
4205042Sthompsa# convex:  file(1) magic for Convex boxes
5260219Skevlo#
6203134Sthompsa# Convexes are big-endian.
7203134Sthompsa#
8203134Sthompsa# /*\
9203134Sthompsa#  * Below are the magic numbers and tests added for Convex.
10203134Sthompsa#  * Added at beginning, because they are expected to be used most.
11203134Sthompsa# \*/
12203134Sthompsa0	belong	0507	Convex old-style object
13203134Sthompsa>16	belong	>0	not stripped
14203134Sthompsa0	belong	0513	Convex old-style demand paged executable
15203134Sthompsa>16	belong	>0	not stripped
16203134Sthompsa0	belong	0515	Convex old-style pre-paged executable
17203134Sthompsa>16	belong	>0	not stripped
18203134Sthompsa0	belong	0517	Convex old-style pre-paged, non-swapped executable
19203134Sthompsa>16	belong	>0	not stripped
20203134Sthompsa0	belong	0x011257	Core file
21203134Sthompsa#
22203134Sthompsa# The following are a series of dump format magic numbers.  Each one
23203134Sthompsa# corresponds to a drastically different dump format.  The first on is
24257955Skevlo# the original dump format on a 4.1 BSD or earlier file system.  The
25203134Sthompsa# second marks the change between the 4.1 file system and the 4.2 file
26203134Sthompsa# system.  The Third marks the changing of the block size from 1K
27203134Sthompsa# to 2K to be compatible with an IDC file system.  The fourth indicates
28203134Sthompsa# a dump that is dependent on Convex Storage Manager, because data in
29203134Sthompsa# secondary storage is not physically contained within the dump.
30203134Sthompsa# The restore program uses these number to determine how the data is
31203134Sthompsa# to be extracted.
32203134Sthompsa#
33203134Sthompsa24	belong	=60013	dump format, 4.2 or 4.3 BSD (IDC compatible)
34203134Sthompsa24	belong	=60014	dump format, Convex Storage Manager by-reference dump
35203134Sthompsa#
36203134Sthompsa# what follows is a bunch of bit-mask checks on the flags field of the opthdr.
37203134Sthompsa# If there is no `=' sign, assume just checking for whether the bit is set?
38203134Sthompsa#
39203134Sthompsa0	belong	0601		Convex SOFF
40203134Sthompsa>88	belong&0x000f0000	=0x00000000	c1
41203134Sthompsa>88	belong			&0x00010000	c2
42203134Sthompsa>88	belong			&0x00020000	c2mp
43203134Sthompsa>88	belong			&0x00040000	parallel
44203134Sthompsa>88	belong			&0x00080000	intrinsic
45203134Sthompsa>88	belong			&0x00000001	demand paged
46203134Sthompsa>88	belong			&0x00000002	pre-paged
47203134Sthompsa>88	belong			&0x00000004	non-swapped
48203134Sthompsa>88	belong			&0x00000008	POSIX
49203134Sthompsa#
50203134Sthompsa>84	belong			&0x80000000	executable
51257176Sglebius>84	belong			&0x40000000	object
52203134Sthompsa>84	belong&0x20000000	=0		not stripped
53203134Sthompsa>84	belong&0x18000000	=0x00000000	native fpmode
54203134Sthompsa>84	belong&0x18000000	=0x10000000	ieee fpmode
55203134Sthompsa>84	belong&0x18000000	=0x18000000	undefined fpmode
56203134Sthompsa#
57203134Sthompsa0	belong			0605		Convex SOFF core
58203134Sthompsa#
59203134Sthompsa0	belong			0607		Convex SOFF checkpoint
60203134Sthompsa>88	belong&0x000f0000	=0x00000000	c1
61203134Sthompsa>88	belong			&0x00010000	c2
62203134Sthompsa>88	belong			&0x00020000	c2mp
63203134Sthompsa>88	belong			&0x00040000	parallel
64203134Sthompsa>88	belong			&0x00080000	intrinsic
65203134Sthompsa>88	belong			&0x00000008	POSIX
66203134Sthompsa#
67206358Srpaulo>84	belong&0x18000000	=0x00000000	native fpmode
68203134Sthompsa>84	belong&0x18000000	=0x10000000	ieee fpmode
69203134Sthompsa>84	belong&0x18000000	=0x18000000	undefined fpmode
70203134Sthompsa