25 #include <sys/types.h>
47 bf->
all_data = xmalloc(block_size * cache);
61 for (i=0; i<cache-1; i++)
66 for (i=0; i<cache; i++)
81 dbf->
bf =
bf_open(bfs, name, block_size, rw);
BFile bf_open(BFiles bfs, const char *name, int block_size, int wflag)
opens and returns a Block file handle
struct Dict_file_struct * Dict_BFile
Dict_BFile dict_bf_open(BFiles bfs, const char *name, int block_size, int cache, int rw)
void dict_bf_compact(Dict_BFile dbf)
static void common_init(Dict_BFile bf, int block_size, int cache)
struct Dict_file_block * h_next
struct Dict_file_block * free_list
struct Dict_file_block * lru_front
struct Dict_file_block * lru_back
struct Dict_file_block ** hash_array
struct Dict_file_block * all_blocks