|
Coda Distributed File System
|
#include <sys/types.h>#include <sys/stat.h>#include <errno.h>#include <fcntl.h>#include <unistd.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include "rwcdb_pack.h"#include "rwcdb.h"
Macros | |
| #define | __USE_UNIX98 |
| #define | _POSIX_C_SOURCE 200809L |
| #define | _XOPEN_SOURCE 500 |
| #define | PAGESIZE (4 * 1024) |
Functions | |
| 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) |
| int | db_file_open (struct db_file *f, const char *name, const int mode) |
| void | db_file_close (struct db_file *f) |
| #define __USE_UNIX98 |
| #define _POSIX_C_SOURCE 200809L |
| #define _XOPEN_SOURCE 500 |
| #define PAGESIZE (4 * 1024) |
| void db_file_close | ( | struct db_file * | f | ) |
| int db_file_flush | ( | struct db_file * | f | ) |
| int db_file_open | ( | struct db_file * | f, |
| const char * | name, | ||
| const int | mode | ||
| ) |