Coda Distributed File System
Classes | Functions
rwcdb_file.h File Reference
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for rwcdb_file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  db_file
 

Functions

int db_file_open (struct db_file *f, const char *name, const int mode)
 
void db_file_close (struct db_file *f)
 
int db_file_seek (struct db_file *f, const uint32_t pos)
 
int db_file_mread (struct db_file *f, void **data, const uint32_t len, const uint32_t pos)
 
int db_file_write (struct db_file *f, void *data, uint32_t len)
 
int db_file_flush (struct db_file *f)
 
int db_readints (struct db_file *f, uint32_t *a, uint32_t *b, uint32_t pos)
 

Function Documentation

◆ db_file_close()

void db_file_close ( struct db_file f)

◆ db_file_flush()

int db_file_flush ( struct db_file f)

◆ db_file_mread()

int db_file_mread ( struct db_file f,
void **  data,
const uint32_t  len,
const uint32_t  pos 
)

◆ db_file_open()

int db_file_open ( struct db_file f,
const char *  name,
const int  mode 
)

◆ db_file_seek()

int db_file_seek ( struct db_file f,
const uint32_t  pos 
)

◆ db_file_write()

int db_file_write ( struct db_file f,
void *  data,
uint32_t  len 
)

◆ db_readints()

int db_readints ( struct db_file f,
uint32_t a,
uint32_t b,
uint32_t  pos 
)