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