database 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  1. #------------------------------------------------------------------------------
  2. # $File: database,v 1.41 2014/06/03 19:17:27 christos Exp $
  3. # database: file(1) magic for various databases
  4. #
  5. # extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
  6. #
  7. #
  8. # GDBM magic numbers
  9. # Will be maintained as part of the GDBM distribution in the future.
  10. # <downsj@teeny.org>
  11. 0 belong 0x13579ace GNU dbm 1.x or ndbm database, big endian
  12. !:mime application/x-gdbm
  13. 0 lelong 0x13579ace GNU dbm 1.x or ndbm database, little endian
  14. !:mime application/x-gdbm
  15. 0 string GDBM GNU dbm 2.x database
  16. !:mime application/x-gdbm
  17. #
  18. # Berkeley DB
  19. #
  20. # Ian Darwin's file /etc/magic files: big/little-endian version.
  21. #
  22. # Hash 1.85/1.86 databases store metadata in network byte order.
  23. # Btree 1.85/1.86 databases store the metadata in host byte order.
  24. # Hash and Btree 2.X and later databases store the metadata in host byte order.
  25. 0 long 0x00061561 Berkeley DB
  26. !:mime application/x-dbm
  27. >8 belong 4321
  28. >>4 belong >2 1.86
  29. >>4 belong <3 1.85
  30. >>4 belong >0 (Hash, version %d, native byte-order)
  31. >8 belong 1234
  32. >>4 belong >2 1.86
  33. >>4 belong <3 1.85
  34. >>4 belong >0 (Hash, version %d, little-endian)
  35. 0 belong 0x00061561 Berkeley DB
  36. >8 belong 4321
  37. >>4 belong >2 1.86
  38. >>4 belong <3 1.85
  39. >>4 belong >0 (Hash, version %d, big-endian)
  40. >8 belong 1234
  41. >>4 belong >2 1.86
  42. >>4 belong <3 1.85
  43. >>4 belong >0 (Hash, version %d, native byte-order)
  44. 0 long 0x00053162 Berkeley DB 1.85/1.86
  45. >4 long >0 (Btree, version %d, native byte-order)
  46. 0 belong 0x00053162 Berkeley DB 1.85/1.86
  47. >4 belong >0 (Btree, version %d, big-endian)
  48. 0 lelong 0x00053162 Berkeley DB 1.85/1.86
  49. >4 lelong >0 (Btree, version %d, little-endian)
  50. 12 long 0x00061561 Berkeley DB
  51. >16 long >0 (Hash, version %d, native byte-order)
  52. 12 belong 0x00061561 Berkeley DB
  53. >16 belong >0 (Hash, version %d, big-endian)
  54. 12 lelong 0x00061561 Berkeley DB
  55. >16 lelong >0 (Hash, version %d, little-endian)
  56. 12 long 0x00053162 Berkeley DB
  57. >16 long >0 (Btree, version %d, native byte-order)
  58. 12 belong 0x00053162 Berkeley DB
  59. >16 belong >0 (Btree, version %d, big-endian)
  60. 12 lelong 0x00053162 Berkeley DB
  61. >16 lelong >0 (Btree, version %d, little-endian)
  62. 12 long 0x00042253 Berkeley DB
  63. >16 long >0 (Queue, version %d, native byte-order)
  64. 12 belong 0x00042253 Berkeley DB
  65. >16 belong >0 (Queue, version %d, big-endian)
  66. 12 lelong 0x00042253 Berkeley DB
  67. >16 lelong >0 (Queue, version %d, little-endian)
  68. # From Max Bowsher.
  69. 12 long 0x00040988 Berkeley DB
  70. >16 long >0 (Log, version %d, native byte-order)
  71. 12 belong 0x00040988 Berkeley DB
  72. >16 belong >0 (Log, version %d, big-endian)
  73. 12 lelong 0x00040988 Berkeley DB
  74. >16 lelong >0 (Log, version %d, little-endian)
  75. #
  76. #
  77. # Round Robin Database Tool by Tobias Oetiker <oetiker@ee.ethz.ch>
  78. 0 string/b RRD\0 RRDTool DB
  79. >4 string/b x version %s
  80. >>10 short !0 16bit aligned
  81. >>>10 bedouble 8.642135e+130 big-endian
  82. >>>>18 short x 32bit long (m68k)
  83. >>10 short 0
  84. >>>12 long !0 32bit aligned
  85. >>>>12 bedouble 8.642135e+130 big-endian
  86. >>>>>20 long 0 64bit long
  87. >>>>>20 long !0 32bit long
  88. >>>>12 ledouble 8.642135e+130 little-endian
  89. >>>>>24 long 0 64bit long
  90. >>>>>24 long !0 32bit long (i386)
  91. >>>>12 string \x43\x2b\x1f\x5b\x2f\x25\xc0\xc7 middle-endian
  92. >>>>>24 short !0 32bit long (arm)
  93. >>8 quad 0 64bit aligned
  94. >>>16 bedouble 8.642135e+130 big-endian
  95. >>>>24 long 0 64bit long (s390x)
  96. >>>>24 long !0 32bit long (hppa/mips/ppc/s390/SPARC)
  97. >>>16 ledouble 8.642135e+130 little-endian
  98. >>>>28 long 0 64bit long (alpha/amd64/ia64)
  99. >>>>28 long !0 32bit long (armel/mipsel)
  100. #----------------------------------------------------------------------
  101. # ROOT: file(1) magic for ROOT databases
  102. #
  103. 0 string root\0 ROOT file
  104. >4 belong x Version %d
  105. >33 belong x (Compression: %d)
  106. # XXX: Weak magic.
  107. # Alex Ott <ott@jet.msk.su>
  108. ## Paradox file formats
  109. #2 leshort 0x0800 Paradox
  110. #>0x39 byte 3 v. 3.0
  111. #>0x39 byte 4 v. 3.5
  112. #>0x39 byte 9 v. 4.x
  113. #>0x39 byte 10 v. 5.x
  114. #>0x39 byte 11 v. 5.x
  115. #>0x39 byte 12 v. 7.x
  116. #>>0x04 byte 0 indexed .DB data file
  117. #>>0x04 byte 1 primary index .PX file
  118. #>>0x04 byte 2 non-indexed .DB data file
  119. #>>0x04 byte 3 non-incrementing secondary index .Xnn file
  120. #>>0x04 byte 4 secondary index .Ynn file
  121. #>>0x04 byte 5 incrementing secondary index .Xnn file
  122. #>>0x04 byte 6 non-incrementing secondary index .XGn file
  123. #>>0x04 byte 7 secondary index .YGn file
  124. #>>>0x04 byte 8 incrementing secondary index .XGn file
  125. ## XBase database files
  126. # updated by Joerg Jenderek at Feb 2013
  127. # http://www.dbase.com/Knowledgebase/INT/db7_file_fmt.htm
  128. # http://www.clicketyclick.dk/databases/xbase/format/dbf.html
  129. # http://home.f1.htw-berlin.de/scheibl/db/intern/dBase.htm
  130. # inspect VVYYMMDD , where 1<= MM <= 12 and 1<= DD <= 31
  131. 0 ubelong&0x0000FFFF <0x00000C20
  132. # skip Infocom game Z-machine
  133. >2 ubyte >0
  134. # skip Androids *.xml
  135. >>3 ubyte >0
  136. >>>3 ubyte <32
  137. # 1 < version VV
  138. >>>>0 ubyte >1
  139. # skip HELP.CA3 by test for reserved byte ( NULL )
  140. >>>>>27 ubyte 0
  141. # reserved bytes not always 0 ; also found 0x3901 (T4.DBF) ,0x7101 (T5.DBF,T6.DBF)
  142. #>>>>>30 ubeshort x 30NULL?%x
  143. # possible production flag,tag numbers(<=0x30),tag length(<=0x20), reserved (NULL)
  144. >>>>>>24 ubelong&0xffFFFFff >0x01302000
  145. # .DBF or .MDX
  146. >>>>>>24 ubelong&0xffFFFFff <0x01302001
  147. # for Xbase Database file (*.DBF) reserved (NULL) for multi-user
  148. >>>>>>>24 ubelong&0xffFFFFff =0
  149. # test for 2 reserved NULL bytes,transaction and encryption byte flag
  150. >>>>>>>>12 ubelong&0xFFFFfEfE 0
  151. # test for MDX flag
  152. >>>>>>>>>28 ubyte x
  153. >>>>>>>>>28 ubyte&0xf8 0
  154. # header size >= 32
  155. >>>>>>>>>>8 uleshort >31
  156. # skip PIC15736.PCX by test for language driver name or field name
  157. >>>>>>>>>>>32 ubyte >0
  158. #!:mime application/x-dbf; charset=unknown-8bit ??
  159. #!:mime application/x-dbase
  160. >>>>>>>>>>>>0 use xbase-type
  161. # database file
  162. >>>>>>>>>>>>0 ubyte x \b DBF
  163. >>>>>>>>>>>>4 lelong 0 \b, no records
  164. >>>>>>>>>>>>4 lelong >0 \b, %d record
  165. # plural s appended
  166. >>>>>>>>>>>>>4 lelong >1 \bs
  167. # http://www.clicketyclick.dk/databases/xbase/format/dbf_check.html#CHECK_DBF
  168. # 1 <= record size <= 4000 (dBase 3,4) or 32 * KB (=0x8000)
  169. >>>>>>>>>>>>10 uleshort x * %d
  170. # file size = records * record size + header size
  171. >>>>>>>>>>>>1 ubyte x \b, update-date
  172. >>>>>>>>>>>>1 use xbase-date
  173. # http://msdn.microsoft.com/de-de/library/cc483186(v=vs.71).aspx
  174. #>>>>>>>>>>>>29 ubyte =0 \b, codepage ID=0x%x
  175. # 2~cp850 , 3~cp1252 , 0x1b~?? ; what code page is 0x1b ?
  176. >>>>>>>>>>>>29 ubyte >0 \b, codepage ID=0x%x
  177. #>>>>>>>>>>>>28 ubyte&0x01 0 \b, no index file
  178. >>>>>>>>>>>>28 ubyte&0x01 1 \b, with index file .MDX
  179. >>>>>>>>>>>>28 ubyte&0x02 2 \b, with memo .FPT
  180. >>>>>>>>>>>>28 ubyte&0x04 4 \b, DataBaseContainer
  181. # 1st record offset + 1 = header size
  182. >>>>>>>>>>>>8 uleshort >0
  183. >>>>>>>>>>>>(8.s+1) ubyte >0
  184. >>>>>>>>>>>>>8 uleshort >0 \b, at offset %d
  185. >>>>>>>>>>>>>(8.s+1) ubyte >0
  186. >>>>>>>>>>>>>>&-1 string >\0 1st record "%s"
  187. # for multiple index files (*.MDX) Production flag,tag numbers(<=0x30),tag length(<=0x20), reserverd (NULL)
  188. >>>>>>>24 ubelong&0x0133f7ff >0
  189. # test for reserved NULL byte
  190. >>>>>>>>47 ubyte x
  191. # test for valid TAG key format (0x10 or 0)
  192. >>>>>>>>>559 ubyte&0xeF 0
  193. # test MM <= 12
  194. >>>>>>>>>45 ubeshort <0x0C20
  195. >>>>>>>>>>45 ubyte >0
  196. >>>>>>>>>>>46 ubyte <32
  197. >>>>>>>>>>>>46 ubyte >0
  198. #!:mime application/x-mdx
  199. >>>>>>>>>>>>>0 use xbase-type
  200. >>>>>>>>>>>>>0 ubyte x \b MDX
  201. >>>>>>>>>>>>>1 ubyte x \b, creation-date
  202. >>>>>>>>>>>>>1 use xbase-date
  203. >>>>>>>>>>>>>44 ubyte x \b, update-date
  204. >>>>>>>>>>>>>44 use xbase-date
  205. # No.of tags in use (1,2,5,12)
  206. >>>>>>>>>>>>>28 uleshort x \b, %d
  207. # No. of entries in tag (0x30)
  208. >>>>>>>>>>>>>25 ubyte x \b/%d tags
  209. # Length of tag
  210. >>>>>>>>>>>>>26 ubyte x * %d
  211. # 1st tag name_
  212. >>>>>>>>>>>>>548 string x \b, 1st tag "%.11s"
  213. # 2nd tag name
  214. #>>>>>>>>>>>>(26.b+548) string x \b, 2nd tag "%.11s"
  215. #
  216. # Print the xBase names of different version variants
  217. 0 name xbase-type
  218. >0 ubyte <2
  219. # 1 < version
  220. >0 ubyte >1
  221. >>0 ubyte 0x02 FoxBase
  222. # FoxBase+/dBaseIII+, no memo
  223. >>0 ubyte 0x03 FoxBase+/dBase III
  224. !:mime application/x-dbf
  225. # dBASE IV no memo file
  226. >>0 ubyte 0x04 dBase IV
  227. !:mime application/x-dbf
  228. # dBASE V no memo file
  229. >>0 ubyte 0x05 dBase V
  230. !:mime application/x-dbf
  231. >>0 ubyte 0x30 Visual FoxPro
  232. !:mime application/x-dbf
  233. >>0 ubyte 0x31 Visual FoxPro, autoincrement
  234. !:mime application/x-dbf
  235. # Visual FoxPro, with field type Varchar or Varbinary
  236. >>0 ubyte 0x32 Visual FoxPro, with field type Varchar
  237. !:mime application/x-dbf
  238. # dBASE IV SQL, no memo;dbv memo var size (Flagship)
  239. >>0 ubyte 0x43 dBase IV, with SQL table
  240. !:mime application/x-dbf
  241. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  242. #>>0 ubyte 0x62 dBase IV, with SQL table
  243. #!:mime application/x-dbf
  244. # dBASE IV, with memo!!
  245. >>0 ubyte 0x7b dBase IV, with memo
  246. !:mime application/x-dbf
  247. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  248. #>>0 ubyte 0x82 dBase IV, with SQL system
  249. #!:mime application/x-dbf
  250. # FoxBase+/dBaseIII+ with memo .DBT!
  251. >>0 ubyte 0x83 FoxBase+/dBase III, with memo .DBT
  252. !:mime application/x-dbf
  253. # VISUAL OBJECTS (first 1.0 versions) for the Dbase III files (NTX clipper driver); memo file
  254. >>0 ubyte 0x87 VISUAL OBJECTS, with memo file
  255. !:mime application/x-dbf
  256. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  257. #>>0 ubyte 0x8A FoxBase+/dBase III, with memo .DBT
  258. #!:mime application/x-dbf
  259. # dBASE IV with memo!
  260. >>0 ubyte 0x8B dBase IV, with memo .DBT
  261. !:mime application/x-dbf
  262. # dBase IV with SQL Table,no memo?
  263. >>0 ubyte 0x8E dBase IV, with SQL table
  264. !:mime application/x-dbf
  265. # .dbv and .dbt memo (Flagship)?
  266. >>0 ubyte 0xB3 Flagship
  267. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  268. #>>0 ubyte 0xCA dBase IV with memo .DBT
  269. #!:mime application/x-dbf
  270. # dBASE IV with SQL table, with memo .DBT
  271. >>0 ubyte 0xCB dBase IV with SQL table, with memo .DBT
  272. !:mime application/x-dbf
  273. # HiPer-Six format;Clipper SIX, with SMT memo file
  274. >>0 ubyte 0xE5 Clipper SIX with memo
  275. !:mime application/x-dbf
  276. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  277. #>>0 ubyte 0xF4 dBase IV, with SQL table, with memo
  278. #!:mime application/x-dbf
  279. >>0 ubyte 0xF5 FoxPro with memo
  280. !:mime application/x-dbf
  281. # http://msdn.microsoft.com/en-US/library/st4a0s68(v=vs.80).aspx
  282. #>>0 ubyte 0xFA FoxPro 2.x, with memo
  283. #!:mime application/x-dbf
  284. # unknown version (should not happen)
  285. >>0 default x xBase
  286. !:mime application/x-dbf
  287. >>>0 ubyte x (0x%x)
  288. # flags in version byte
  289. # DBT flag (with dBASE III memo .DBT)!!
  290. # >>0 ubyte&0x80 >0 DBT_FLAG=%x
  291. # memo flag ??
  292. # >>0 ubyte&0x08 >0 MEMO_FLAG=%x
  293. # SQL flag ??
  294. # >>0 ubyte&0x70 >0 SQL_FLAG=%x
  295. # test and print the date of xBase .DBF .MDX
  296. 0 name xbase-date
  297. # inspect YYMMDD , where 1<= MM <= 12 and 1<= DD <= 31
  298. >0 ubelong x
  299. >1 ubyte <13
  300. >>1 ubyte >0
  301. >>>2 ubyte >0
  302. >>>>2 ubyte <32
  303. >>>>>0 ubyte x
  304. # YY is interpreted as 20YY or 19YY
  305. >>>>>>0 ubyte <100 \b %.2d
  306. # YY is interpreted 1900+YY; TODO: display yy or 20yy instead 1YY
  307. >>>>>>0 ubyte >99 \b %d
  308. >>>>>1 ubyte x \b-%d
  309. >>>>>2 ubyte x \b-%d
  310. # dBase memo files .DBT or .FPT
  311. # http://msdn.microsoft.com/en-us/library/8599s21w(v=vs.80).aspx
  312. 16 ubyte <4
  313. >16 ubyte !2
  314. >>16 ubyte !1
  315. # next free block index is positive
  316. >>>0 ulelong >0
  317. # skip many JPG. ZIP, BZ2 by test for reserved bytes NULL , 0|2 , 0|1 , low byte of block size
  318. >>>>17 ubelong&0xFFfdFE00 0x00000000
  319. # skip many RAR by test for low byte 0 ,high byte 0|2|even of block size, 0|a|e|d7 , 0|64h
  320. >>>>>20 ubelong&0xFF01209B 0x00000000
  321. # dBASE III
  322. >>>>>>16 ubyte 3
  323. # dBASE III DBT
  324. >>>>>>>0 use xbase-memo-print
  325. # dBASE IV DBT , FoxPro FPT or many PNG , ZIP , DBF garbage
  326. >>>>>>16 ubyte 0
  327. # dBASE IV DBT with DBF name or DBF garbage
  328. >>>>>>>8 ubelong >0x40000000
  329. # skip DBF and catch dBASE IV DBT with DBF name and with non big index of next free block
  330. >>>>>>>>0 ulelong <0x01010002
  331. >>>>>>>>>0 use xbase-memo-print
  332. >>>>>>>8 ubelong 0
  333. # skip MM*DD*.bin by test for for reserved NULL byte
  334. >>>>>>>>508 ubelong 0
  335. # real memo files should contain text here
  336. >>>>>>>>>520 ubelong >0x20202019
  337. >>>>>>>>>>520 ubelong <0xFEFEFEFF
  338. >>>>>>>>>>>0 use xbase-memo-print
  339. # garbage PCX , ZIP , JAR , XPI
  340. >>>>>>>8 default x
  341. # Print the information of dBase DBT or FoxPro FPT memo files
  342. 0 name xbase-memo-print
  343. >0 ubyte x
  344. # test version
  345. # memo file
  346. >>16 ubyte 3 dBase III DBT
  347. >>16 ubyte 0
  348. >>>512 ubelong <0x00000003 FoxPro FPT
  349. # Size of blocks for FoxPro
  350. >>>>6 ubeshort x \b, blocks size %u
  351. # Number of next available block for appending data for FoxPro
  352. >>>>0 ubelong =0 \b, next free block index %u
  353. >>>>0 ubelong !0 \b, next free block index %u
  354. >>>512 default x dBase IV DBT
  355. # DBF file name without extension
  356. >>>>8 string >\0 \b of %-.8s.DBF
  357. # size of blocks ; not reliable 0x2020204C
  358. #>>>>4 ulelong =0 \b, blocks size %u
  359. >>>>4 ulelong !0 \b, blocks size %u
  360. # Block length found 0 , 512
  361. #>>>>20 uleshort =0 \b, block length %u
  362. >>>>20 uleshort !0 \b, block length %u
  363. # Number of next available block for appending data
  364. >>>>0 ulelong =0 \b, next free block index %u
  365. >>>>0 ulelong !0 \b, next free block index %u
  366. >>512 ubelong x
  367. >>>512 ubelong =0xFFFF0800
  368. >>>>520 string >\0 \b, 1st used item "%s"
  369. # FoxPro
  370. >>>512 ubelong <3
  371. # FoxPro memo
  372. >>>>512 ubelong =1
  373. >>>>520 string >\0 \b, 1st used item "%s"
  374. >>>512 default x
  375. # may be deleted memo field
  376. >>>>512 string >\0 \b, 1st item "%s"
  377. # TODO:
  378. # DBASE index file *.NDX
  379. # DBASE Compound Index file *.CDX
  380. # dBASE IV Printer Driver *.PRF
  381. ## End of XBase database stuff
  382. # MS Access database
  383. 4 string Standard\ Jet\ DB Microsoft Access Database
  384. !:mime application/x-msaccess
  385. 4 string Standard\ ACE\ DB Microsoft Access Database
  386. !:mime application/x-msaccess
  387. # TDB database from Samba et al - Martin Pool <mbp@samba.org>
  388. 0 string TDB\ file TDB database
  389. >32 lelong 0x2601196D version 6, little-endian
  390. >>36 lelong x hash size %d bytes
  391. # SE Linux policy database
  392. 0 lelong 0xf97cff8c SE Linux policy
  393. >16 lelong x v%d
  394. >20 lelong 1 MLS
  395. >24 lelong x %d symbols
  396. >28 lelong x %d ocons
  397. # ICE authority file data (Wolfram Kleff)
  398. 2 string ICE ICE authority data
  399. # X11 Xauthority file (Wolfram Kleff)
  400. 10 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  401. 11 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  402. 12 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  403. 13 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  404. 14 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  405. 15 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  406. 16 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  407. 17 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  408. 18 string MIT-MAGIC-COOKIE-1 X11 Xauthority data
  409. # From: Maxime Henrion <mux@FreeBSD.org>
  410. # PostgreSQL's custom dump format, Maxime Henrion <mux@FreeBSD.org>
  411. 0 string PGDMP PostgreSQL custom database dump
  412. >5 byte x - v%d
  413. >6 byte x \b.%d
  414. >5 beshort <0x101 \b-0
  415. >5 beshort >0x100
  416. >>7 byte x \b-%d
  417. # Type: Advanced Data Format (ADF) database
  418. # URL: http://www.grc.nasa.gov/WWW/cgns/adf/
  419. # From: Nicolas Chauvat <nicolas.chauvat@logilab.fr>
  420. 0 string @(#)ADF\ Database CGNS Advanced Data Format
  421. # Tokyo Cabinet magic data
  422. # http://tokyocabinet.sourceforge.net/index.html
  423. 0 string ToKyO\ CaBiNeT\n Tokyo Cabinet
  424. >14 string x \b (%s)
  425. >32 byte 0 \b, Hash
  426. !:mime application/x-tokyocabinet-hash
  427. >32 byte 1 \b, B+ tree
  428. !:mime application/x-tokyocabinet-btree
  429. >32 byte 2 \b, Fixed-length
  430. !:mime application/x-tokyocabinet-fixed
  431. >32 byte 3 \b, Table
  432. !:mime application/x-tokyocabinet-table
  433. >33 byte &1 \b, [open]
  434. >33 byte &2 \b, [fatal]
  435. >34 byte x \b, apow=%d
  436. >35 byte x \b, fpow=%d
  437. >36 byte &0x01 \b, [large]
  438. >36 byte &0x02 \b, [deflate]
  439. >36 byte &0x04 \b, [bzip]
  440. >36 byte &0x08 \b, [tcbs]
  441. >36 byte &0x10 \b, [excodec]
  442. >40 lequad x \b, bnum=%lld
  443. >48 lequad x \b, rnum=%lld
  444. >56 lequad x \b, fsiz=%lld
  445. # Type: QDBM Quick Database Manager
  446. # From: Benoit Sibaud <bsibaud@april.org>
  447. 0 string \\[depot\\]\n\f Quick Database Manager, little endian
  448. 0 string \\[DEPOT\\]\n\f Quick Database Manager, big endian
  449. # Type: TokyoCabinet database
  450. # URL: http://tokyocabinet.sourceforge.net/
  451. # From: Benoit Sibaud <bsibaud@april.org>
  452. 0 string ToKyO\ CaBiNeT\n TokyoCabinet database
  453. >14 string x (version %s)
  454. # From: Stephane Blondon http://www.yaal.fr
  455. # Database file for Zope (done by FileStorage)
  456. 0 string FS21 Zope Object Database File Storage (data)
  457. # Cache file for the database of Zope (done by ClientStorage)
  458. 0 string ZEC3 Zope Object Database Client Cache File (data)
  459. # IDA (Interactive Disassembler) database
  460. 0 string IDA1 IDA (Interactive Disassembler) database