convex revision 68349
1148382Spjd#------------------------------------------------------------------------------
2148382Spjd# convex:  file(1) magic for Convex boxes
3148382Spjd#
4148382Spjd# Convexes are big-endian.
5148382Spjd#
6148382Spjd# /*\
7148382Spjd#  * Below are the magic numbers and tests added for Convex.
8148382Spjd#  * Added at beginning, because they are expected to be used most.
9148382Spjd# \*/
10148382Spjd0	belong	0507	Convex old-style object
11148382Spjd>16	belong	>0	not stripped
12148382Spjd0	belong	0513	Convex old-style demand paged executable
13155174Spjd>16	belong	>0	not stripped
14148382Spjd0	belong	0515	Convex old-style pre-paged executable
15148382Spjd>16	belong	>0	not stripped
16148382Spjd0	belong	0517	Convex old-style pre-paged, non-swapped executable
17148382Spjd>16	belong	>0	not stripped
18148382Spjd0	belong	0x011257	Core file
19148382Spjd#
20148382Spjd# The following are a series of dump format magic numbers.  Each one
21148382Spjd# corresponds to a drastically different dump format.  The first on is
22148382Spjd# the original dump format on a 4.1 BSD or earlier file system.  The
23148382Spjd# second marks the change between the 4.1 file system and the 4.2 file
24148382Spjd# system.  The Third marks the changing of the block size from 1K
25148382Spjd# to 2K to be compatible with an IDC file system.  The fourth indicates
26148382Spjd# a dump that is dependent on Convex Storage Manager, because data in
27154473Spjd# secondary storage is not physically contained within the dump.
28154473Spjd# The restore program uses these number to determine how the data is
29154473Spjd# to be extracted.
30148382Spjd#
31148382Spjd24	belong	=60011	dump format, 4.1 BSD or earlier
32148382Spjd24	belong	=60012	dump format, 4.2 or 4.3 BSD without IDC
33148382Spjd24	belong	=60013	dump format, 4.2 or 4.3 BSD (IDC compatible)
34148382Spjd24	belong	=60014	dump format, Convex Storage Manager by-reference dump
35148382Spjd#
36148382Spjd# what follows is a bunch of bit-mask checks on the flags field of the opthdr.
37148382Spjd# If there is no `=' sign, assume just checking for whether the bit is set?
38148382Spjd#
39148382Spjd0	belong	0601		Convex SOFF
40148382Spjd>88	belong&0x000f0000	=0x00000000	c1
41148382Spjd>88	belong			&0x00010000	c2
42148382Spjd>88	belong			&0x00020000	c2mp
43148382Spjd>88	belong			&0x00040000	parallel
44254936Smav>88	belong			&0x00080000	intrinsic
45254936Smav>88	belong			&0x00000001	demand paged
46148382Spjd>88	belong			&0x00000002	pre-paged
47227309Sed>88	belong			&0x00000004	non-swapped
48227309Sed>88	belong			&0x00000008	POSIX
49153251Spjd#
50254936Smav>84	belong			&0x80000000	executable
51254936Smav>84	belong			&0x40000000	object
52153251Spjd>84	belong&0x20000000	=0		not stripped
53153251Spjd>84	belong&0x18000000	=0x00000000	native fpmode
54153251Spjd>84	belong&0x18000000	=0x10000000	ieee fpmode
55148382Spjd>84	belong&0x18000000	=0x18000000	undefined fpmode
56254936Smav#
57254936Smav0	belong			0605		Convex SOFF core
58254936Smav#
59254936Smav0	belong			0607		Convex SOFF checkpoint
60254936Smav>88	belong&0x000f0000	=0x00000000	c1
61254936Smav>88	belong			&0x00010000	c2
62254936Smav>88	belong			&0x00020000	c2mp
63254936Smav>88	belong			&0x00040000	parallel
64254936Smav>88	belong			&0x00080000	intrinsic
65254936Smav>88	belong			&0x00000008	POSIX
66254936Smav#
67254936Smav>84	belong&0x18000000	=0x00000000	native fpmode
68254936Smav>84	belong&0x18000000	=0x10000000	ieee fpmode
69254936Smav>84	belong&0x18000000	=0x18000000	undefined fpmode
70254936Smav