xref: /freebsd/contrib/file/magic/Magdir/convex (revision 246e7a2b6494cd991b08ac669ed761ecea0cc98c)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: convex,v 1.8 2012/10/03 23:44:43 christos Exp $
4*b6cee71dSXin LI# convex:  file(1) magic for Convex boxes
5*b6cee71dSXin LI#
6*b6cee71dSXin LI# Convexes are big-endian.
7*b6cee71dSXin LI#
8*b6cee71dSXin LI# /*\
9*b6cee71dSXin LI#  * Below are the magic numbers and tests added for Convex.
10*b6cee71dSXin LI#  * Added at beginning, because they are expected to be used most.
11*b6cee71dSXin LI# \*/
12*b6cee71dSXin LI0	belong	0507	Convex old-style object
13*b6cee71dSXin LI>16	belong	>0	not stripped
14*b6cee71dSXin LI0	belong	0513	Convex old-style demand paged executable
15*b6cee71dSXin LI>16	belong	>0	not stripped
16*b6cee71dSXin LI0	belong	0515	Convex old-style pre-paged executable
17*b6cee71dSXin LI>16	belong	>0	not stripped
18*b6cee71dSXin LI0	belong	0517	Convex old-style pre-paged, non-swapped executable
19*b6cee71dSXin LI>16	belong	>0	not stripped
20*b6cee71dSXin LI0	belong	0x011257	Core file
21*b6cee71dSXin LI#
22*b6cee71dSXin LI# The following are a series of dump format magic numbers.  Each one
23*b6cee71dSXin LI# corresponds to a drastically different dump format.  The first on is
24*b6cee71dSXin LI# the original dump format on a 4.1 BSD or earlier file system.  The
25*b6cee71dSXin LI# second marks the change between the 4.1 file system and the 4.2 file
26*b6cee71dSXin LI# system.  The Third marks the changing of the block size from 1K
27*b6cee71dSXin LI# to 2K to be compatible with an IDC file system.  The fourth indicates
28*b6cee71dSXin LI# a dump that is dependent on Convex Storage Manager, because data in
29*b6cee71dSXin LI# secondary storage is not physically contained within the dump.
30*b6cee71dSXin LI# The restore program uses these number to determine how the data is
31*b6cee71dSXin LI# to be extracted.
32*b6cee71dSXin LI#
33*b6cee71dSXin LI24	belong	=60013	dump format, 4.2 or 4.3 BSD (IDC compatible)
34*b6cee71dSXin LI24	belong	=60014	dump format, Convex Storage Manager by-reference dump
35*b6cee71dSXin LI#
36*b6cee71dSXin LI# what follows is a bunch of bit-mask checks on the flags field of the opthdr.
37*b6cee71dSXin LI# If there is no `=' sign, assume just checking for whether the bit is set?
38*b6cee71dSXin LI#
39*b6cee71dSXin LI0	belong	0601		Convex SOFF
40*b6cee71dSXin LI>88	belong&0x000f0000	=0x00000000	c1
41*b6cee71dSXin LI>88	belong			&0x00010000	c2
42*b6cee71dSXin LI>88	belong			&0x00020000	c2mp
43*b6cee71dSXin LI>88	belong			&0x00040000	parallel
44*b6cee71dSXin LI>88	belong			&0x00080000	intrinsic
45*b6cee71dSXin LI>88	belong			&0x00000001	demand paged
46*b6cee71dSXin LI>88	belong			&0x00000002	pre-paged
47*b6cee71dSXin LI>88	belong			&0x00000004	non-swapped
48*b6cee71dSXin LI>88	belong			&0x00000008	POSIX
49*b6cee71dSXin LI#
50*b6cee71dSXin LI>84	belong			&0x80000000	executable
51*b6cee71dSXin LI>84	belong			&0x40000000	object
52*b6cee71dSXin LI>84	belong&0x20000000	=0		not stripped
53*b6cee71dSXin LI>84	belong&0x18000000	=0x00000000	native fpmode
54*b6cee71dSXin LI>84	belong&0x18000000	=0x10000000	ieee fpmode
55*b6cee71dSXin LI>84	belong&0x18000000	=0x18000000	undefined fpmode
56*b6cee71dSXin LI#
57*b6cee71dSXin LI0	belong			0605		Convex SOFF core
58*b6cee71dSXin LI#
59*b6cee71dSXin LI0	belong			0607		Convex SOFF checkpoint
60*b6cee71dSXin LI>88	belong&0x000f0000	=0x00000000	c1
61*b6cee71dSXin LI>88	belong			&0x00010000	c2
62*b6cee71dSXin LI>88	belong			&0x00020000	c2mp
63*b6cee71dSXin LI>88	belong			&0x00040000	parallel
64*b6cee71dSXin LI>88	belong			&0x00080000	intrinsic
65*b6cee71dSXin LI>88	belong			&0x00000008	POSIX
66*b6cee71dSXin LI#
67*b6cee71dSXin LI>84	belong&0x18000000	=0x00000000	native fpmode
68*b6cee71dSXin LI>84	belong&0x18000000	=0x10000000	ieee fpmode
69*b6cee71dSXin LI>84	belong&0x18000000	=0x18000000	undefined fpmode
70