s/qmail  3.3.23
Next generation secure email transport
Functions
cdb.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "readwrite.h"
#include "error.h"
#include "seek.h"
#include "byte.h"
#include "cdb.h"
Include dependency graph for cdb.c:

Go to the source code of this file.

Functions

void cdb_free (struct cdb *c)
 
void cdb_findstart (struct cdb *c)
 
void cdb_init (struct cdb *c, int fd)
 
int cdb_read (struct cdb *c, char *buf, unsigned int len, uint32 pos)
 
int cdb_findnext (struct cdb *c, char *key, unsigned int len)
 
int cdb_find (struct cdb *c, char *key, unsigned int len)
 

Function Documentation

◆ cdb_find()

int cdb_find ( struct cdb c,
char *  key,
unsigned int  len 
)

Definition at line 132 of file cdb.c.

Here is the call graph for this function:

◆ cdb_findnext()

int cdb_findnext ( struct cdb c,
char *  key,
unsigned int  len 
)

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 c)

Definition at line 20 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_free()

void cdb_free ( struct cdb c)

Definition at line 12 of file cdb.c.

Here is the caller graph for this function:

◆ cdb_init()

void cdb_init ( struct cdb c,
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 c,
char *  buf,
unsigned int  len,
uint32  pos 
)

Definition at line 44 of file cdb.c.

Here is the caller graph for this function: