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