Apache HTTPD
Classes | Macros | Functions | Variables
sdbm_private.h File Reference
#include "apr.h"
#include "apr_pools.h"
#include "apr_file_io.h"
#include "apr_errno.h"

Go to the source code of this file.

Classes

struct  apr_sdbm_t
 

Macros

#define DBLKSIZ   4096
 
#define PBLKSIZ   1024
 
#define PAIRMAX   1008 /* arbitrary on PBLKSIZ-N */
 
#define SPLTMAX   10 /* maximum allowed splits */
 
#define SDBM_RDONLY   0x1 /* data base open read-only */
 
#define SDBM_SHARED   0x2 /* data base open for sharing */
 
#define SDBM_SHARED_LOCK   0x4 /* data base locked for shared read */
 
#define SDBM_EXCLUSIVE_LOCK   0x8 /* data base locked for write */
 
#define sdbm_hash   apu__sdbm_hash
 
#define sdbm_nullitem   apu__sdbm_nullitem
 
#define SDBM_INVALIDATE_CACHE(db, finfo)
 

Functions

long apu__sdbm_hash (const char *str, int len)
 

Variables

const apr_sdbm_datum_t apu__sdbm_nullitem
 

Macro Definition Documentation

◆ DBLKSIZ

#define DBLKSIZ   4096

Definition at line 37 of file sdbm_private.h.

◆ PAIRMAX

#define PAIRMAX   1008 /* arbitrary on PBLKSIZ-N */

Definition at line 39 of file sdbm_private.h.

◆ PBLKSIZ

#define PBLKSIZ   1024

Definition at line 38 of file sdbm_private.h.

◆ SDBM_EXCLUSIVE_LOCK

#define SDBM_EXCLUSIVE_LOCK   0x8 /* data base locked for write */

Definition at line 47 of file sdbm_private.h.

◆ sdbm_hash

#define sdbm_hash   apu__sdbm_hash

Definition at line 68 of file sdbm_private.h.

◆ SDBM_INVALIDATE_CACHE

#define SDBM_INVALIDATE_CACHE (   db,
  finfo 
)
Value:
do { db->dirbno = (!finfo.size) ? 0 : -1; \
db->pagbno = -1; \
db->maxbno = (long)(finfo.size * BYTESIZ); \
} while (0);
apr_size_t size
#define BYTESIZ
Definition sdbm_tune.h:29

Definition at line 78 of file sdbm_private.h.

◆ sdbm_nullitem

#define sdbm_nullitem   apu__sdbm_nullitem

Definition at line 69 of file sdbm_private.h.

◆ SDBM_RDONLY

#define SDBM_RDONLY   0x1 /* data base open read-only */

Definition at line 44 of file sdbm_private.h.

◆ SDBM_SHARED

#define SDBM_SHARED   0x2 /* data base open for sharing */

Definition at line 45 of file sdbm_private.h.

◆ SDBM_SHARED_LOCK

#define SDBM_SHARED_LOCK   0x4 /* data base locked for shared read */

Definition at line 46 of file sdbm_private.h.

◆ SPLTMAX

#define SPLTMAX   10 /* maximum allowed splits */

Definition at line 41 of file sdbm_private.h.

Function Documentation

◆ apu__sdbm_hash()

long apu__sdbm_hash ( const char str,
int  len 
)

Definition at line 36 of file sdbm_hash.c.

Variable Documentation

◆ apu__sdbm_nullitem

const apr_sdbm_datum_t apu__sdbm_nullitem
extern

Definition at line 67 of file sdbm.c.