Main Page | Namespace List | Class List | File List | Class Members | File Members | Related Pages

cdb_make.c File Reference

#include "readwrite.h"
#include "seek.h"
#include "error.h"
#include "alloc.h"
#include "cdb.h"
#include "cdb_make.h"

Include dependency graph for cdb_make.c:

Include dependency graph

Go to the source code of this file.

Functions

int cdb_make_start (struct cdb_make *c, int fd)
int cdb_make_addend (struct cdb_make *c, unsigned int keylen, unsigned int datalen, uint32 h)
int cdb_make_addbegin (struct cdb_make *c, unsigned int keylen, unsigned int datalen)
int cdb_make_add (struct cdb_make *c, char *key, unsigned int keylen, char *data, unsigned int datalen)
int cdb_make_finish (struct cdb_make *c)


Function Documentation

int cdb_make_add struct cdb_make c,
char *  key,
unsigned int  keylen,
char *  data,
unsigned int  datalen
 

Definition at line 65 of file cdb_make.c.

References cdb_make::b, buffer_putalign(), cdb_hash(), cdb_make_addbegin(), and cdb_make_addend().

Here is the call graph for this function:

int cdb_make_addbegin struct cdb_make c,
unsigned int  keylen,
unsigned int  datalen
 

Definition at line 52 of file cdb_make.c.

References cdb_make::b, buffer_putalign(), errno, error_nomem, and uint32_pack().

Referenced by cdb_make_add().

Here is the call graph for this function:

int cdb_make_addend struct cdb_make c,
unsigned int  keylen,
unsigned int  datalen,
uint32  h
 

Definition at line 30 of file cdb_make.c.

References alloc(), CDB_HPLIST, cdb_hp::h, cdb_make::head, cdb_hplist::hp, cdb_make::numentries, cdb_make::pos, and uint32.

Referenced by cdb_make_add().

Here is the call graph for this function:

int cdb_make_finish struct cdb_make c  ) 
 

Definition at line 73 of file cdb_make.c.

References alloc(), cdb_make::b, buffer_flush(), buffer_putalign(), buffer_putflush(), cdb_make::count, errno, error_nomem, cdb_make::fd, cdb_make::final, cdb_hp::h, cdb_make::hash, cdb_make::head, cdb_hplist::next, cdb_make::numentries, cdb_hp::p, cdb_make::pos, seek_begin, cdb_make::split, cdb_make::start, uint32, and uint32_pack().

Here is the call graph for this function:

int cdb_make_start struct cdb_make c,
int  fd
 

Definition at line 10 of file cdb_make.c.

References cdb_make::b, cdb_make::bspace, buffer_init(), cdb_make::fd, cdb_make::final, cdb_make::hash, cdb_make::head, cdb_make::numentries, cdb_make::pos, seek_set(), cdb_make::split, and write().

Here is the call graph for this function:


Generated on Mon Apr 26 09:49:24 2004 for ConstantDataStore by doxygen 1.3.6-20040222