database 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. # Berkeley DB
  15. #
  16. # Ian Darwin's file /etc/magic files: big/little-endian version.
  17. #
  18. # Hash 1.85/1.86 databases store metadata in network byte order.
  19. # Btree 1.85/1.86 databases store the metadata in host byte order.
  20. # Hash and Btree 2.X and later databases store the metadata in host byte order.
  21. 0 long 0x00061561 Berkeley DB
  22. >8 belong 4321
  23. >>4 belong >2 1.86
  24. >>4 belong <3 1.85
  25. >>4 belong >0 (Hash, version %d, native byte-order)
  26. >8 belong 1234
  27. >>4 belong >2 1.86
  28. >>4 belong <3 1.85
  29. >>4 belong >0 (Hash, version %d, little-endian)
  30. 0 belong 0x00061561 Berkeley DB
  31. >8 belong 4321
  32. >>4 belong >2 1.86
  33. >>4 belong <3 1.85
  34. >>4 belong >0 (Hash, version %d, big-endian)
  35. >8 belong 1234
  36. >>4 belong >2 1.86
  37. >>4 belong <3 1.85
  38. >>4 belong >0 (Hash, version %d, native byte-order)
  39. 0 long 0x00053162 Berkeley DB 1.85/1.86
  40. >4 long >0 (Btree, version %d, native byte-order)
  41. 0 belong 0x00053162 Berkeley DB 1.85/1.86
  42. >4 belong >0 (Btree, version %d, big-endian)
  43. 0 lelong 0x00053162 Berkeley DB 1.85/1.86
  44. >4 lelong >0 (Btree, version %d, little-endian)
  45. 12 long 0x00061561 Berkeley DB
  46. >16 long >0 (Hash, version %d, native byte-order)
  47. 12 belong 0x00061561 Berkeley DB
  48. >16 belong >0 (Hash, version %d, big-endian)
  49. 12 lelong 0x00061561 Berkeley DB
  50. >16 lelong >0 (Hash, version %d, little-endian)
  51. 12 long 0x00053162 Berkeley DB
  52. >16 long >0 (Btree, version %d, native byte-order)
  53. 12 belong 0x00053162 Berkeley DB
  54. >16 belong >0 (Btree, version %d, big-endian)
  55. 12 lelong 0x00053162 Berkeley DB
  56. >16 lelong >0 (Btree, version %d, little-endian)
  57. 12 long 0x00042253 Berkeley DB
  58. >16 long >0 (Queue, version %d, native byte-order)
  59. 12 belong 0x00042253 Berkeley DB
  60. >16 belong >0 (Queue, version %d, big-endian)
  61. 12 lelong 0x00042253 Berkeley DB
  62. >16 lelong >0 (Queue, version %d, little-endian)
  63. #
  64. #
  65. # Round Robin Database Tool by Tobias Oetiker <oetiker@ee.ethz.ch>
  66. 0 string RRD RRDTool DB
  67. >4 string x version %s
  68. # TDB database from Samba et al - Martin Pool <mbp@samba.org>
  69. 0 string TDB\ file TDB database
  70. >32 lelong =0x2601196D version 6, little-endian
  71. >>36 lelong x hash size %d bytes