s/qmail  3.3.23
Next generation secure email transport
Data Structures | Macros | Functions
cdb.h File Reference
#include "uint32.h"
Include dependency graph for cdb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cdb
 

Macros

#define CDB_HASHSTART   5381
 
#define cdb_datapos(c)   ((c)->dpos)
 
#define cdb_datalen(c)   ((c)->dlen)
 

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)
 
int cdb_seek (int, char *, unsigned int, uint32 *)
 
int cdb_bread (int, char *, int)
 
void cdb_findstart (struct cdb *)
 
int cdb_findnext (struct cdb *, char *, unsigned int)
 
int cdb_find (struct cdb *, char *, unsigned int)
 

Macro Definition Documentation

◆ cdb_datalen

#define cdb_datalen (   c)    ((c)->dlen)

Definition at line 37 of file cdb.h.

◆ cdb_datapos

#define cdb_datapos (   c)    ((c)->dpos)

Definition at line 36 of file cdb.h.

◆ CDB_HASHSTART

#define CDB_HASHSTART   5381

Definition at line 8 of file cdb.h.

Function Documentation

◆ cdb_bread()

int cdb_bread ( int  ,
char *  ,
int   
)

Definition at line 10 of file cdb_seek.c.

Here is the caller graph for this function:

◆ cdb_find()

int cdb_find ( struct cdb ,
char *  ,
unsigned  int 
)

Definition at line 132 of file cdb.c.

Here is the call graph for this function:

◆ cdb_findnext()

int cdb_findnext ( struct cdb ,
char *  ,
unsigned  int 
)

Definition at line 87 of file cdb.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdb_findstart()

void cdb_findstart ( struct cdb )

Definition at line 20 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_free()

void cdb_free ( struct cdb )

Definition at line 12 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_hash()

uint32 cdb_hash ( char *  ,
unsigned  int 
)

Definition at line 11 of file cdb_hash.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cdb_hashadd()

uint32 cdb_hashadd ( uint32  ,
unsigned  char 
)

Definition at line 5 of file cdb_hash.c.

Here is the caller graph for this function:

◆ cdb_init()

void cdb_init ( struct cdb ,
int  fd 
)

Definition at line 25 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_read()

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

Definition at line 44 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_seek()

int cdb_seek ( int  ,
char *  ,
unsigned  int,
uint32 *   
)

Definition at line 42 of file cdb_seek.c.

Here is the call graph for this function:
Here is the caller graph for this function: