|
Apache HTTPD
|
Modules | |
| SDBM library | |
Classes | |
| struct | apr_datum_t |
Macros | |
| #define | APR_DBM_READONLY 1 |
| #define | APR_DBM_READWRITE 2 |
| #define | APR_DBM_RWCREATE 3 |
| #define | APR_DBM_RWTRUNC 4 |
Typedefs | |
| typedef struct 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) | |
| Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC. | |
| APU_DECLARE (char *) apr_dbm_geterror(apr_dbm_t *dbm | |
| #define APR_DBM_RWTRUNC 4 |
| APU_DECLARE | ( | apr_status_t | ) |
Open a dbm file by file name and type of DBM
| dbm | The newly opened database |
| type | The type of the DBM (not all may be available at run time) db for Berkeley DB files gdbm for GDBM files ndbm for NDBM files sdbm for SDBM files (always available) 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 |
Open a dbm file by file name
| dbm | The newly opened database |
| 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 |
Fetch a dbm record value by key
| dbm | The database |
| key | The key datum to find this record |
| pvalue | The value datum retrieved for this record |
Store a dbm record value by key
| dbm | The database |
| key | The key datum to store this record by |
| value | The value datum to store in this record |
Delete a dbm record value by key
| dbm | The database |
| key | The key datum of the record to delete |
Search for a key within the dbm
| dbm | The database |
| key | The datum describing a key to test |
Retrieve the first record key from a dbm
| dbm | The database |
| pkey | The key datum of the first record |
Retrieve the next record key from a dbm
| dbm | The database |
| pkey | The key datum of the next record |
If the specified file/path were passed to apr_dbm_open(), return the actual file/path names which would be (created and) used. At most, two files may be used; used2 may be NULL if only one file is used.
| pool | The pool for allocating used1 and used2. |
| type | The type of DBM you require info on |
| pathname | The path name to generate used-names from. |
| used1 | The first pathname used by the apr_dbm implementation. |
| used2 | The second pathname used by apr_dbm. If only one file is used by the specific implementation, this will be set to NULL. |
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Replace
< Insert with duplicates
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< mask to extract lock type
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Size of the file
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
Definition at line 358 of file apr_brigade.c.
| APU_DECLARE | ( | char * | ) |
Report more information when an apr_dbm function fails.
| 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 |
| APU_DECLARE | ( | void | ) |
Computes SipHash-2-4, producing a 64bit (APR_SIPHASH_DSIZE) hash from a message and a 128bit (APR_SIPHASH_KSIZE) secret key, into a possibly unaligned buffer (using the little endian representation as defined by the authors for interoperabilty) usable as a MAC.
Close a dbm file previously opened by apr_dbm_open
| dbm | The database to close |
Proactively toss any memory associated with the apr_datum_t.
| dbm | The database |
| data | The datum to free. |
If the specified file/path were passed to apr_dbm_open(), return the actual file/path names which would be (created and) used. At most, two files may be used; used2 may be NULL if only one file is used.
| pool | The pool for allocating used1 and used2. |
| pathname | The path name to generate used-names from. |
| used1 | The first pathname used by the apr_dbm implementation. |
| used2 | The second pathname used by apr_dbm. If only one file is used by the specific implementation, this will be set to NULL. |
< use pool pre cleanup
Definition at line 128 of file apr_sha1.c.
| const char apr_int32_t apr_fileperms_t apr_pool_t * cntxt |
| apr_datum_t data |
| int char apr_size_t errbufsize |
| apr_datum_t key |
| const char apr_int32_t mode |
| apr_datum_t * pkey |
| apr_datum_t apr_datum_t* pvalue |
| apr_datum_t apr_datum_t value |