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

cdb.h File Reference

#include "uint32.h"

Include dependency graph for cdb.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  cdb

Defines

#define CDB_HASHSTART   5381

Functions

uint32 cdb_hashadd (uint32, unsigned char)
uint32 cdb_hash (char *, unsigned int)
void cdb_free (struct cdb *)
void cdb_init (struct cdb *, int fd)
int cdb_read (struct cdb *, char *, unsigned int, uint32)
void cdb_findstart (struct cdb *)
int cdb_findnext (struct cdb *, char *, unsigned int)
int cdb_find (struct cdb *, char *, unsigned int)


Define Documentation

#define CDB_HASHSTART   5381
 

Definition at line 12 of file cdb.h.

Referenced by cdb_hash().


Function Documentation

int cdb_find struct cdb ,
char *  ,
unsigned  int
 

Definition at line 132 of file cdb.c.

References cdb_findnext(), and cdb_findstart().

Here is the call graph for this function:

int cdb_findnext struct cdb ,
char *  ,
unsigned  int
 

Definition at line 87 of file cdb.c.

References cdb_hash(), cdb_read(), cdb::dlen, cdb::dpos, cdb::hpos, cdb::hslots, cdb::khash, cdb::kpos, cdb::loop, uint32, and uint32_unpack().

Referenced by cdb_find().

Here is the call graph for this function:

void cdb_findstart struct cdb  ) 
 

Definition at line 20 of file cdb.c.

References cdb::loop.

Referenced by cdb_find(), and cdb_init().

void cdb_free struct cdb  ) 
 

Definition at line 12 of file cdb.c.

References cdb::map, and cdb::size.

Referenced by cdb_init().

uint32 cdb_hash char *  ,
unsigned  int
 

Definition at line 11 of file cdb_hash.c.

References cdb_hashadd(), CDB_HASHSTART, and uint32.

Referenced by cdb_findnext(), and cdb_make_add().

Here is the call graph for this function:

uint32 cdb_hashadd uint32  ,
unsigned  char
 

Definition at line 5 of file cdb_hash.c.

References uint32.

Referenced by cdb_hash().

void cdb_init struct cdb ,
int  fd
 

Definition at line 25 of file cdb.c.

References cdb_findstart(), cdb_free(), cdb::fd, cdb::map, and cdb::size.

Here is the call graph for this function:

int cdb_read struct cdb ,
char *  ,
unsigned  int,
uint32 
 

Definition at line 44 of file cdb.c.

References byte_copy(), errno, error_intr, error_proto, cdb::fd, cdb::map, read(), seek_set(), cdb::size, and uint32.

Referenced by cdb_findnext().

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