#include "db.h"
#include <varargs.h>
#include "queue.h"
#include "shqueue.h"
#include "debug.h"
#include "mutex.h"
#include "mutex_ext.h"
#include "region.h"
#include "env_ext.h"
#include "os.h"
#include "os_ext.h"
#include "common_ext.h"
Go to the source code of this file.
Classes | |
struct | __db_globals |
struct | __dbc_internal |
struct | __dbpginfo |
struct | __fn |
Defines | |
#define | __DBC_INTERNAL |
#define | ALIGN(value, bound) (((value) + (bound) - 1) & ~(((u_int)bound) - 1)) |
#define | ALIGNP(value, bound) ALIGN((db_alignp_t)value, bound) |
#define | COMPQUIET(n, v) (n) = (v) |
#define | DB_DEF_IOSIZE (8 * 1024) |
#define | DB_FTYPE_NOTSET 0 |
#define | DB_FTYPE_SET -1 |
#define | DB_GLOBAL(v) CDB___db_global_values.v |
#define | DB_ILLEGAL_AFTER_OPEN(dbp, name) |
#define | DB_ILLEGAL_BEFORE_OPEN(dbp, name) |
#define | DB_ILLEGAL_IN_ENV(dbp, name) |
#define | DB_ILLEGAL_METHOD(dbp, flags) |
#define | DB_IS_THREADED(dbp) ((dbp)->mutexp != NULL) |
#define | DB_LINE "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" |
#define | DB_LOGGING(dbc) (LOGGING_ON((dbc)->dbp->dbenv) && !F_ISSET(dbc, DBC_RECOVER)) |
#define | DB_LOGONLY 0x01 |
#define | DB_MAX_PGSIZE 0x010000 |
#define | DB_MIN_PGSIZE 0x000200 |
#define | DB_NONBLOCK(C) ((C)->txn != NULL && F_ISSET((C)->txn, TXN_NOWAIT)) |
#define | DB_OSO_CREATE 0x001 |
#define | DB_OSO_EXCL 0x002 |
#define | DB_OSO_LOG 0x004 |
#define | DB_OSO_RDONLY 0x008 |
#define | DB_OSO_SEQ 0x010 |
#define | DB_OSO_TEMP 0x020 |
#define | DB_OSO_TRUNC 0x040 |
#define | ENV_ILLEGAL_AFTER_OPEN(dbenv, name) |
#define | ENV_REQUIRES_CONFIG(dbenv, handle, subsystem) |
#define | F_CLR(p, f) (p)->flags &= ~(f) |
#define | F_ISSET(p, f) ((p)->flags & (f)) |
#define | F_SET(p, f) (p)->flags |= (f) |
#define | FLD_CLR(fld, f) (fld) &= ~(f) |
#define | FLD_ISSET(fld, f) ((fld) & (f)) |
#define | FLD_SET(fld, f) (fld) |= (f) |
#define | GIGABYTE 1073741824 |
#define | IS_RECOVERING(dbenv) |
#define | IS_ZERO_LSN(LSN) ((LSN).file == 0) |
#define | LF_CLR(f) (flags &= ~(f)) |
#define | LF_ISSET(f) (flags & (f)) |
#define | LF_SET(f) (flags |= (f)) |
#define | LOCKING(dbenv) F_ISSET(dbenv, DB_ENV_CDB) |
#define | LOCKING_ON(dbenv) ((dbenv)->lk_handle != NULL) |
#define | LOGGING_ON(dbenv) ((dbenv)->lg_handle != NULL) |
#define | MAXPATHLEN 1024 |
#define | MEGABYTE 1048576 |
#define | MPOOL_ON(dbenv) ((dbenv)->mp_handle != NULL) |
#define | MS_PER_SEC 1000 |
#define | P_TO_ULONG(p) ((u_long)(db_alignp_t)(p)) |
#define | PATH_DOT "." |
#define | PATH_SEPARATOR "/" |
#define | RECNO_OOB 0 |
#define | SSZ(name, field) ((int)&(((name *)0)->field)) |
#define | SSZA(name, field) ((int)&(((name *)0)->field[0])) |
#define | STD_LOCKING(dbc) |
#define | TXN_ON(dbenv) ((dbenv)->tx_handle != NULL) |
#define | UINT16_T_MAX 0xffff |
#define | UINT32_T_MAX 0xffffffff |
#define | USEC_PER_MS 1000 |
#define | ZERO_LSN(LSN) |
Typedefs | |
typedef unsigned long long | db_align_t |
typedef unsigned long | db_alignp_t |
typedef struct __db_globals | DB_GLOBALS |
typedef struct __dbpginfo | DB_PGINFO |
typedef struct __fn | FN |
typedef struct __mutex_t | MUTEX |
typedef struct __db_reginfo_t | REGINFO |
typedef struct __vrfy_childinfo | VRFY_CHILDINFO |
typedef struct __vrfy_dbinfo | VRFY_DBINFO |
typedef struct __vrfy_pageinfo | VRFY_PAGEINFO |
Enumerations | |
enum | APPNAME { DB_APP_NONE = 0, DB_APP_DATA, DB_APP_LOG, DB_APP_TMP } |
enum | DB_OS_SEEK { DB_OS_SEEK_CUR, DB_OS_SEEK_END, DB_OS_SEEK_SET } |
Variables | |
DB_GLOBALS | CDB___db_global_values |