xref: /dragonfly/contrib/file/magic/Magdir/convex (revision e8af9738)
1f72f8299SJan Lentfer
2327e51cbSPeter Avalos#------------------------------------------------------------------------------
3*e8af9738SPeter Avalos# $File: convex,v 1.8 2012/10/03 23:44:43 christos Exp $
4327e51cbSPeter Avalos# convex:  file(1) magic for Convex boxes
5327e51cbSPeter Avalos#
6327e51cbSPeter Avalos# Convexes are big-endian.
7327e51cbSPeter Avalos#
8327e51cbSPeter Avalos# /*\
9327e51cbSPeter Avalos#  * Below are the magic numbers and tests added for Convex.
10327e51cbSPeter Avalos#  * Added at beginning, because they are expected to be used most.
11327e51cbSPeter Avalos# \*/
12327e51cbSPeter Avalos0	belong	0507	Convex old-style object
13327e51cbSPeter Avalos>16	belong	>0	not stripped
14327e51cbSPeter Avalos0	belong	0513	Convex old-style demand paged executable
15327e51cbSPeter Avalos>16	belong	>0	not stripped
16327e51cbSPeter Avalos0	belong	0515	Convex old-style pre-paged executable
17327e51cbSPeter Avalos>16	belong	>0	not stripped
18327e51cbSPeter Avalos0	belong	0517	Convex old-style pre-paged, non-swapped executable
19327e51cbSPeter Avalos>16	belong	>0	not stripped
20327e51cbSPeter Avalos0	belong	0x011257	Core file
21327e51cbSPeter Avalos#
22327e51cbSPeter Avalos# The following are a series of dump format magic numbers.  Each one
23327e51cbSPeter Avalos# corresponds to a drastically different dump format.  The first on is
24327e51cbSPeter Avalos# the original dump format on a 4.1 BSD or earlier file system.  The
25327e51cbSPeter Avalos# second marks the change between the 4.1 file system and the 4.2 file
26327e51cbSPeter Avalos# system.  The Third marks the changing of the block size from 1K
27327e51cbSPeter Avalos# to 2K to be compatible with an IDC file system.  The fourth indicates
28327e51cbSPeter Avalos# a dump that is dependent on Convex Storage Manager, because data in
29327e51cbSPeter Avalos# secondary storage is not physically contained within the dump.
30327e51cbSPeter Avalos# The restore program uses these number to determine how the data is
31327e51cbSPeter Avalos# to be extracted.
32327e51cbSPeter Avalos#
33327e51cbSPeter Avalos24	belong	=60013	dump format, 4.2 or 4.3 BSD (IDC compatible)
34327e51cbSPeter Avalos24	belong	=60014	dump format, Convex Storage Manager by-reference dump
35327e51cbSPeter Avalos#
36327e51cbSPeter Avalos# what follows is a bunch of bit-mask checks on the flags field of the opthdr.
37327e51cbSPeter Avalos# If there is no `=' sign, assume just checking for whether the bit is set?
38327e51cbSPeter Avalos#
39327e51cbSPeter Avalos0	belong	0601		Convex SOFF
40327e51cbSPeter Avalos>88	belong&0x000f0000	=0x00000000	c1
41327e51cbSPeter Avalos>88	belong			&0x00010000	c2
42327e51cbSPeter Avalos>88	belong			&0x00020000	c2mp
43327e51cbSPeter Avalos>88	belong			&0x00040000	parallel
44327e51cbSPeter Avalos>88	belong			&0x00080000	intrinsic
45327e51cbSPeter Avalos>88	belong			&0x00000001	demand paged
46327e51cbSPeter Avalos>88	belong			&0x00000002	pre-paged
47327e51cbSPeter Avalos>88	belong			&0x00000004	non-swapped
48327e51cbSPeter Avalos>88	belong			&0x00000008	POSIX
49327e51cbSPeter Avalos#
50327e51cbSPeter Avalos>84	belong			&0x80000000	executable
51327e51cbSPeter Avalos>84	belong			&0x40000000	object
52327e51cbSPeter Avalos>84	belong&0x20000000	=0		not stripped
53327e51cbSPeter Avalos>84	belong&0x18000000	=0x00000000	native fpmode
54327e51cbSPeter Avalos>84	belong&0x18000000	=0x10000000	ieee fpmode
55327e51cbSPeter Avalos>84	belong&0x18000000	=0x18000000	undefined fpmode
56327e51cbSPeter Avalos#
57327e51cbSPeter Avalos0	belong			0605		Convex SOFF core
58327e51cbSPeter Avalos#
59327e51cbSPeter Avalos0	belong			0607		Convex SOFF checkpoint
60327e51cbSPeter Avalos>88	belong&0x000f0000	=0x00000000	c1
61327e51cbSPeter Avalos>88	belong			&0x00010000	c2
62327e51cbSPeter Avalos>88	belong			&0x00020000	c2mp
63327e51cbSPeter Avalos>88	belong			&0x00040000	parallel
64327e51cbSPeter Avalos>88	belong			&0x00080000	intrinsic
65327e51cbSPeter Avalos>88	belong			&0x00000008	POSIX
66327e51cbSPeter Avalos#
67327e51cbSPeter Avalos>84	belong&0x18000000	=0x00000000	native fpmode
68327e51cbSPeter Avalos>84	belong&0x18000000	=0x10000000	ieee fpmode
69327e51cbSPeter Avalos>84	belong&0x18000000	=0x18000000	undefined fpmode
70