25 #include <yaz/yconfig.h>
30 #define HASH_BUCKET 15
48 #define HASH_BSIZE sizeof(struct CFile_ph_bucket)
51 #define CFILE_STATE_HASH 1
54 #define CFILE_STATE_FLAT 2
91 int wflag,
int *firstp);
CFile cf_open(MFile mf, MFile_area area, const char *fname, int block_size, int wflag, int *firstp)
struct CFile_struct * CFile
All in-memory information per CFile.
int cf_read(CFile cf, zint no, int offset, int nbytes, void *buf)
reads block from commit area
int cf_commit(CFile cf) ZEBRA_GCC_ATTR((warn_unused_result))
int cf_write(CFile cf, zint no, int offset, int nbytes, const void *buf)
writes block to commit area
#define HASH_BUCKET
number of blocks in hash bucket
CFile hash structure info in memory.
struct CFile_hash_bucket * lru_next
struct CFile_ph_bucket ph
struct CFile_hash_bucket * h_next
struct CFile_hash_bucket * lru_prev
struct CFile_hash_bucket ** h_prev
CFile hash structure on disc.
All in-memory information per CFile.
struct CFile_hash_bucket ** parray
struct CFile_hash_bucket * bucket_lru_back
struct CFile_hash_bucket * bucket_lru_front
zint max_bucket_in_memory
#define ZEBRA_GCC_ATTR(x)