Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

SDBM library
[DBM routines]

Collaboration diagram for SDBM library:


Data Structures

struct  apr_sdbm_datum_t

Defines

#define APR_SDBM_DIRFEXT   ".dir"
#define APR_SDBM_PAGFEXT   ".pag"
#define APR_SDBM_INSERT   0
#define APR_SDBM_REPLACE   1
#define APR_SDBM_INSERTDUP   2

Typedefs

typedef apr_sdbm_t apr_sdbm_t

Functions

 APU_DECLARE (apr_status_t) apr_sdbm_open(apr_sdbm_t **db
 APU_DECLARE (int) apr_sdbm_rdonly(apr_sdbm_t *db)

Variables

const char * name
const char apr_int32_t mode
const char apr_int32_t apr_fileperms_t perms
const char apr_int32_t apr_fileperms_t
apr_pool_t
p
int type
apr_sdbm_datum_tvalue
apr_sdbm_datum_t apr_sdbm_datum_t key
apr_sdbm_datum_t apr_sdbm_datum_t
int 
opt

Define Documentation

#define APR_SDBM_DIRFEXT   ".dir"
 

SDBM Directory file extension

Definition at line 58 of file apr_sdbm.h.

Referenced by APU_DECLARE().

#define APR_SDBM_INSERT   0
 

Insert

Definition at line 63 of file apr_sdbm.h.

#define APR_SDBM_INSERTDUP   2
 

Insert with duplicates

Definition at line 65 of file apr_sdbm.h.

#define APR_SDBM_PAGFEXT   ".pag"
 

SDBM page file extension

Definition at line 60 of file apr_sdbm.h.

Referenced by APU_DECLARE().

#define APR_SDBM_REPLACE   1
 

Replace

Definition at line 64 of file apr_sdbm.h.


Typedef Documentation

typedef struct apr_sdbm_t apr_sdbm_t
 

Structure for referencing an sdbm

Definition at line 44 of file apr_sdbm.h.


Function Documentation

APU_DECLARE int   ) 
 

return the URI's (existing) index, or insert it and return a new index

Parameters:
uri_array array to insert into
uri The uri to insert
Returns:
int The uri's index

Definition at line 44 of file apr_buckets_refcount.c.

APU_DECLARE apr_status_t   ) 
 

Open an sdbm database by file name

Parameters:
db The newly opened database
name The sdbm file to open
mode The flag values (APR_READ and APR_BINARY flags are implicit)
           APR_WRITE          open for read-write access
           APR_CREATE         create the sdbm if it does not exist
           APR_TRUNCATE       empty the contents of the sdbm
           APR_EXCL           fail for APR_CREATE if the file exists
           APR_DELONCLOSE     delete the sdbm when closed
           APR_SHARELOCK      support locking across process/machines
 
perms Permissions to apply to if created
p The pool to use when creating the sdbm
Remarks:
The sdbm name is not a true file name, as sdbm appends suffixes for seperate data and index files.

Definition at line 37 of file apr_brigade.c.


Variable Documentation

apr_sdbm_datum_t* key
 

Definition at line 167 of file apr_sdbm.h.

const char apr_int32_t mode
 

Definition at line 85 of file apr_sdbm.h.

const char* name
 

Definition at line 85 of file apr_sdbm.h.

apr_sdbm_datum_t apr_sdbm_datum_t int opt
 

Definition at line 139 of file apr_sdbm.h.

const char apr_int32_t apr_fileperms_t apr_pool_t* p
 

Definition at line 85 of file apr_sdbm.h.

const char apr_int32_t apr_fileperms_t perms
 

Definition at line 85 of file apr_sdbm.h.

int type
 

Definition at line 110 of file apr_sdbm.h.

apr_sdbm_datum_t apr_sdbm_datum_t value
 

Definition at line 139 of file apr_sdbm.h.