convex 2.7 KB

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