summaryrefslogtreecommitdiff
path: root/usr.bin/file/magdir/database
blob: 9b59cc7b2099506b733a3859396a90e2ab5d80ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

#------------------------------------------------------------------------------
# database:  file(1) magic for various databases
#
# extracted from header/code files by Graeme Wilford (eep2gw@ee.surrey.ac.uk)
#
0	long		0x13579ace	GNU gdbm or ndbm database
#
0	belong	0x061561	Berkeley DB Hash file
>4	belong	>0		(Version %d,
>8	belong	1234		Little Endian,
>8	belong	4321		Big Endian,
>12	belong	x		Bucket Size %d,
>16	belong	x		Directory Size %d,
>20	belong	x		Segment Size %d,
>24	belong	x		Segment Shift %d,
>28	belong	x		Overflow Point %d,
>32	belong	x		Last Freed %d,
>36	belong	x		Max Bucket %d,
>40	belong	x		High Mask 0x%x,
>44	belong	x		Low Mask 0x%x,
>48	belong	x		Fill Factor %d,
>52	belong	x		Number of Keys %d)
#
0	belong	0x053162	Berkeley DB Btree file
>4	belong	>0		(Version %d,
>8	belong	x		Page Size %d,
>12	belong	x		Free Page %d,
>16	belong	x		Number of Records %d,
>20	belong	x		Flags 0x%x)