database 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #------------------------------------------------------------------------------
  2. # database: file(1) magic for various databases
  3. #
  4. # extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
  5. #
  6. #
  7. # GDBM magic numbers
  8. # Will be maintained as part of the GDBM distribution in the future.
  9. # <downsj@teeny.org>
  10. 0 belong 0x13579ace GNU dbm 1.x or ndbm database, big endian
  11. 0 lelong 0x13579ace GNU dbm 1.x or ndbm database, little endian
  12. 0 string GDBM GNU dbm 2.x database
  13. #
  14. 0 belong 0x061561 Berkeley DB
  15. >4 belong >2 1.86
  16. >4 belong <3 1.85
  17. >8 belong 4321 Hash/Big Endian
  18. >8 belong 1234 Hash/Little Endian
  19. >4 belong >0 (Version %d,
  20. >12 belong x Bucket Size %d,
  21. >16 belong x Bucket Shift %d,
  22. >20 belong x Directory Size %d,
  23. >24 belong x Segment Size %d,
  24. >28 belong x Segment Shift %d,
  25. >32 belong x Overflow Point %d,
  26. >36 belong x Last Freed %d,
  27. >40 belong x Max Bucket %d,
  28. >44 belong x High Mask 0x%x,
  29. >48 belong x Low Mask 0x%x,
  30. >52 belong x Fill Factor %d,
  31. >56 belong x Number of Keys %d)
  32. #
  33. #
  34. 0 belong 0x053162 Berkeley DB 1.85/1.86 Btree/Big Endian
  35. >4 belong >0 (Version %d,
  36. >8 belong x Page Size %d,
  37. >12 belong x Free Page %d,
  38. >16 belong x Number of Records %d,
  39. >20 belong x Flags 0x%x)
  40. 0 lelong 0x053162 Berkeley DB 1.85/1.86 Btree/Little Endian
  41. >4 lelong >0 (Version %d,
  42. >8 lelong x Page Size %d,
  43. >12 lelong x Free Page %d,
  44. >16 lelong x Number of Records %d,
  45. >20 lelong x Flags 0x%x)
  46. #
  47. #
  48. 12 belong 0x061561 Berkeley DB 2.X Hash/Big Endian
  49. >16 belong >0 (Version %d,
  50. >0 belong x Logical sequence number: file - %d,
  51. >4 belong x offset - %d,
  52. >20 belong x Bucket Size %d,
  53. >24 belong x Overflow Point %d,
  54. >28 belong x Last Freed %d,
  55. >32 belong x Max Bucket %d,
  56. >36 belong x High Mask 0x%x,
  57. >40 belong x Low Mask 0x%x,
  58. >44 belong x Fill Factor %d,
  59. >48 belong x Number of Keys %d)
  60. #
  61. # DB2.X formats from Khimenko Victor <khim@sch57.msk.ru>
  62. #
  63. 12 lelong 0x061561 Berkeley DB 2.X Hash/Little Endian
  64. >16 lelong >0 (Version %d,
  65. >0 lelong x Logical sequence number: file - %d,
  66. >4 lelong x offset - %d,
  67. >20 lelong x Bucket Size %d,
  68. >24 lelong x Overflow Point %d,
  69. >28 lelong x Last Freed %d,
  70. >32 lelong x Max Bucket %d,
  71. >36 lelong x High Mask 0x%x,
  72. >40 lelong x Low Mask 0x%x,
  73. >44 lelong x Fill Factor %d,
  74. >48 lelong x Number of Keys %d)
  75. #
  76. #
  77. 12 belong 0x053162 Berkeley DB 2.X Btree/Big Endian
  78. >16 belong >0 (Version %d,
  79. >0 belong x Logical sequence number: file - %d,
  80. >4 belong x offset - %d,
  81. >20 belong x Page Size %d,
  82. >24 belong x Maxkey %d,
  83. >28 belong x Minkey %d,
  84. >32 belong x Free Page %d)
  85. #
  86. #
  87. 12 lelong 0x053162 Berkeley DB 2.X Btree/Little Endian
  88. >16 lelong >0 (Version %d,
  89. >0 lelong x Logical sequence number: file - %d,
  90. >4 lelong x offset - %d,
  91. >20 lelong x Page Size %d,
  92. >24 lelong x Maxkey %d,
  93. >28 lelong x Minkey %d,
  94. >32 lelong x Free Page %d)