db

db.h File Reference

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

Go to the source code of this file.


Classes

struct __db
struct __db_bt_stat
struct __db_dbt
struct __db_env
struct __db_h_stat
struct __db_ilock
struct __db_lock_u
struct __db_lockreq
struct __db_log_stat
struct __db_lsn
struct __db_qam_stat
struct __db_txn_stat
struct __dbc
struct __key_range

Defines

#define __P(protos) ()
#define const
#define DB_AFTER 1
#define DB_AGGRESSIVE 0x0001
#define DB_AM_CMPR 0x40000
#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_APPEND 2
#define DB_ARCH_ABS 0x001
#define DB_ARCH_DATA 0x002
#define DB_ARCH_LOG 0x004
#define DB_BEFORE 3
#define DB_BT_RECNUM 0x00200
#define DB_BT_REVSPLIT 0x00400
#define DB_BTREEMAGIC 0x053162
#define DB_BTREEOLDVER 6
#define DB_BTREEVERSION 8
#define DB_CACHED_COUNTS 4
#define DB_CHECKPOINT 5
#define DB_CLIENT 0x000002
#define DB_COMPRESS 0x000200
#define DB_CONSUME 6
#define DB_CREATE 0x000001
#define DB_CURLSN 7
#define DB_CURRENT 8
#define DB_CXX_NO_EXCEPTIONS 0x000001
#define DB_DBM_ERROR 0x00800
#define DB_DBM_HSEARCH 0
#define DB_DBT_DUPOK 0x020
#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_DELETED (-30899)
#define DB_DUP 0x0001
#define DB_DUPSORT 0x0002
#define DB_ENV_CDB 0x00001
#define DB_ENV_CMPR 0x02000
#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_EXCL 0x000008
#define DB_FCNTL_LOCKING 0x000040
#define DB_FILE_ID_LEN 20
#define DB_FIRST 9
#define DB_FLUSH 10
#define DB_FORCE 0x000008
#define DB_GET_BOTH 11
#define DB_GET_BOTHC 12
#define DB_GET_RECNO 13
#define DB_HASHMAGIC 0x061561
#define DB_HASHOLDVER 4
#define DB_HASHVERSION 7
#define DB_INCOMPLETE (-30999)
#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_JOIN_ITEM 14
#define DB_JOIN_NOSORT 0x0001
#define DB_KEYEMPTY (-30998)
#define DB_KEYEXIST (-30997)
#define DB_KEYFIRST 15
#define DB_KEYLAST 16
#define DB_LAST 17
#define DB_LOCK_CONFLICT 0x01
#define DB_LOCK_DEADLOCK (-30996)
#define DB_LOCK_DEFAULT 1
#define DB_LOCK_NORUN 0
#define DB_LOCK_NOTGRANTED (-30995)
#define DB_LOCK_NOWAIT 0x01
#define DB_LOCK_OLDEST 2
#define DB_LOCK_RANDOM 3
#define DB_LOCK_RECORD 0x02
#define DB_LOCK_RIW_N 6
#define DB_LOCK_RW_N 3
#define DB_LOCK_UPGRADE 0x04
#define DB_LOCK_YOUNGEST 4
#define DB_LOCKDOWN 0x008000
#define DB_LOCKVERSION 1
#define DB_LOGMAGIC 0x040988
#define DB_LOGOLDVER 2
#define DB_LOGVERSION 2
#define DB_MAX_PAGES 0xffffffff
#define DB_MAX_RECORDS 0xffffffff
#define DB_MONITOR(e) ((e)->mp_monitor)
#define DB_MPOOL_CLEAN 0x001
#define DB_MPOOL_CREATE 0x001
#define DB_MPOOL_DIRTY 0x002
#define DB_MPOOL_DISCARD 0x004
#define DB_MPOOL_LAST 0x002
#define DB_MPOOL_NEW 0x004
#define DB_MPOOL_NEW_GROUP 0x008
#define DB_NEEDSPLIT (-30898)
#define DB_NEXT 18
#define DB_NEXT_DUP 19
#define DB_NEXT_NODUP 20
#define DB_NODUPDATA 21
#define DB_NOMMAP 0x000002
#define DB_NOORDERCHK 0x0002
#define DB_NOOVERWRITE 22
#define DB_NOSERVER (-30994)
#define DB_NOSERVER_HOME (-30993)
#define DB_NOSERVER_ID (-30992)
#define DB_NOSYNC 23
#define DB_NOTFOUND (-30991)
#define DB_ODDFILESIZE 0x000080
#define DB_OK_BTREE 0x01
#define DB_OK_HASH 0x02
#define DB_OK_QUEUE 0x04
#define DB_OK_RECNO 0x08
#define DB_OLD_VERSION (-30990)
#define DB_OPEN_CALLED 0x01000
#define DB_OPFLAGS_MASK 0x000000ff
#define DB_ORDERCHKONLY 0x0004
#define DB_PAGE_LOCK 2
#define DB_POSITION 24
#define DB_POSITIONI 25
#define DB_PR_HEADERS 0x0010
#define DB_PR_PAGE 0x0008
#define DB_PR_RECOVERYTEST 0x0020
#define DB_PREV 26
#define DB_PREV_NODUP 27
#define DB_PRIVATE 0x010000
#define DB_QAMMAGIC 0x042253
#define DB_QAMOLDVER 1
#define DB_QAMVERSION 2
#define DB_RDONLY 0x000010
#define DB_RDWRMASTER 0x000100
#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_RECNUM 0x0004
#define DB_RECORD_LOCK 1
#define DB_RECORDCOUNT 28
#define DB_RECOVER 0x000200
#define DB_RECOVER_FATAL 0x000400
#define DB_REDO(op) ((op) == DB_TXN_FORWARD_ROLL)
#define DB_RENUMBER 0x0008
#define DB_REVSPLITOFF 0x0010
#define DB_RMW 0x80000000
#define DB_RUNRECOVERY (-30989)
#define DB_SALVAGE 0x0040
#define DB_SET 29
#define DB_SET_RANGE 30
#define DB_SET_RECNO 31
#define DB_SNAPSHOT 0x0020
#define DB_SWAPBYTES (-30897)
#define DB_SYSTEM_MEM 0x000800
#define DB_THREAD 0x000004
#define DB_TRUNCATE 0x000020
#define DB_TXN_CKP (-30896)
#define DB_TXN_NOSYNC 0x001000
#define DB_TXN_NOWAIT 0x000002
#define DB_TXN_OPENFILES 3
#define DB_TXN_REDO 4
#define DB_TXN_SYNC 0x000001
#define DB_TXN_UNDO 5
#define DB_TXNVERSION 1
#define DB_UNDO(op) ((op) == DB_TXN_ABORT || (op) == DB_TXN_BACKWARD_ROLL)
#define DB_UPGRADE 0x000001
#define DB_USE_ENVIRON 0x002000
#define DB_USE_ENVIRON_ROOT 0x004000
#define DB_VERB_CHKPOINT 0x0001
#define DB_VERB_DEADLOCK 0x0002
#define DB_VERB_RECOVERY 0x0004
#define DB_VERB_WAITSFOR 0x0008
#define DB_VERIFY_BAD (-30988)
#define DB_VERIFY_FATAL (-30895)
#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, 2000)"
#define DB_VRFY_FLAGMASK 0xffff
#define DB_WRITECURSOR 32
#define DB_WRITELOCK 33
#define DB_XA_CREATE 0x000002
#define DBC_ACTIVE 0x001
#define DBC_OPD 0x002
#define DBC_RECOVER 0x004
#define DBC_RMW 0x008
#define DBC_TRANSIENT 0x080
#define DBC_WRITECURSOR 0x010
#define DBC_WRITEDUP 0x020
#define DBC_WRITER 0x040

Typedefs

typedef struct __db DB
typedef struct __db_bt_stat DB_BTREE_STAT
typedef struct __db_cmpr_info DB_CMPR_INFO
typedef struct __db_env DB_ENV
typedef struct __fh_t DB_FH
typedef struct __db_h_stat DB_HASH_STAT
typedef u_int16_t db_indx_t
typedef struct __key_range DB_KEY_RANGE
typedef struct __db_lock_u DB_LOCK
typedef struct __db_ilock DB_LOCK_ILOCK
typedef struct __db_lock_stat DB_LOCK_STAT
typedef struct __db_lockreq DB_LOCKREQ
typedef struct __db_log_stat DB_LOG_STAT
typedef struct __db_lsn DB_LSN
typedef struct __db_mpoolfile DB_MPOOLFILE
typedef u_int32_t db_pgno_t
typedef struct __db_qam_stat DB_QUEUE_STAT
typedef u_int32_t db_recno_t
typedef struct __db_txn DB_TXN
typedef struct __db_txn_stat DB_TXN_STAT
typedef struct __dbc DBC
typedef struct __dbc_internal DBC_INTERNAL
typedef struct __db_dbt DBT

Enumerations


Functions

int CDB_txn_stat __P ((DB_ENV *, DB_TXN_STAT **, void *(*)(size_t)))
int CDB_txn_commit __P ((DB_TXN *, u_int32_t))
int CDB_txn_checkpoint __P ((DB_ENV *, u_int32_t, u_int32_t, u_int32_t))
int CDB_txn_begin __P ((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t))
int CDB_txn_abort __P ((DB_TXN *))
int CDB_memp_trickle __P ((DB_ENV *, int, int *))
int CDB_memp_sync __P ((DB_ENV *, DB_LSN *))
int CDB_memp_stat __P ((DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, void *(*)(size_t)))
int CDB_memp_register __P ((DB_ENV *, int, int(*)(DB_ENV *, db_pgno_t, void *, DBT *), int(*)(DB_ENV *, db_pgno_t, void *, DBT *)))
int CDB_memp_fput __P ((DB_MPOOLFILE *, void *, u_int32_t))
int CDB_memp_fopen __P ((DB_ENV *, const char *, u_int32_t, int, size_t, DB_MPOOL_FINFO *, DB_MPOOLFILE **))
int CDB_memp_fget __P ((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *))
int CDB_memp_fclose __P ((DB_MPOOLFILE *))
int CDB_log_unregister __P ((DB_ENV *, DB *))
int CDB_log_stat __P ((DB_ENV *, DB_LOG_STAT **, void *(*)(size_t)))
int CDB_log_register __P ((DB_ENV *, DB *, const char *))
int CDB_log_put __P ((DB_ENV *, DB_LSN *, const DBT *, u_int32_t))
int CDB_log_get __P ((DB_ENV *, DB_LSN *, DBT *, u_int32_t))
int CDB_log_flush __P ((DB_ENV *, const DB_LSN *))
int CDB_log_file __P ((DB_ENV *, const DB_LSN *, char *, size_t))
int CDB_log_compare __P ((const DB_LSN *, const DB_LSN *))
int CDB_log_archive __P ((DB_ENV *, char **[], u_int32_t, void *(*)(size_t)))
int CDB_lock_vec __P ((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **))
int CDB_lock_stat __P ((DB_ENV *, DB_LOCK_STAT **, void *(*)(size_t)))
int CDB_lock_put __P ((DB_ENV *, DB_LOCK *))
int CDB_lock_id __P ((DB_ENV *, u_int32_t *))
int CDB_lock_get __P ((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *))
int CDB_lock_detect __P ((DB_ENV *, u_int32_t, u_int32_t, int *))
char *CDB_db_version __P ((int *, int *, int *))
int CDB_db_env_set_tas_spins __P ((u_int32_t))
int CDB_db_env_set_mutexlocks __P ((int))
int CDB_db_env_set_func_yield __P ((int(*)(void)))
int CDB_db_env_set_func_write __P ((ssize_t(*)(int, const void *, size_t)))
int CDB_db_env_set_func_unmap __P ((int(*)(void *, size_t)))
int CDB_db_env_set_func_unlink __P ((int(*)(const char *)))
int CDB_db_env_set_func_sleep __P ((int(*)(u_long, u_long)))
int CDB_db_env_set_func_seek __P ((int(*)(int, size_t, db_pgno_t, u_int32_t, int, int)))
int CDB_db_env_set_func_rename __P ((int(*)(const char *, const char *)))
int CDB_db_env_set_func_realloc __P ((void *(*)(void *, size_t)))
int CDB_db_env_set_func_read __P ((ssize_t(*)(int, void *, size_t)))
int CDB_db_env_set_func_open __P ((int(*)(const char *, int,...)))
int CDB_db_env_set_func_map __P ((int(*)(char *, size_t, int, int, void **)))
int CDB_db_env_set_func_malloc __P ((void *(*)(size_t)))
int CDB_db_env_set_func_ioinfo __P ((int(*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *)))
int CDB_db_env_set_func_free __P ((void(*)(void *)))
int CDB_db_env_set_func_exists __P ((int(*)(const char *, int *)))
int CDB_db_env_set_func_dirlist __P ((int(*)(const char *, char ***, int *)))
int CDB_db_env_set_func_dirfree __P ((void(*)(char **, int)))
int CDB_db_env_set_func_close __P ((int(*)(int)))
int CDB_db_env_create __P ((DB_ENV **, u_int32_t))
int CDB_db_create __P ((DB **, DB_ENV *, u_int32_t))

Variables

const u_int8_t CDB_db_riw_conflicts []
const u_int8_t CDB_db_rw_conflicts []

Generated on Sun Jun 8 10:56:43 2008 for GNUmifluz by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /