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

DBM routines

Collaboration diagram for DBM routines:


Modules

 SDBM library

Data Structures

struct  apr_datum_t

Defines

#define APR_DBM_READONLY   1
#define APR_DBM_READWRITE   2
#define APR_DBM_RWCREATE   3
#define APR_DBM_RWTRUNC   4

Typedefs

typedef apr_dbm_t apr_dbm_t

Functions

 APU_DECLARE (apr_status_t) apr_dbm_open_ex(apr_dbm_t **dbm
 APU_DECLARE (void) apr_dbm_close(apr_dbm_t *dbm)
 APU_DECLARE (int) apr_dbm_exists(apr_dbm_t *dbm
 APU_DECLARE (char *) apr_dbm_geterror(apr_dbm_t *dbm

Variables

const char * type
const char const char * name
const char const char apr_int32_t mode
const char const char apr_int32_t
apr_fileperms_t 
perm
const char const char apr_int32_t
apr_fileperms_t apr_pool_t
cntxt
apr_datum_t key
apr_datum_t apr_datum_tpvalue
apr_datum_t apr_datum_t value
apr_datum_tpkey
apr_datum_t data
interrcode
int char * errbuf
int char apr_size_t errbufsize
const char const char * pathname
const char const char const
char ** 
used1
const char const char const
char const char ** 
used2
apr_pool_t const char * name
apr_bucket_brigade ap_input_mode_t mode

Define Documentation

#define APR_DBM_READONLY   1
 

open for read-only access

Definition at line 56 of file apr_dbm.h.

Referenced by dav_dbm_open_direct(), get_dbm_pw(), htdbm_open(), and lookup_map_dbmfile().

#define APR_DBM_READWRITE   2
 

open for read-write access

Definition at line 57 of file apr_dbm.h.

Referenced by htdbm_open().

#define APR_DBM_RWCREATE   3
 

open for r/w, create if needed

Definition at line 58 of file apr_dbm.h.

Referenced by dav_dbm_open_direct(), htdbm_open(), ssl_scache_dbm_expire(), ssl_scache_dbm_init(), ssl_scache_dbm_remove(), ssl_scache_dbm_retrieve(), ssl_scache_dbm_status(), and ssl_scache_dbm_store().

#define APR_DBM_RWTRUNC   4
 

open for r/w, truncating an existing DB if present

Definition at line 59 of file apr_dbm.h.


Typedef Documentation

typedef struct apr_dbm_t apr_dbm_t
 

Structure for referencing a dbm

Definition at line 42 of file apr_dbm.h.


Function Documentation

APU_DECLARE char *   ) 
 

Report more information when an apr_dbm function fails.

Parameters:
dbm The database
errcode A DBM-specific value for the error (for logging). If this isn't needed, it may be NULL.
errbuf Location to store the error text
errbufsize The size of the provided buffer
Returns:
The errbuf parameter, for convenience.

APU_DECLARE int   ) 
 

Search for a key within the dbm

Parameters:
dbm The database
key The datum describing a key to test

Definition at line 44 of file apr_buckets_refcount.c.

APU_DECLARE void   ) 
 

Append a piece of text to the end of a list

Parameters:
p The pool to allocate out of
hdr The text header to append to
text The new text to append

Definition at line 206 of file apr_sha1.c.

APU_DECLARE apr_status_t   ) 
 

Open a dbm file by file name and type of DBM

Parameters:
dbm The newly opened database
type The type of the DBM (not all may be available at run time)
  GDBM for GDBM files
  SDBM for SDBM files
  DB   for berkeley DB files
  NDBM for NDBM files
  default for the default DBM type
  
name The dbm file name to open
mode The flag value
           APR_DBM_READONLY   open for read-only access
           APR_DBM_READWRITE  open for read-write access
           APR_DBM_RWCREATE   open for r/w, create if needed
           APR_DBM_RWTRUNC    open for r/w, truncate if already there
 
perm Permissions to apply to if created
cntxt The pool to use when creating the dbm
Remarks:
The dbm name may not be a true file name, as many dbm packages append suffixes for seperate data and index files.

Definition at line 37 of file apr_brigade.c.


Variable Documentation

const char apr_int32_t apr_fileperms_t apr_pool_t * cntxt
 

Definition at line 108 of file apr_dbm.h.

apr_datum_t data
 

Definition at line 169 of file apr_dbm.h.

int char* errbuf
 

Definition at line 180 of file apr_dbm.h.

int char apr_size_t errbufsize
 

Definition at line 180 of file apr_dbm.h.

int* errcode
 

Definition at line 180 of file apr_dbm.h.

Referenced by dav_fs_dbm_error().

apr_datum_t key
 

Definition at line 148 of file apr_dbm.h.

const char apr_int32_t mode
 

Definition at line 108 of file apr_dbm.h.

Referenced by apr_dir_make(), apr_unix_perms2mode(), cmd_rewriterule(), dav_method_put(), mva_translate(), ssl_cmd_SSLProxyVerify(), ssl_cmd_SSLVerifyClient(), and vhost_alias_set().

const char apr_int32_t mode
 

Definition at line 108 of file apr_dbm.h.

const char * name
 

Definition at line 108 of file apr_dbm.h.

Referenced by add_setenvif_core(), ap_proxy_clear_connection(), appendAttributeValue(), apr_create_nt_pipe(), APR_DECLARE(), cache_select_url(), cgethost(), check_speling(), copyEntityTable(), DAV_DECLARE(), DAV_DECLARE_NONSTD(), dav_gen_supported_live_props(), dav_gen_supported_methods(), dav_gen_supported_reports(), define_filter(), doContent(), doProlog(), dtdCopy(), explode_static_lib(), fix_encoding(), getAttributeId(), getElementType(), index_directory(), matches_aliases(), mod_auth_ldap_auth_checker(), modssl_proxy_info_log(), module_request_hook_participate(), mva_translate(), nameof(), output_directories(), parse_input_file_name(), parse_output_file_name(), remove_items(), set_encoding_quality(), set_group_privs(), set_language_quality(), set_proxy_dirconn(), set_proxy_exclude(), setElementTypePrefix(), show_server_data(), ssl_expr_eval_word(), ssl_hook_UserCheck(), ssl_init_PushCAList(), ssl_var_lookup_ssl_cert_dn(), store_body(), storeAtts(), storeEntityValue(), and translate_userdir().

const char* name
 

Definition at line 108 of file apr_dbm.h.

const char * pathname
 

Definition at line 215 of file apr_dbm.h.

Referenced by dav_dbm_open(), dav_fs_deleteset(), dav_fs_ensure_state_dir(), dav_fs_remove_locknull_state(), and dav_fs_save_locknull_list().

const char apr_int32_t apr_fileperms_t perm
 

Definition at line 108 of file apr_dbm.h.

apr_datum_t * pkey
 

Definition at line 162 of file apr_dbm.h.

Referenced by ssl_server_import_key().

apr_datum_t apr_datum_t* pvalue
 

Definition at line 124 of file apr_dbm.h.

const char* type
 

Definition at line 197 of file apr_dbm.h.

const char const char ** used1
 

Definition at line 215 of file apr_dbm.h.

const char const char const char ** used2
 

Definition at line 215 of file apr_dbm.h.

apr_datum_t apr_datum_t value
 

Definition at line 132 of file apr_dbm.h.