int (*lock_id) __P((DB_ENV *, u_int32_t *));
int (*lock_id_free) __P((DB_ENV *, u_int32_t));
int (*lock_put) __P((DB_ENV *, DB_LOCK *));
int (*lock_stat) __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t));
int (*lock_stat_print) __P((DB_ENV *, u_int32_t));
int (*lock_vec) __P((DB_ENV *,
u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
int (*log_archive) __P((DB_ENV *, char **[], u_int32_t));
int (*log_cursor) __P((DB_ENV *, DB_LOGC **, u_int32_t));
int (*log_file) __P((DB_ENV *, const DB_LSN *, char *, size_t));
int (*log_flush) __P((DB_ENV *, const DB_LSN *));
int (*log_get_config) __P((DB_ENV *, u_int32_t, int *));
int (*log_printf) __P((DB_ENV *, DB_TXN *, const char *, ...));
int (*log_put) __P((DB_ENV *, DB_LSN *, const DBT *, u_int32_t));
int (*log_put_record) __P((DB_ENV *, DB *, DB_TXN *, DB_LSN *,
u_int32_t, u_int32_t, u_int32_t, u_int32_t,
int (*log_read_record) __P((DB_ENV *, DB **,
void *, void *, DB_LOG_RECSPEC *, u_int32_t, void **));
int (*log_set_config) __P((DB_ENV *, u_int32_t, int));
int (*log_stat) __P((DB_ENV *, DB_LOG_STAT **, u_int32_t));
int (*log_stat_print) __P((DB_ENV *, u_int32_t));
int (*log_verify) __P((DB_ENV *, const DB_LOG_VERIFY_CONFIG *));
int (*lsn_reset) __P((DB_ENV *, const char *, u_int32_t));
int (*memp_fcreate) __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t));
int (*memp_register) __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t,
void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
int (*memp_stat) __P((DB_ENV *,
DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t));
int (*memp_stat_print) __P((DB_ENV *, u_int32_t));
int (*memp_sync) __P((DB_ENV *, DB_LSN *));
int (*memp_trickle) __P((DB_ENV *, int, int *));
int (*mutex_alloc) __P((DB_ENV *, u_int32_t, db_mutex_t *));
int (*mutex_free) __P((DB_ENV *, db_mutex_t));
int (*mutex_get_align) __P((DB_ENV *, u_int32_t *));
int (*mutex_get_increment) __P((DB_ENV *, u_int32_t *));
int (*mutex_get_init) __P((DB_ENV *, u_int32_t *));
int (*mutex_get_max) __P((DB_ENV *, u_int32_t *));
int (*mutex_get_tas_spins) __P((DB_ENV *, u_int32_t *));
int (*mutex_lock) __P((DB_ENV *, db_mutex_t));
int (*mutex_set_align) __P((DB_ENV *, u_int32_t));
int (*mutex_set_increment) __P((DB_ENV *, u_int32_t));
int (*mutex_set_init) __P((DB_ENV *, u_int32_t));
int (*mutex_set_max) __P((DB_ENV *, u_int32_t));
int (*mutex_set_tas_spins) __P((DB_ENV *, u_int32_t));
int (*mutex_stat) __P((DB_ENV *, DB_MUTEX_STAT **, u_int32_t));
int (*mutex_stat_print) __P((DB_ENV *, u_int32_t));
int (*mutex_unlock) __P((DB_ENV *, db_mutex_t));
int (*open) __P((DB_ENV *, const char *, u_int32_t, int));
int (*remove) __P((DB_ENV *, const char *, u_int32_t));
int (*rep_elect) __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t));
int (*rep_flush) __P((DB_ENV *));
int (*rep_get_clockskew) __P((DB_ENV *, u_int32_t *, u_int32_t *));
int (*rep_get_config) __P((DB_ENV *, u_int32_t, int *));
int (*rep_get_limit) __P((DB_ENV *, u_int32_t *, u_int32_t *));
int (*rep_get_nsites) __P((DB_ENV *, u_int32_t *));
int (*rep_get_priority) __P((DB_ENV *, u_int32_t *));
int (*rep_get_request) __P((DB_ENV *, u_int32_t *, u_int32_t *));
int (*rep_get_timeout) __P((DB_ENV *, int, u_int32_t *));
int (*rep_process_message)
__P((DB_ENV *, DBT *, DBT *, int, DB_LSN *));
int (*rep_set_clockskew) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*rep_set_config) __P((DB_ENV *, u_int32_t, int));
int (*rep_set_limit) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*rep_set_nsites) __P((DB_ENV *, u_int32_t));
int (*rep_set_priority) __P((DB_ENV *, u_int32_t));
int (*rep_set_request) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*rep_set_timeout) __P((DB_ENV *, int, db_timeout_t));
int (*rep_set_transport) __P((DB_ENV *, int, int (*)(DB_ENV *,
const DBT *, const DBT *, const DB_LSN *, int, u_int32_t)));
int (*rep_start) __P((DB_ENV *, DBT *, u_int32_t));
int (*rep_stat) __P((DB_ENV *, DB_REP_STAT **, u_int32_t));
int (*rep_stat_print) __P((DB_ENV *, u_int32_t));
int (*rep_sync) __P((DB_ENV *, u_int32_t));
int (*repmgr_channel) __P((DB_ENV *, int, DB_CHANNEL **, u_int32_t));
int (*repmgr_get_ack_policy) __P((DB_ENV *, int *));
int (*repmgr_local_site) __P((DB_ENV *, DB_SITE **));
int (*repmgr_msg_dispatch) __P((DB_ENV *,
void (*)(DB_ENV *, DB_CHANNEL *, DBT *, u_int32_t, u_int32_t),
int (*repmgr_set_ack_policy) __P((DB_ENV *, int));
__P((DB_ENV *, const char *, u_int, DB_SITE**, u_int32_t));
int (*repmgr_site_by_eid) __P((DB_ENV *, int, DB_SITE**));
int (*repmgr_site_list) __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
int (*repmgr_start) __P((DB_ENV *, int, u_int32_t));
int (*repmgr_stat) __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
int (*repmgr_stat_print) __P((DB_ENV *, u_int32_t));
int (*set_alloc) __P((DB_ENV *, void *(*)(size_t),
void *(*)(void *, size_t), void (*)(void *)));
__P((DB_ENV *, int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops)));
int (*set_cache_max) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*set_cachesize) __P((DB_ENV *, u_int32_t, u_int32_t, int));
int (*set_create_dir) __P((DB_ENV *, const char *));
int (*set_data_dir) __P((DB_ENV *, const char *));
int (*set_data_len) __P((DB_ENV *, u_int32_t));
int (*set_backup_callbacks) __P((DB_ENV *,
int (*)(DB_ENV *, const char *, const char *, void **),
int (*)(DB_ENV *, u_int32_t,
u_int32_t, u_int32_t, u_int8_t *, void *),
int (*)(DB_ENV *, const char *, void *)));
int (*set_backup_config) __P((DB_ENV *, DB_BACKUP_CONFIG, u_int32_t));
int (*set_encrypt) __P((DB_ENV *, const char *, u_int32_t));
void (*set_errcall) __P((DB_ENV *,
void (*)(const DB_ENV *, const char *, const char *)));
void (*set_errfile) __P((DB_ENV *, FILE *));
void (*set_errpfx) __P((DB_ENV *, const char *));
__P((DB_ENV *, void (*)(DB_ENV *, u_int32_t, void *)));
int (*set_feedback) __P((DB_ENV *, void (*)(DB_ENV *, int, int)));
int (*set_flags) __P((DB_ENV *, u_int32_t, int));
int (*set_intermediate_dir_mode) __P((DB_ENV *, const char *));
int (*set_isalive) __P((DB_ENV *,
int (*)(DB_ENV *, pid_t, db_threadid_t, u_int32_t)));
int (*set_lg_bsize) __P((DB_ENV *, u_int32_t));
int (*set_lg_dir) __P((DB_ENV *, const char *));
int (*set_lg_filemode) __P((DB_ENV *, int));
int (*set_lg_max) __P((DB_ENV *, u_int32_t));
int (*set_lg_regionmax) __P((DB_ENV *, u_int32_t));
int (*set_lk_conflicts) __P((DB_ENV *, u_int8_t *, int));
int (*set_lk_detect) __P((DB_ENV *, u_int32_t));
int (*set_lk_max_lockers) __P((DB_ENV *, u_int32_t));
int (*set_lk_max_locks) __P((DB_ENV *, u_int32_t));
int (*set_lk_max_objects) __P((DB_ENV *, u_int32_t));
int (*set_lk_partitions) __P((DB_ENV *, u_int32_t));
int (*set_lk_priority) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*set_lk_tablesize) __P((DB_ENV *, u_int32_t));
int (*set_memory_init) __P((DB_ENV *, DB_MEM_CONFIG, u_int32_t));
int (*set_memory_max) __P((DB_ENV *, u_int32_t, u_int32_t));
int (*set_metadata_dir) __P((DB_ENV *, const char *));
int (*set_mp_max_openfd) __P((DB_ENV *, int));
int (*set_mp_max_write) __P((DB_ENV *, int, db_timeout_t));
int (*set_mp_mmapsize) __P((DB_ENV *, size_t));
int (*set_mp_mtxcount) __P((DB_ENV *, u_int32_t));
int (*set_mp_pagesize) __P((DB_ENV *, u_int32_t));
int (*set_mp_tablesize) __P((DB_ENV *, u_int32_t));
__P((DB_ENV *, void (*)(const DB_ENV *, const char *)));
void (*set_msgfile) __P((DB_ENV *, FILE *));
int (*set_paniccall) __P((DB_ENV *, void (*)(DB_ENV *, int)));
int (*set_shm_key) __P((DB_ENV *, long));
int (*set_thread_count) __P((DB_ENV *, u_int32_t));
__P((DB_ENV *, void (*)(DB_ENV *, pid_t *, db_threadid_t *)));
int (*set_thread_id_string) __P((DB_ENV *,
char *(*)(DB_ENV *, pid_t, db_threadid_t, char *)));
int (*set_timeout) __P((DB_ENV *, db_timeout_t, u_int32_t));
int (*set_tmp_dir) __P((DB_ENV *, const char *));
int (*set_tx_max) __P((DB_ENV *, u_int32_t));
int (*set_tx_timestamp) __P((DB_ENV *, time_t *));
int (*set_verbose) __P((DB_ENV *, u_int32_t, int));
int (*txn_applied) __P((DB_ENV *,
DB_TXN_TOKEN *, db_timeout_t, u_int32_t));
int (*stat_print) __P((DB_ENV *, u_int32_t));
int (*txn_begin) __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
int (*txn_checkpoint) __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t));
int (*txn_recover) __P((DB_ENV *,
DB_PREPLIST *, long, long *, u_int32_t));
int (*txn_stat) __P((DB_ENV *, DB_TXN_STAT **, u_int32_t));
int (*txn_stat_print) __P((DB_ENV *, u_int32_t));
/* DB_ENV PUBLIC HANDLE LIST END */
/* DB_ENV PRIVATE HANDLE LIST BEGIN */
int (*prdbt) __P((DBT *, int,
const char *, void *, int (*)(void *, const void *), int, int));
/* DB_ENV PRIVATE HANDLE LIST END */
* Dispatch structure for recovery, log verification and print routines. Since
* internal and external routines take different arguments (ENV versus DB_ENV),
* we need something more elaborate than a single pointer and size.
int (**int_dispatch) __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int (**ext_dispatch) __P((DB_ENV *, DBT *, DB_LSN *, db_recops));
* Log verification configuration structure.
struct __db_logvrfy_config {
int continue_after_fail, verbose;
const char *temp_envhome;
const char *dbfile, *dbname;
DB_LSN start_lsn, end_lsn;
time_t start_time, end_time;
CHANNEL *channel; /* Pointer to internal state details. */
int eid; /* Env. ID passed in constructor. */
/* DB_CHANNEL PUBLIC HANDLE LIST BEGIN */
int (*close) __P((DB_CHANNEL *, u_int32_t));
int (*send_msg) __P((DB_CHANNEL *, DBT *, u_int32_t, u_int32_t));
int (*send_request) __P((DB_CHANNEL *,
DBT *, u_int32_t, DBT *, db_timeout_t, u_int32_t));
int (*set_timeout) __P((DB_CHANNEL *, db_timeout_t));
/* DB_CHANNEL PUBLIC HANDLE LIST END */
/* DB_SITE PUBLIC HANDLE LIST BEGIN */
int (*get_address) __P((DB_SITE *, const char **, u_int *));
int (*get_config) __P((DB_SITE *, u_int32_t, u_int32_t *));
int (*get_eid) __P((DB_SITE *, int *));
int (*set_config) __P((DB_SITE *, u_int32_t, u_int32_t));
int (*remove) __P((DB_SITE *));
int (*close) __P((DB_SITE *));
/* DB_SITE PUBLIC HANDLE LIST END */
/*******************************************************
* Dbm/Ndbm historic interfaces.
*******************************************************/
#define DBM_INSERT 0 /* Flags to dbm_store(). */
* The DB support for ndbm(3) always appends this suffix to the
* file name to avoid overwriting the user's original database.
* Translate NDBM calls into DB calls so that DB doesn't step on the
* application's name space.
#define dbm_clearerr(a) __db_ndbm_clearerr(a)
#define dbm_close(a) __db_ndbm_close(a)
#define dbm_delete(a, b) __db_ndbm_delete(a, b)
#define dbm_dirfno(a) __db_ndbm_dirfno(a)
#define dbm_error(a) __db_ndbm_error(a)
#define dbm_fetch(a, b) __db_ndbm_fetch(a, b)
#define dbm_firstkey(a) __db_ndbm_firstkey(a)
#define dbm_nextkey(a) __db_ndbm_nextkey(a)
#define dbm_open(a, b, c) __db_ndbm_open(a, b, c)
#define dbm_pagfno(a) __db_ndbm_pagfno(a)
#define dbm_rdonly(a) __db_ndbm_rdonly(a)
#define dbm_store(a, b, c, d) \
__db_ndbm_store(a, b, c, d)
* Translate DBM calls into DB calls so that DB doesn't step on the
* application's name space.
* The global variables dbrdonly, dirf and pagf were not retained when 4BSD
* replaced the dbm interface with ndbm, and are not supported here.
#define dbminit(a) __db_dbm_init(a)
#define dbmclose __db_dbm_close
#if !defined(__cplusplus)
#define delete(a) __db_dbm_delete(a)
#define fetch(a) __db_dbm_fetch(a)
#define firstkey __db_dbm_firstkey
#define nextkey(a) __db_dbm_nextkey(a)
#define store(a, b) __db_dbm_store(a, b)
/*******************************************************
* Hsearch historic interface.
*******************************************************/
#define hcreate(a) __db_hcreate(a)
#define hdestroy __db_hdestroy
#define hsearch(a, b) __db_hsearch(a, b)
#endif /* DB_DBM_HSEARCH */
/* DO NOT EDIT: automatically built by dist/s_apiflags. */
#define DB_AGGRESSIVE 0x00000001
#define DB_ARCH_ABS 0x00000001
#define DB_ARCH_DATA 0x00000002
#define DB_ARCH_LOG 0x00000004
#define DB_ARCH_REMOVE 0x00000008
#define DB_AUTO_COMMIT 0x00000100
#define DB_BACKUP_CLEAN 0x00000002
#define DB_BACKUP_FILES 0x00000008
#define DB_BACKUP_NO_LOGS 0x00000010
#define DB_BACKUP_SINGLE_DIR 0x00000020
#define DB_BACKUP_UPDATE 0x00000040
#define DB_BOOTSTRAP_HELPER 0x00000001
#define DB_CDB_ALLDB 0x00000040
#define DB_CHKSUM 0x00000008
#define DB_CKP_INTERNAL 0x00000002
#define DB_CREATE 0x00000001
#define DB_CURSOR_BULK 0x00000001
#define DB_CURSOR_TRANSIENT 0x00000008
#define DB_CXX_NO_EXCEPTIONS 0x00000002
#define DB_DATABASE_LOCKING 0x00000080
#define DB_DIRECT 0x00000020
#define DB_DIRECT_DB 0x00000200
#define DB_DSYNC_DB 0x00000400
#define DB_DUP 0x00000010
#define DB_DUPSORT 0x00000002
#define DB_DURABLE_UNKNOWN 0x00000040
#define DB_ENCRYPT 0x00000001
#define DB_ENCRYPT_AES 0x00000001
#define DB_EXCL 0x00000004
#define DB_EXTENT 0x00000100
#define DB_FAILCHK 0x00000010
#define DB_FAILCHK_ISALIVE 0x00000040
#define DB_FAST_STAT 0x00000001
#define DB_FCNTL_LOCKING 0x00000800
#define DB_FLUSH 0x00000002
#define DB_FORCE 0x00000001
#define DB_FORCESYNC 0x00000001
#define DB_FOREIGN_ABORT 0x00000001
#define DB_FOREIGN_CASCADE 0x00000002
#define DB_FOREIGN_NULLIFY 0x00000004
#define DB_FREELIST_ONLY 0x00000001
#define DB_FREE_SPACE 0x00000002
#define DB_GROUP_CREATOR 0x00000002
#define DB_HOTBACKUP_IN_PROGRESS 0x00000800
#define DB_IGNORE_LEASE 0x00001000
#define DB_IMMUTABLE_KEY 0x00000002
#define DB_INIT_CDB 0x00000080
#define DB_INIT_LOCK 0x00000100
#define DB_INIT_LOG 0x00000200
#define DB_INIT_MPOOL 0x00000400
#define DB_INIT_MUTEX 0x00000800
#define DB_INIT_REP 0x00001000
#define DB_INIT_TXN 0x00002000
#define DB_INORDER 0x00000020
#define DB_INTERNAL_PERSISTENT_DB 0x00001000
#define DB_INTERNAL_TEMPORARY_DB 0x00002000
#define DB_JOIN_NOSORT 0x00000001
#define DB_LEGACY 0x00000004
#define DB_LOCAL_SITE 0x00000008
#define DB_LOCKDOWN 0x00004000
#define DB_LOCK_CHECK 0x00000001
#define DB_LOCK_IGNORE_REC 0x00000002
#define DB_LOCK_NOWAIT 0x00000004
#define DB_LOCK_RECORD 0x00000008
#define DB_LOCK_SET_TIMEOUT 0x00000010
#define DB_LOCK_SWITCH 0x00000020
#define DB_LOCK_UPGRADE 0x00000040
#define DB_LOG_AUTO_REMOVE 0x00000001
#define DB_LOG_CHKPNT 0x00000001
#define DB_LOG_COMMIT 0x00000004
#define DB_LOG_DIRECT 0x00000002
#define DB_LOG_DSYNC 0x00000004
#define DB_LOG_IN_MEMORY 0x00000008
#define DB_LOG_NOCOPY 0x00000008
#define DB_LOG_NOT_DURABLE 0x00000010
#define DB_LOG_NO_DATA 0x00000002
#define DB_LOG_VERIFY_CAF 0x00000001
#define DB_LOG_VERIFY_DBFILE 0x00000002
#define DB_LOG_VERIFY_ERR 0x00000004
#define DB_LOG_VERIFY_FORWARD 0x00000008
#define DB_LOG_VERIFY_INTERR 0x00000010
#define DB_LOG_VERIFY_PARTIAL 0x00000020
#define DB_LOG_VERIFY_VERBOSE 0x00000040
#define DB_LOG_VERIFY_WARNING 0x00000080
#define DB_LOG_WRNOSYNC 0x00000020
#define DB_LOG_ZERO 0x00000010
#define DB_MPOOL_CREATE 0x00000001
#define DB_MPOOL_DIRTY 0x00000002
#define DB_MPOOL_DISCARD 0x00000001
#define DB_MPOOL_EDIT 0x00000004
#define DB_MPOOL_FREE 0x00000008
#define DB_MPOOL_LAST 0x00000010
#define DB_MPOOL_NEW 0x00000020
#define DB_MPOOL_NOFILE 0x00000001
#define DB_MPOOL_NOLOCK 0x00000004
#define DB_MPOOL_TRY 0x00000040
#define DB_MPOOL_UNLINK 0x00000002
#define DB_MULTIPLE 0x00000800
#define DB_MULTIPLE_KEY 0x00004000
#define DB_MULTIVERSION 0x00000008
#define DB_MUTEX_ALLOCATED 0x00000001
#define DB_MUTEX_LOCKED 0x00000002
#define DB_MUTEX_LOGICAL_LOCK 0x00000004
#define DB_MUTEX_PROCESS_ONLY 0x00000008
#define DB_MUTEX_SELF_BLOCK 0x00000010
#define DB_MUTEX_SHARED 0x00000020
#define DB_NOERROR 0x00004000
#define DB_NOFLUSH 0x00001000
#define DB_NOLOCKING 0x00002000
#define DB_NOMMAP 0x00000010
#define DB_NOORDERCHK 0x00000002
#define DB_NOPANIC 0x00004000
#define DB_NOSYNC 0x00000001
#define DB_NO_AUTO_COMMIT 0x00008000
#define DB_NO_CHECKPOINT 0x00008000
#define DB_ODDFILESIZE 0x00000080
#define DB_ORDERCHKONLY 0x00000004
#define DB_OVERWRITE 0x00008000
#define DB_PANIC_ENVIRONMENT 0x00010000
#define DB_PRINTABLE 0x00000008
#define DB_PRIVATE 0x00010000
#define DB_PR_PAGE 0x00000010
#define DB_PR_RECOVERYTEST 0x00000020
#define DB_RDONLY 0x00000400
#define DB_RDWRMASTER 0x00010000
#define DB_READ_COMMITTED 0x00000400
#define DB_READ_UNCOMMITTED 0x00000200
#define DB_RECNUM 0x00000040
#define DB_RECOVER 0x00000002
#define DB_RECOVER_FATAL 0x00020000
#define DB_REGION_INIT 0x00020000
#define DB_REGISTER 0x00040000
#define DB_RENUMBER 0x00000080
#define DB_REPMGR_CONF_2SITE_STRICT 0x00000001
#define DB_REPMGR_CONF_ELECTIONS 0x00000002
#define DB_REPMGR_NEED_RESPONSE 0x00000001
#define DB_REPMGR_PEER 0x00000010
#define DB_REP_ANYWHERE 0x00000001
#define DB_REP_CLIENT 0x00000001
#define DB_REP_CONF_AUTOINIT 0x00000004
#define DB_REP_CONF_AUTOROLLBACK 0x00000008
#define DB_REP_CONF_BULK 0x00000010
#define DB_REP_CONF_DELAYCLIENT 0x00000020
#define DB_REP_CONF_INMEM 0x00000040
#define DB_REP_CONF_LEASE 0x00000080
#define DB_REP_CONF_NOWAIT 0x00000100
#define DB_REP_ELECTION 0x00000004
#define DB_REP_MASTER 0x00000002
#define DB_REP_NOBUFFER 0x00000002
#define DB_REP_PERMANENT 0x00000004
#define DB_REP_REREQUEST 0x00000008
#define DB_REVSPLITOFF 0x00000100
#define DB_RMW 0x00002000
#define DB_SALVAGE 0x00000040
#define DB_SA_SKIPFIRSTKEY 0x00000080
#define DB_SA_UNKNOWNKEY 0x00000100
#define DB_SEQ_DEC 0x00000001
#define DB_SEQ_INC 0x00000002
#define DB_SEQ_RANGE_SET 0x00000004
#define DB_SEQ_WRAP 0x00000008
#define DB_SEQ_WRAPPED 0x00000010
#define DB_SET_LOCK_TIMEOUT 0x00000001
#define DB_SET_REG_TIMEOUT 0x00000004
#define DB_SET_TXN_NOW 0x00000008
#define DB_SET_TXN_TIMEOUT 0x00000002
#define DB_SHALLOW_DUP 0x00000100
#define DB_SNAPSHOT 0x00000200
#define DB_STAT_ALL 0x00000004
#define DB_STAT_ALLOC 0x00000008
#define DB_STAT_CLEAR 0x00000001
#define DB_STAT_LOCK_CONF 0x00000010
#define DB_STAT_LOCK_LOCKERS 0x00000020
#define DB_STAT_LOCK_OBJECTS 0x00000040
#define DB_STAT_LOCK_PARAMS 0x00000080
#define DB_STAT_MEMP_HASH 0x00000010
#define DB_STAT_MEMP_NOERROR 0x00000020
#define DB_STAT_SUBSYSTEM 0x00000002
#define DB_STAT_SUMMARY 0x00000010
#define DB_ST_DUPOK 0x00000200
#define DB_ST_DUPSET 0x00000400
#define DB_ST_DUPSORT 0x00000800
#define DB_ST_IS_RECNO 0x00001000
#define DB_ST_OVFL_LEAF 0x00002000
#define DB_ST_RECNUM 0x00004000
#define DB_ST_RELEN 0x00008000
#define DB_ST_TOPLEVEL 0x00010000
#define DB_SYSTEM_MEM 0x00080000
#define DB_THREAD 0x00000020
#define DB_TIME_NOTGRANTED 0x00040000