G:/ScriptBasic/source/extensions/bdb/db.h File Reference

#include <sys/types.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  __db_dbt
struct  __db_env
struct  __db
struct  __db_ilock
struct  __db_lock_u
struct  __dbc
struct  __key_range
struct  __db_bt_stat
struct  __db_qam_stat
struct  __db_h_stat
struct  __db_lockreq
struct  __db_lock_stat
struct  __db_lsn
struct  __db_log_stat
struct  __db_mpool_stat
struct  __db_mpool_finfo
struct  __db_mpool_fstat
struct  __db_txn_active
struct  __db_txn_stat

Defines

#define const
#define __P(protos)   ()
#define DB_VERSION_MAJOR   3
#define DB_VERSION_MINOR   1
#define DB_VERSION_PATCH   14
#define DB_VERSION_STRING   "Sleepycat Software: Berkeley DB 3.1.14: (June 7, 2000)"
#define DB_MAX_PAGES   0xffffffff
#define DB_MAX_RECORDS   0xffffffff
#define DB_DBT_ISSET   0x001
#define DB_DBT_MALLOC   0x002
#define DB_DBT_PARTIAL   0x004
#define DB_DBT_REALLOC   0x008
#define DB_DBT_USERMEM   0x010
#define DB_DBT_DUPOK   0x020
#define DB_CXX_NO_EXCEPTIONS   0x000001
#define DB_CLIENT   0x000002
#define DB_XA_CREATE   0x000002
#define DB_CREATE   0x000001
#define DB_NOMMAP   0x000002
#define DB_THREAD   0x000004
#define DB_FORCE   0x000008
#define DB_INIT_CDB   0x000010
#define DB_INIT_LOCK   0x000020
#define DB_INIT_LOG   0x000040
#define DB_INIT_MPOOL   0x000080
#define DB_INIT_TXN   0x000100
#define DB_RECOVER   0x000200
#define DB_RECOVER_FATAL   0x000400
#define DB_SYSTEM_MEM   0x000800
#define DB_TXN_NOSYNC   0x001000
#define DB_USE_ENVIRON   0x002000
#define DB_USE_ENVIRON_ROOT   0x004000
#define DB_LOCKDOWN   0x008000
#define DB_PRIVATE   0x010000
#define DB_TXN_SYNC   0x000001
#define DB_TXN_NOWAIT   0x000002
#define DB_EXCL   0x000008
#define DB_RDONLY   0x000010
#define DB_TRUNCATE   0x000020
#define DB_FCNTL_LOCKING   0x000040
#define DB_ODDFILESIZE   0x000080
#define DB_RDWRMASTER   0x000100
#define DB_AGGRESSIVE   0x0001
#define DB_NOORDERCHK   0x0002
#define DB_ORDERCHKONLY   0x0004
#define DB_PR_PAGE   0x0008
#define DB_PR_HEADERS   0x0010
#define DB_PR_RECOVERYTEST   0x0020
#define DB_SALVAGE   0x0040
#define DB_VRFY_FLAGMASK   0xffff
#define DB_UPGRADE   0x000001
#define DB_LOCK_NORUN   0
#define DB_LOCK_DEFAULT   1
#define DB_LOCK_OLDEST   2
#define DB_LOCK_RANDOM   3
#define DB_LOCK_YOUNGEST   4
#define DB_DUP   0x0001
#define DB_DUPSORT   0x0002
#define DB_RECNUM   0x0004
#define DB_RENUMBER   0x0008
#define DB_REVSPLITOFF   0x0010
#define DB_SNAPSHOT   0x0020
#define DB_JOIN_NOSORT   0x0001
#define DB_UNDO(op)   ((op) == DB_TXN_ABORT || (op) == DB_TXN_BACKWARD_ROLL)
#define DB_REDO(op)   ((op) == DB_TXN_FORWARD_ROLL)
#define DB_VERB_CHKPOINT   0x0001
#define DB_VERB_DEADLOCK   0x0002
#define DB_VERB_RECOVERY   0x0004
#define DB_VERB_WAITSFOR   0x0008
#define DB_ENV_CDB   0x00001
#define DB_ENV_CREATE   0x00002
#define DB_ENV_DBLOCAL   0x00004
#define DB_ENV_LOCKDOWN   0x00008
#define DB_ENV_NOMMAP   0x00010
#define DB_ENV_OPEN_CALLED   0x00020
#define DB_ENV_PRIVATE   0x00040
#define DB_ENV_RPCCLIENT   0x00080
#define DB_ENV_STANDALONE   0x00100
#define DB_ENV_SYSTEM_MEM   0x00200
#define DB_ENV_THREAD   0x00400
#define DB_ENV_TXN_NOSYNC   0x00800
#define DB_ENV_USER_ALLOC   0x01000
#define DB_BTREEVERSION   8
#define DB_BTREEOLDVER   6
#define DB_BTREEMAGIC   0x053162
#define DB_HASHVERSION   7
#define DB_HASHOLDVER   4
#define DB_HASHMAGIC   0x061561
#define DB_QAMVERSION   2
#define DB_QAMOLDVER   1
#define DB_QAMMAGIC   0x042253
#define DB_LOGVERSION   2
#define DB_LOGOLDVER   2
#define DB_LOGMAGIC   0x040988
#define DB_AFTER   1
#define DB_APPEND   2
#define DB_BEFORE   3
#define DB_CACHED_COUNTS   4
#define DB_CHECKPOINT   5
#define DB_CONSUME   6
#define DB_CURLSN   7
#define DB_CURRENT   8
#define DB_FIRST   9
#define DB_FLUSH   10
#define DB_GET_BOTH   11
#define DB_GET_BOTHC   12
#define DB_GET_RECNO   13
#define DB_JOIN_ITEM   14
#define DB_KEYFIRST   15
#define DB_KEYLAST   16
#define DB_LAST   17
#define DB_NEXT   18
#define DB_NEXT_DUP   19
#define DB_NEXT_NODUP   20
#define DB_NODUPDATA   21
#define DB_NOOVERWRITE   22
#define DB_NOSYNC   23
#define DB_POSITION   24
#define DB_POSITIONI   25
#define DB_PREV   26
#define DB_PREV_NODUP   27
#define DB_RECORDCOUNT   28
#define DB_SET   29
#define DB_SET_RANGE   30
#define DB_SET_RECNO   31
#define DB_WRITECURSOR   32
#define DB_WRITELOCK   33
#define DB_OPFLAGS_MASK   0x000000ff
#define DB_RMW   0x80000000
#define DB_INCOMPLETE   (-30999)
#define DB_KEYEMPTY   (-30998)
#define DB_KEYEXIST   (-30997)
#define DB_LOCK_DEADLOCK   (-30996)
#define DB_LOCK_NOTGRANTED   (-30995)
#define DB_NOSERVER   (-30994)
#define DB_NOSERVER_HOME   (-30993)
#define DB_NOSERVER_ID   (-30992)
#define DB_NOTFOUND   (-30991)
#define DB_OLD_VERSION   (-30990)
#define DB_RUNRECOVERY   (-30989)
#define DB_VERIFY_BAD   (-30988)
#define DB_DELETED   (-30899)
#define DB_NEEDSPLIT   (-30898)
#define DB_SWAPBYTES   (-30897)
#define DB_TXN_CKP   (-30896)
#define DB_VERIFY_FATAL   (-30895)
#define DB_FILE_ID_LEN   20
#define DB_LOGFILEID_INVALID   -1
#define DB_OK_BTREE   0x01
#define DB_OK_HASH   0x02
#define DB_OK_QUEUE   0x04
#define DB_OK_RECNO   0x08
#define DB_AM_DISCARD   0x00001
#define DB_AM_DUP   0x00002
#define DB_AM_DUPSORT   0x00004
#define DB_AM_INMEM   0x00008
#define DB_AM_PGDEF   0x00010
#define DB_AM_RDONLY   0x00020
#define DB_AM_RECOVER   0x00040
#define DB_AM_SUBDB   0x00080
#define DB_AM_SWAP   0x00100
#define DB_BT_RECNUM   0x00200
#define DB_BT_REVSPLIT   0x00400
#define DB_DBM_ERROR   0x00800
#define DB_OPEN_CALLED   0x01000
#define DB_RE_DELIMITER   0x02000
#define DB_RE_FIXEDLEN   0x04000
#define DB_RE_PAD   0x08000
#define DB_RE_RENUMBER   0x10000
#define DB_RE_SNAPSHOT   0x20000
#define DB_RECORD_LOCK   1
#define DB_PAGE_LOCK   2
#define DBC_ACTIVE   0x001
#define DBC_OPD   0x002
#define DBC_RECOVER   0x004
#define DBC_RMW   0x008
#define DBC_WRITECURSOR   0x010
#define DBC_WRITEDUP   0x020
#define DBC_WRITER   0x040
#define DBC_TRANSIENT   0x080
#define DB_LOCKVERSION   1
#define DB_LOCK_NOWAIT   0x01
#define DB_LOCK_RECORD   0x02
#define DB_LOCK_UPGRADE   0x04
#define DB_LOCK_CONFLICT   0x01
#define DB_LOCK_RW_N   3
#define DB_LOCK_RIW_N   6
#define DB_ARCH_ABS   0x001
#define DB_ARCH_DATA   0x002
#define DB_ARCH_LOG   0x004
#define DB_MPOOL_CREATE   0x001
#define DB_MPOOL_LAST   0x002
#define DB_MPOOL_NEW   0x004
#define DB_MPOOL_NEW_GROUP   0x008
#define DB_MPOOL_CLEAN   0x001
#define DB_MPOOL_DIRTY   0x002
#define DB_MPOOL_DISCARD   0x004
#define DB_TXNVERSION   1
#define DB_TXN_BACKWARD_ROLL   1
#define DB_TXN_FORWARD_ROLL   2
#define DB_TXN_OPENFILES   3
#define DB_TXN_REDO   4
#define DB_TXN_UNDO   5
#define DB_DBM_HSEARCH   0

Typedefs

typedef unsigned char u_int8_t
typedef short int16_t
typedef unsigned short u_int16_t
typedef int int32_t
typedef unsigned int u_int32_t
typedef unsigned char u_char
typedef unsigned short u_short
typedef unsigned int u_int
typedef unsigned long u_long
typedef int ssize_t
typedef u_int32_t db_pgno_t
typedef u_int16_t db_indx_t
typedef u_int32_t db_recno_t
typedef __db DB
typedef __db_bt_stat DB_BTREE_STAT
typedef __db_dbt DBT
typedef __db_env DB_ENV
typedef __db_h_stat DB_HASH_STAT
typedef __db_ilock DB_LOCK_ILOCK
typedef __db_lock_stat DB_LOCK_STAT
typedef __db_lock_u DB_LOCK
typedef __db_lockreq DB_LOCKREQ
typedef __db_log_stat DB_LOG_STAT
typedef __db_lsn DB_LSN
typedef __db_mpool_finfo DB_MPOOL_FINFO
typedef __db_mpool_fstat DB_MPOOL_FSTAT
typedef __db_mpool_stat DB_MPOOL_STAT
typedef __db_mpoolfile DB_MPOOLFILE
typedef __db_qam_stat DB_QUEUE_STAT
typedef __db_txn DB_TXN
typedef __db_txn_active DB_TXN_ACTIVE
typedef __db_txn_stat DB_TXN_STAT
typedef __dbc DBC
typedef __dbc_internal DBC_INTERNAL
typedef __fh_t DB_FH
typedef __key_range DB_KEY_RANGE

Enumerations

enum  db_recops { DB_TXN_ABORT, DB_TXN_BACKWARD_ROLL, DB_TXN_FORWARD_ROLL, DB_TXN_OPENFILES }
enum  DBTYPE {
  DB_BTREE = 1, DB_HASH, DB_RECNO, DB_QUEUE,
  DB_UNKNOWN
}
enum  db_lockop_t {
  DB_LOCK_DUMP = 0, DB_LOCK_GET, DB_LOCK_INHERIT, DB_LOCK_PUT,
  DB_LOCK_PUT_ALL, DB_LOCK_PUT_OBJ
}
enum  db_lockmode_t {
  DB_LOCK_NG = 0, DB_LOCK_READ, DB_LOCK_WRITE, DB_LOCK_IWRITE,
  DB_LOCK_IREAD, DB_LOCK_IWR
}
enum  db_status_t {
  DB_LSTAT_ABORTED, DB_LSTAT_ERR, DB_LSTAT_FREE, DB_LSTAT_HELD,
  DB_LSTAT_NOGRANT, DB_LSTAT_PENDING, DB_LSTAT_WAITING
}

Functions

int db_create __P ((DB **, DB_ENV *, u_int32_t))
int db_env_create __P ((DB_ENV **, u_int32_t))
int db_env_set_func_close __P ((int(*)(int)))
int db_env_set_func_dirfree __P ((void(*)(char **, int)))
int db_env_set_func_dirlist __P ((int(*)(const char *, char ***, int *)))
int db_env_set_func_exists __P ((int(*)(const char *, int *)))
int db_env_set_func_free __P ((void(*)(void *)))
int db_env_set_func_ioinfo __P ((int(*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *)))
int db_env_set_func_malloc __P ((void *(*)(size_t)))
int db_env_set_func_map __P ((int(*)(char *, size_t, int, int, void **)))
int db_env_set_func_open __P ((int(*)(const char *, int,...)))
int db_env_set_func_read __P ((ssize_t(*)(int, void *, size_t)))
int db_env_set_func_realloc __P ((void *(*)(void *, size_t)))
int db_env_set_func_rename __P ((int(*)(const char *, const char *)))
int db_env_set_func_seek __P ((int(*)(int, size_t, db_pgno_t, u_int32_t, int, int)))
int db_env_set_func_sleep __P ((int(*)(u_long, u_long)))
int db_env_set_func_unlink __P ((int(*)(const char *)))
int db_env_set_func_unmap __P ((int(*)(void *, size_t)))
int db_env_set_func_write __P ((ssize_t(*)(int, const void *, size_t)))
int db_env_set_func_yield __P ((int(*)(void)))
int db_env_set_mutexlocks __P ((int))
int db_env_set_tas_spins __P ((u_int32_t))
char *db_version __P ((int *, int *, int *))
int lock_detect __P ((DB_ENV *, u_int32_t, u_int32_t, int *))
int lock_get __P ((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *))
int lock_id __P ((DB_ENV *, u_int32_t *))
int lock_put __P ((DB_ENV *, DB_LOCK *))
int lock_stat __P ((DB_ENV *, DB_LOCK_STAT **, void *(*)(size_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, void *(*)(size_t)))
int log_compare __P ((const DB_LSN *, const DB_LSN *))
int log_file __P ((DB_ENV *, const DB_LSN *, char *, size_t))
int log_flush __P ((DB_ENV *, const DB_LSN *))
int log_get __P ((DB_ENV *, DB_LSN *, DBT *, u_int32_t))
int log_put __P ((DB_ENV *, DB_LSN *, const DBT *, u_int32_t))
int log_register __P ((DB_ENV *, DB *, const char *))
int log_stat __P ((DB_ENV *, DB_LOG_STAT **, void *(*)(size_t)))
int log_unregister __P ((DB_ENV *, DB *))
int memp_fclose __P ((DB_MPOOLFILE *))
int memp_fget __P ((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *))
int memp_fopen __P ((DB_ENV *, const char *, u_int32_t, int, size_t, DB_MPOOL_FINFO *, DB_MPOOLFILE **))
int memp_fput __P ((DB_MPOOLFILE *, void *, 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 ***, void *(*)(size_t)))
int memp_sync __P ((DB_ENV *, DB_LSN *))
int memp_trickle __P ((DB_ENV *, int, int *))
int txn_abort __P ((DB_TXN *))
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_commit __P ((DB_TXN *, u_int32_t))
int txn_stat __P ((DB_ENV *, DB_TXN_STAT **, void *(*)(size_t)))

Variables

const u_int8_t db_rw_conflicts []
const u_int8_t db_riw_conflicts []


Define Documentation

#define __P protos   )     ()
 

Definition at line 48 of file db.h.

#define const
 

Definition at line 47 of file db.h.

#define DB_AFTER   1
 

Definition at line 459 of file db.h.

#define DB_AGGRESSIVE   0x0001
 

Definition at line 212 of file db.h.

#define DB_AM_DISCARD   0x00001
 

Definition at line 684 of file db.h.

#define DB_AM_DUP   0x00002
 

Definition at line 685 of file db.h.

#define DB_AM_DUPSORT   0x00004
 

Definition at line 686 of file db.h.

#define DB_AM_INMEM   0x00008
 

Definition at line 687 of file db.h.

#define DB_AM_PGDEF   0x00010
 

Definition at line 688 of file db.h.

#define DB_AM_RDONLY   0x00020
 

Definition at line 689 of file db.h.

#define DB_AM_RECOVER   0x00040
 

Definition at line 690 of file db.h.

#define DB_AM_SUBDB   0x00080
 

Definition at line 691 of file db.h.

#define DB_AM_SWAP   0x00100
 

Definition at line 692 of file db.h.

#define DB_APPEND   2
 

Definition at line 460 of file db.h.

#define DB_ARCH_ABS   0x001
 

Definition at line 1004 of file db.h.

#define DB_ARCH_DATA   0x002
 

Definition at line 1005 of file db.h.

#define DB_ARCH_LOG   0x004
 

Definition at line 1006 of file db.h.

#define DB_BEFORE   3
 

Definition at line 461 of file db.h.

#define DB_BT_RECNUM   0x00200
 

Definition at line 693 of file db.h.

#define DB_BT_REVSPLIT   0x00400
 

Definition at line 694 of file db.h.

#define DB_BTREEMAGIC   0x053162
 

Definition at line 441 of file db.h.

#define DB_BTREEOLDVER   6
 

Definition at line 440 of file db.h.

#define DB_BTREEVERSION   8
 

Definition at line 439 of file db.h.

#define DB_CACHED_COUNTS   4
 

Definition at line 462 of file db.h.

#define DB_CHECKPOINT   5
 

Definition at line 463 of file db.h.

#define DB_CLIENT   0x000002
 

Definition at line 152 of file db.h.

#define DB_CONSUME   6
 

Definition at line 464 of file db.h.

#define DB_CREATE   0x000001
 

Definition at line 162 of file db.h.

#define DB_CURLSN   7
 

Definition at line 465 of file db.h.

#define DB_CURRENT   8
 

Definition at line 466 of file db.h.

#define DB_CXX_NO_EXCEPTIONS   0x000001
 

Definition at line 147 of file db.h.

#define DB_DBM_ERROR   0x00800
 

Definition at line 695 of file db.h.

#define DB_DBM_HSEARCH   0
 

Definition at line 1176 of file db.h.

#define DB_DBT_DUPOK   0x020
 

Definition at line 138 of file db.h.

#define DB_DBT_ISSET   0x001
 

Definition at line 133 of file db.h.

#define DB_DBT_MALLOC   0x002
 

Definition at line 134 of file db.h.

#define DB_DBT_PARTIAL   0x004
 

Definition at line 135 of file db.h.

#define DB_DBT_REALLOC   0x008
 

Definition at line 136 of file db.h.

#define DB_DBT_USERMEM   0x010
 

Definition at line 137 of file db.h.

#define DB_DELETED   (-30899)
 

Definition at line 528 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_DUP   0x0001
 

Definition at line 240 of file db.h.

#define DB_DUPSORT   0x0002
 

Definition at line 241 of file db.h.

#define DB_ENV_CDB   0x00001
 

Definition at line 408 of file db.h.

#define DB_ENV_CREATE   0x00002
 

Definition at line 409 of file db.h.

#define DB_ENV_DBLOCAL   0x00004
 

Definition at line 410 of file db.h.

#define DB_ENV_LOCKDOWN   0x00008
 

Definition at line 411 of file db.h.

#define DB_ENV_NOMMAP   0x00010
 

Definition at line 412 of file db.h.

#define DB_ENV_OPEN_CALLED   0x00020
 

Definition at line 413 of file db.h.

#define DB_ENV_PRIVATE   0x00040
 

Definition at line 414 of file db.h.

#define DB_ENV_RPCCLIENT   0x00080
 

Definition at line 415 of file db.h.

#define DB_ENV_STANDALONE   0x00100
 

Definition at line 416 of file db.h.

#define DB_ENV_SYSTEM_MEM   0x00200
 

Definition at line 417 of file db.h.

#define DB_ENV_THREAD   0x00400
 

Definition at line 418 of file db.h.

#define DB_ENV_TXN_NOSYNC   0x00800
 

Definition at line 419 of file db.h.

#define DB_ENV_USER_ALLOC   0x01000
 

Definition at line 420 of file db.h.

#define DB_EXCL   0x000008
 

Definition at line 198 of file db.h.

#define DB_FCNTL_LOCKING   0x000040
 

Definition at line 201 of file db.h.

#define DB_FILE_ID_LEN   20
 

Definition at line 534 of file db.h.

#define DB_FIRST   9
 

Definition at line 467 of file db.h.

#define DB_FLUSH   10
 

Definition at line 468 of file db.h.

#define DB_FORCE   0x000008
 

Definition at line 169 of file db.h.

#define DB_GET_BOTH   11
 

Definition at line 469 of file db.h.

#define DB_GET_BOTHC   12
 

Definition at line 470 of file db.h.

#define DB_GET_RECNO   13
 

Definition at line 471 of file db.h.

#define DB_HASHMAGIC   0x061561
 

Definition at line 445 of file db.h.

#define DB_HASHOLDVER   4
 

Definition at line 444 of file db.h.

#define DB_HASHVERSION   7
 

Definition at line 443 of file db.h.

#define DB_INCOMPLETE   (-30999)
 

Definition at line 514 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_INIT_CDB   0x000010
 

Definition at line 170 of file db.h.

#define DB_INIT_LOCK   0x000020
 

Definition at line 171 of file db.h.

#define DB_INIT_LOG   0x000040
 

Definition at line 172 of file db.h.

#define DB_INIT_MPOOL   0x000080
 

Definition at line 173 of file db.h.

#define DB_INIT_TXN   0x000100
 

Definition at line 174 of file db.h.

#define DB_JOIN_ITEM   14
 

Definition at line 472 of file db.h.

#define DB_JOIN_NOSORT   0x0001
 

Definition at line 250 of file db.h.

#define DB_KEYEMPTY   (-30998)
 

Definition at line 515 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_KEYEXIST   (-30997)
 

Definition at line 516 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_KEYFIRST   15
 

Definition at line 473 of file db.h.

#define DB_KEYLAST   16
 

Definition at line 474 of file db.h.

#define DB_LAST   17
 

Definition at line 475 of file db.h.

#define DB_LOCK_CONFLICT   0x01
 

Definition at line 901 of file db.h.

#define DB_LOCK_DEADLOCK   (-30996)
 

Definition at line 517 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_LOCK_DEFAULT   1
 

Definition at line 232 of file db.h.

Referenced by if().

#define DB_LOCK_NORUN   0
 

Definition at line 231 of file db.h.

#define DB_LOCK_NOTGRANTED   (-30995)
 

Definition at line 518 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_LOCK_NOWAIT   0x01
 

Definition at line 896 of file db.h.

#define DB_LOCK_OLDEST   2
 

Definition at line 233 of file db.h.

Referenced by if().

#define DB_LOCK_RANDOM   3
 

Definition at line 234 of file db.h.

Referenced by if().

#define DB_LOCK_RECORD   0x02
 

Definition at line 897 of file db.h.

#define DB_LOCK_RIW_N   6
 

Definition at line 971 of file db.h.

#define DB_LOCK_RW_N   3
 

Definition at line 967 of file db.h.

#define DB_LOCK_UPGRADE   0x04
 

Definition at line 898 of file db.h.

#define DB_LOCK_YOUNGEST   4
 

Definition at line 235 of file db.h.

Referenced by if().

#define DB_LOCKDOWN   0x008000
 

Definition at line 185 of file db.h.

#define DB_LOCKVERSION   1
 

Definition at line 893 of file db.h.

#define DB_LOGFILEID_INVALID   -1
 

Definition at line 562 of file db.h.

#define DB_LOGMAGIC   0x040988
 

Definition at line 453 of file db.h.

#define DB_LOGOLDVER   2
 

Definition at line 452 of file db.h.

#define DB_LOGVERSION   2
 

Definition at line 451 of file db.h.

#define DB_MAX_PAGES   0xffffffff
 

Definition at line 88 of file db.h.

#define DB_MAX_RECORDS   0xffffffff
 

Definition at line 91 of file db.h.

#define DB_MPOOL_CLEAN   0x001
 

Definition at line 1063 of file db.h.

#define DB_MPOOL_CREATE   0x001
 

Definition at line 1057 of file db.h.

#define DB_MPOOL_DIRTY   0x002
 

Definition at line 1064 of file db.h.

#define DB_MPOOL_DISCARD   0x004
 

Definition at line 1065 of file db.h.

#define DB_MPOOL_LAST   0x002
 

Definition at line 1058 of file db.h.

#define DB_MPOOL_NEW   0x004
 

Definition at line 1059 of file db.h.

#define DB_MPOOL_NEW_GROUP   0x008
 

Definition at line 1060 of file db.h.

#define DB_NEEDSPLIT   (-30898)
 

Definition at line 529 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_NEXT   18
 

Definition at line 476 of file db.h.

#define DB_NEXT_DUP   19
 

Definition at line 477 of file db.h.

#define DB_NEXT_NODUP   20
 

Definition at line 478 of file db.h.

#define DB_NODUPDATA   21
 

Definition at line 479 of file db.h.

#define DB_NOMMAP   0x000002
 

Definition at line 163 of file db.h.

#define DB_NOORDERCHK   0x0002
 

Definition at line 213 of file db.h.

#define DB_NOOVERWRITE   22
 

Definition at line 480 of file db.h.

#define DB_NOSERVER   (-30994)
 

Definition at line 519 of file db.h.

#define DB_NOSERVER_HOME   (-30993)
 

Definition at line 520 of file db.h.

#define DB_NOSERVER_ID   (-30992)
 

Definition at line 521 of file db.h.

#define DB_NOSYNC   23
 

Definition at line 481 of file db.h.

#define DB_NOTFOUND   (-30991)
 

Definition at line 522 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_ODDFILESIZE   0x000080
 

Definition at line 202 of file db.h.

#define DB_OK_BTREE   0x01
 

Definition at line 678 of file db.h.

#define DB_OK_HASH   0x02
 

Definition at line 679 of file db.h.

#define DB_OK_QUEUE   0x04
 

Definition at line 680 of file db.h.

#define DB_OK_RECNO   0x08
 

Definition at line 681 of file db.h.

#define DB_OLD_VERSION   (-30990)
 

Definition at line 523 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_OPEN_CALLED   0x01000
 

Definition at line 696 of file db.h.

#define DB_OPFLAGS_MASK   0x000000ff
 

Definition at line 494 of file db.h.

#define DB_ORDERCHKONLY   0x0004
 

Definition at line 214 of file db.h.

#define DB_PAGE_LOCK   2
 

Definition at line 713 of file db.h.

#define DB_POSITION   24
 

Definition at line 482 of file db.h.

#define DB_POSITIONI   25
 

Definition at line 483 of file db.h.

#define DB_PR_HEADERS   0x0010
 

Definition at line 216 of file db.h.

#define DB_PR_PAGE   0x0008
 

Definition at line 215 of file db.h.

#define DB_PR_RECOVERYTEST   0x0020
 

Definition at line 217 of file db.h.

#define DB_PREV   26
 

Definition at line 484 of file db.h.

#define DB_PREV_NODUP   27
 

Definition at line 485 of file db.h.

#define DB_PRIVATE   0x010000
 

Definition at line 186 of file db.h.

#define DB_QAMMAGIC   0x042253
 

Definition at line 449 of file db.h.

#define DB_QAMOLDVER   1
 

Definition at line 448 of file db.h.

#define DB_QAMVERSION   2
 

Definition at line 447 of file db.h.

#define DB_RDONLY   0x000010
 

Definition at line 199 of file db.h.

#define DB_RDWRMASTER   0x000100
 

Definition at line 203 of file db.h.

#define DB_RE_DELIMITER   0x02000
 

Definition at line 697 of file db.h.

#define DB_RE_FIXEDLEN   0x04000
 

Definition at line 698 of file db.h.

#define DB_RE_PAD   0x08000
 

Definition at line 699 of file db.h.

#define DB_RE_RENUMBER   0x10000
 

Definition at line 700 of file db.h.

#define DB_RE_SNAPSHOT   0x20000
 

Definition at line 701 of file db.h.

#define DB_RECNUM   0x0004
 

Definition at line 242 of file db.h.

#define DB_RECORD_LOCK   1
 

Definition at line 712 of file db.h.

#define DB_RECORDCOUNT   28
 

Definition at line 486 of file db.h.

#define DB_RECOVER   0x000200
 

Definition at line 175 of file db.h.

#define DB_RECOVER_FATAL   0x000400
 

Definition at line 176 of file db.h.

#define DB_REDO op   )     ((op) == DB_TXN_FORWARD_ROLL)
 

Definition at line 260 of file db.h.

#define DB_RENUMBER   0x0008
 

Definition at line 243 of file db.h.

#define DB_REVSPLITOFF   0x0010
 

Definition at line 244 of file db.h.

#define DB_RMW   0x80000000
 

Definition at line 495 of file db.h.

#define DB_RUNRECOVERY   (-30989)
 

Definition at line 524 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_SALVAGE   0x0040
 

Definition at line 218 of file db.h.

#define DB_SET   29
 

Definition at line 487 of file db.h.

#define DB_SET_RANGE   30
 

Definition at line 488 of file db.h.

#define DB_SET_RECNO   31
 

Definition at line 489 of file db.h.

#define DB_SNAPSHOT   0x0020
 

Definition at line 245 of file db.h.

#define DB_SWAPBYTES   (-30897)
 

Definition at line 530 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_SYSTEM_MEM   0x000800
 

Definition at line 177 of file db.h.

#define DB_THREAD   0x000004
 

Definition at line 164 of file db.h.

#define DB_TRUNCATE   0x000020
 

Definition at line 200 of file db.h.

#define DB_TXN_BACKWARD_ROLL   1
 

Definition at line 1134 of file db.h.

#define DB_TXN_CKP   (-30896)
 

Definition at line 531 of file db.h.

Referenced by ConvertBdbErrors().

#define DB_TXN_FORWARD_ROLL   2
 

Definition at line 1135 of file db.h.

#define DB_TXN_NOSYNC   0x001000
 

Definition at line 178 of file db.h.

#define DB_TXN_NOWAIT   0x000002
 

Definition at line 193 of file db.h.

#define DB_TXN_OPENFILES   3
 

Definition at line 1136 of file db.h.

#define DB_TXN_REDO   4
 

Definition at line 1137 of file db.h.

#define DB_TXN_SYNC   0x000001
 

Definition at line 192 of file db.h.

#define DB_TXN_UNDO   5
 

Definition at line 1138 of file db.h.

#define DB_TXNVERSION   1
 

Definition at line 1131 of file db.h.

#define DB_UNDO op   )     ((op) == DB_TXN_ABORT || (op) == DB_TXN_BACKWARD_ROLL)
 

Definition at line 259 of file db.h.

#define DB_UPGRADE   0x000001
 

Definition at line 225 of file db.h.

#define DB_USE_ENVIRON   0x002000
 

Definition at line 179 of file db.h.

#define DB_USE_ENVIRON_ROOT   0x004000
 

Definition at line 180 of file db.h.

#define DB_VERB_CHKPOINT   0x0001
 

Definition at line 279 of file db.h.

#define DB_VERB_DEADLOCK   0x0002
 

Definition at line 280 of file db.h.

#define DB_VERB_RECOVERY   0x0004
 

Definition at line 281 of file db.h.

#define DB_VERB_WAITSFOR   0x0008
 

Definition at line 282 of file db.h.

#define DB_VERIFY_BAD   (-30988)
 

Definition at line 525 of file db.h.

#define DB_VERIFY_FATAL   (-30895)
 

Definition at line 532 of file db.h.

#define DB_VERSION_MAJOR   3
 

Definition at line 81 of file db.h.

#define DB_VERSION_MINOR   1
 

Definition at line 82 of file db.h.

#define DB_VERSION_PATCH   14
 

Definition at line 83 of file db.h.

#define DB_VERSION_STRING   "Sleepycat Software: Berkeley DB 3.1.14: (June 7, 2000)"
 

Definition at line 84 of file db.h.

#define DB_VRFY_FLAGMASK   0xffff
 

Definition at line 219 of file db.h.

#define DB_WRITECURSOR   32
 

Definition at line 490 of file db.h.

#define DB_WRITELOCK   33
 

Definition at line 491 of file db.h.

#define DB_XA_CREATE   0x000002
 

Definition at line 157 of file db.h.

#define DBC_ACTIVE   0x001
 

Definition at line 777 of file db.h.

#define DBC_OPD   0x002
 

Definition at line 778 of file db.h.

#define DBC_RECOVER   0x004
 

Definition at line 779 of file db.h.

#define DBC_RMW   0x008
 

Definition at line 782 of file db.h.

#define DBC_TRANSIENT   0x080
 

Definition at line 786 of file db.h.

#define DBC_WRITECURSOR   0x010
 

Definition at line 783 of file db.h.

#define DBC_WRITEDUP   0x020
 

Definition at line 784 of file db.h.

#define DBC_WRITER   0x040
 

Definition at line 785 of file db.h.


Typedef Documentation

typedef struct __db DB
 

Definition at line 94 of file db.h.

typedef struct __db_bt_stat DB_BTREE_STAT
 

Definition at line 98 of file db.h.

typedef struct __db_env DB_ENV
 

Definition at line 100 of file db.h.

typedef struct __fh_t DB_FH
 

Definition at line 118 of file db.h.

typedef struct __db_h_stat DB_HASH_STAT
 

Definition at line 101 of file db.h.

typedef u_int16_t db_indx_t
 

Definition at line 87 of file db.h.

typedef struct __key_range DB_KEY_RANGE
 

Definition at line 119 of file db.h.

typedef struct __db_lock_u DB_LOCK
 

Definition at line 104 of file db.h.

typedef struct __db_ilock DB_LOCK_ILOCK
 

Definition at line 102 of file db.h.

typedef struct __db_lock_stat DB_LOCK_STAT
 

Definition at line 103 of file db.h.

typedef struct __db_lockreq DB_LOCKREQ
 

Definition at line 105 of file db.h.

typedef struct __db_log_stat DB_LOG_STAT
 

Definition at line 106 of file db.h.

typedef struct __db_lsn DB_LSN
 

Definition at line 107 of file db.h.

typedef struct __db_mpool_finfo DB_MPOOL_FINFO
 

Definition at line 108 of file db.h.

typedef struct __db_mpool_fstat DB_MPOOL_FSTAT
 

Definition at line 109 of file db.h.

typedef struct __db_mpool_stat DB_MPOOL_STAT
 

Definition at line 110 of file db.h.

typedef struct __db_mpoolfile DB_MPOOLFILE
 

Definition at line 111 of file db.h.

typedef u_int32_t db_pgno_t
 

Definition at line 86 of file db.h.

typedef struct __db_qam_stat DB_QUEUE_STAT
 

Definition at line 112 of file db.h.

typedef u_int32_t db_recno_t
 

Definition at line 90 of file db.h.

typedef struct __db_txn DB_TXN
 

Definition at line 113 of file db.h.

typedef struct __db_txn_active DB_TXN_ACTIVE
 

Definition at line 114 of file db.h.

typedef struct __db_txn_stat DB_TXN_STAT
 

Definition at line 115 of file db.h.

typedef struct __dbc DBC
 

Definition at line 116 of file db.h.

typedef struct __dbc_internal DBC_INTERNAL
 

Definition at line 117 of file db.h.

typedef struct __db_dbt DBT
 

Definition at line 99 of file db.h.

typedef short int16_t
 

Definition at line 67 of file db.h.

typedef int int32_t
 

Definition at line 69 of file db.h.

typedef int ssize_t
 

Definition at line 79 of file db.h.

typedef unsigned char u_char
 

Definition at line 74 of file db.h.

typedef unsigned int u_int
 

Definition at line 76 of file db.h.

typedef unsigned short u_int16_t
 

Definition at line 68 of file db.h.

typedef unsigned int u_int32_t
 

Definition at line 70 of file db.h.

typedef unsigned char u_int8_t
 

Definition at line 66 of file db.h.

typedef unsigned long u_long
 

Definition at line 77 of file db.h.

typedef unsigned short u_short
 

Definition at line 75 of file db.h.


Enumeration Type Documentation

enum db_lockmode_t
 

Enumerator:
DB_LOCK_NG 
DB_LOCK_READ 
DB_LOCK_WRITE 
DB_LOCK_IWRITE 
DB_LOCK_IREAD 
DB_LOCK_IWR 

Definition at line 929 of file db.h.

enum db_lockop_t
 

Enumerator:
DB_LOCK_DUMP 
DB_LOCK_GET 
DB_LOCK_INHERIT 
DB_LOCK_PUT 
DB_LOCK_PUT_ALL 
DB_LOCK_PUT_OBJ 

Definition at line 909 of file db.h.

enum db_recops
 

Enumerator:
DB_TXN_ABORT 
DB_TXN_BACKWARD_ROLL 
DB_TXN_FORWARD_ROLL 
DB_TXN_OPENFILES 

Definition at line 252 of file db.h.

enum db_status_t
 

Enumerator:
DB_LSTAT_ABORTED 
DB_LSTAT_ERR 
DB_LSTAT_FREE 
DB_LSTAT_HELD 
DB_LSTAT_NOGRANT 
DB_LSTAT_PENDING 
DB_LSTAT_WAITING 

Definition at line 941 of file db.h.

enum DBTYPE
 

Enumerator:
DB_BTREE 
DB_HASH 
DB_RECNO 
DB_QUEUE 
DB_UNKNOWN 

Definition at line 431 of file db.h.


Function Documentation

int txn_stat __P (DB_ENV *, DB_TXN_STAT **, void *(*)(size_t))   ) 
 

int txn_commit __P (DB_TXN *, u_int32_t  ) 
 

int txn_checkpoint __P (DB_ENV *, u_int32_t, u_int32_t, u_int32_t  ) 
 

int txn_begin __P (DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t  ) 
 

int txn_prepare __P (DB_TXN *)   ) 
 

int memp_trickle __P (DB_ENV *, int, int *)   ) 
 

int memp_sync __P (DB_ENV *, DB_LSN *)   ) 
 

int memp_stat __P (DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, void *(*)(size_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_fset __P (DB_MPOOLFILE *, void *, u_int32_t  ) 
 

int memp_fopen __P (DB_ENV *, const char *, u_int32_t, int, size_t, DB_MPOOL_FINFO *, DB_MPOOLFILE **)   ) 
 

int memp_fget __P (DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *)   ) 
 

int memp_fsync __P (DB_MPOOLFILE *)   ) 
 

int log_unregister __P (DB_ENV *, DB *)   ) 
 

int log_stat __P (DB_ENV *, DB_LOG_STAT **, void *(*)(size_t))   ) 
 

int log_register __P (DB_ENV *, DB *, const char *)   ) 
 

int log_put __P (DB_ENV *, DB_LSN *, const DBT *, u_int32_t  ) 
 

int log_get __P (DB_ENV *, DB_LSN *, DBT *, u_int32_t  ) 
 

int log_flush __P (DB_ENV *, const DB_LSN *)   ) 
 

int log_file __P (DB_ENV *, const DB_LSN *, char *, size_t)   ) 
 

int log_compare __P (const DB_LSN *, const DB_LSN *)   ) 
 

int log_archive __P (DB_ENV *, char **[], u_int32_t, void *(*)(size_t))   ) 
 

int lock_vec __P (DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **)   ) 
 

int lock_stat __P (DB_ENV *, DB_LOCK_STAT **, void *(*)(size_t))   ) 
 

int lock_put __P (DB_ENV *, DB_LOCK *)   ) 
 

int lock_id __P (DB_ENV *, u_int32_t *)   ) 
 

int lock_get __P (DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *)   ) 
 

int lock_detect __P (DB_ENV *, u_int32_t, u_int32_t, int *)   ) 
 

char* db_version __P (int *, int *, int *)   ) 
 

int db_env_set_tas_spins __P (u_int32_t  ) 
 

char *db_strerror __P (int)   ) 
 

int db_env_set_func_yield __P (int(*)(void))   ) 
 

int db_env_set_func_write __P (ssize_t(*)(int, const void *, size_t))   ) 
 

int db_env_set_func_unmap __P (int(*)(void *, size_t))   ) 
 

int db_env_set_func_unlink __P (int(*)(const char *))   ) 
 

int db_env_set_func_sleep __P (int(*)(u_long, u_long))   ) 
 

int db_env_set_func_seek __P (int(*)(int, size_t, db_pgno_t, u_int32_t, int, int))   ) 
 

int db_env_set_func_rename __P (int(*)(const char *, const char *))   ) 
 

int db_env_set_func_realloc __P (void *(*)(void *, size_t))   ) 
 

int db_env_set_func_read __P (ssize_t(*)(int, void *, size_t))   ) 
 

int db_env_set_func_open __P (int(*)(const char *, int,...))   ) 
 

int db_env_set_func_map __P (int(*)(char *, size_t, int, int, void **))   ) 
 

int db_env_set_func_malloc __P (void *(*)(size_t))   ) 
 

int db_env_set_func_ioinfo __P (int(*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *))   ) 
 

int db_env_set_func_free __P (void(*)(void *))   ) 
 

int db_env_set_func_exists __P (int(*)(const char *, int *))   ) 
 

int db_env_set_func_dirlist __P (int(*)(const char *, char ***, int *))   ) 
 

int db_env_set_func_dirfree __P (void(*)(char **, int))   ) 
 

int db_env_set_func_fsync __P (int(*)(int))   ) 
 

int db_env_create __P (DB_ENV **, u_int32_t  ) 
 

int db_create __P (DB **, DB_ENV *, u_int32_t  ) 
 


Variable Documentation

const u_int8_t db_riw_conflicts[]
 

const u_int8_t db_rw_conflicts[]
 


Generated on Sun Mar 12 23:56:34 2006 for ScriptBasic by  doxygen 1.4.6-NO