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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Comments added for rust rewrite
*/
/*
* blkno = hash & hmask
* bitno = blkno + hmask
*
* hash => 1001 1101 (0x9d 157)
* hmask => 0000 1111 (0x0f 15)
* blkno => 0000 1101 (0x0d 13)
* bitno => 0001 1100 (0x1c 28)
*/
long bitno; /* Bit position in dir file */
long maxbno; /* Max bulk number of dir file - bit size of file */
long blkno; /* pag bulk number */
long hmask; /* Hash mask with consecutiv ones in lower bits */
char pagbuf; /* Read buffer for pag file */
char dirbuf; /* Read buffer for dir file */
int dirf; /* .dir file pointer */
int pagf; /* .pag file pointer */
/*
* The datum object points to sub-array inside the pagbuf
*/
typedef struct
datum;
datum ;
datum ;
datum ;
datum ;
datum ;
long ;
long ;