database 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 Hash file
  15. >4 belong >0 (Version %d,
  16. >8 belong 1234 Little Endian,
  17. >8 belong 4321 Big Endian,
  18. >12 belong x Bucket Size %d,
  19. >16 belong x Bucket Shift %d,
  20. >20 belong x Directory Size %d,
  21. >24 belong x Segment Size %d,
  22. >28 belong x Segment Shift %d,
  23. >32 belong x Overflow Point %d,
  24. >36 belong x Last Freed %d,
  25. >40 belong x Max Bucket %d,
  26. >44 belong x High Mask 0x%x,
  27. >48 belong x Low Mask 0x%x,
  28. >52 belong x Fill Factor %d,
  29. >56 belong x Number of Keys %d)
  30. #
  31. #
  32. 0 belong 0x053162 Berkeley DB Btree file
  33. >4 belong >0 (Version %d,
  34. >8 belong x Page Size %d,
  35. >12 belong x Free Page %d,
  36. >16 belong x Number of Records %d,
  37. >20 belong x Flags 0x%x)