fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
cdbread.c File Reference

read entries from a cdb More...

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include "error.h"
#include "seek.h"
#include "byte.h"
#include "cdbread.h"
Include dependency graph for cdbread.c:

Go to the source code of this file.

Functions

uint32 cdb_unpack (unsigned char *buf)
 
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)
 
uint32 cdb_hashadd (uint32 h, unsigned char c)
 
uint32 cdb_hash (char *buf, unsigned int len)
 

Detailed Description

read entries from a cdb

Author
djb ucspi-tcp, fastforward

Definition in file cdbread.c.

Function Documentation

◆ cdb_find()

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

Definition at line 147 of file cdbread.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 102 of file cdbread.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 35 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_free()

void cdb_free ( struct cdb * c)

Definition at line 27 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_hash()

uint32 cdb_hash ( char * buf,
unsigned int len )

Definition at line 159 of file cdbread.c.

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

◆ cdb_hashadd()

uint32 cdb_hashadd ( uint32 h,
unsigned char c )

Definition at line 153 of file cdbread.c.

Here is the caller graph for this function:

◆ cdb_init()

void cdb_init ( struct cdb * c,
int fd )

Definition at line 40 of file cdbread.c.

Here is the call graph for this function:

◆ cdb_read()

int cdb_read ( struct cdb * c,
char * buf,
unsigned int len,
uint32 pos )

Definition at line 59 of file cdbread.c.

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

◆ cdb_unpack()

uint32 cdb_unpack ( unsigned char * buf)

Definition at line 17 of file cdbread.c.