30 #include <yaz/yconfig.h>
197 double *used_bytes,
double *max_bytes);
215 double *used_bytes,
double *max_bytes);
int bf_read(BFile bf, zint no, int offset, int nbytes, void *buf)
read from block file (may call exit)
struct BFile_struct * BFile
A Block File.
int bf_write2(BFile bf, zint no, int offset, int nbytes, const void *buf) ZEBRA_GCC_ATTR((warn_unused_result))
writes block of bytes to file
int bf_read2(BFile bf, zint no, int offset, int nbytes, void *buf) ZEBRA_GCC_ATTR((warn_unused_result))
read from block file
ZEBRA_RES bf_cache(BFiles bfs, const char *spec)
enables or disables shadow for block files
int bfs_register_directory_stat(BFiles bfs, int no, const char **directory, double *used_bytes, double *max_bytes)
void bf_close(BFile bf)
closes a Block file (may call exit)
BFile bf_open(BFiles bfs, const char *name, int block_size, int wflag)
opens and returns a Block file handle
int bf_commitExec(BFiles bfs) ZEBRA_GCC_ATTR((warn_unused_result))
Executes commit operation.
int bf_write(BFile bf, zint no, int offset, int nbytes, const void *buf)
writes block of bytes to file (may call exit)
void bf_reset(BFiles bfs)
Removes register and shadow completely.
void bf_commitClean(BFiles bfs, const char *spec)
Cleans shadow files (remove them)
int bf_close2(BFile bf)
closes a Block file
int bfs_shadow_directory_stat(BFiles bfs, int no, const char **directory, double *used_bytes, double *max_bytes)
BFiles bfs_create(const char *spec, const char *base)
creates a Block files collection
void bfs_destroy(BFiles bfiles)
destroys a block files handle
struct BFiles_struct * BFiles
A collection of BFile(s).
int bf_commitExists(BFiles bfs)
Check if there is content in shadow area (to be committed).
#define ZEBRA_GCC_ATTR(x)
short ZEBRA_RES
Common return type for Zebra API.