Import BSDDB 4.7.25 (as of svn r89086)

This commit is contained in:
Zachary Ware
2017-09-04 13:40:25 -05:00
parent 4b29e0458f
commit 8f590873d0
4781 changed files with 2241032 additions and 6 deletions

176
dbinc_auto/api_flags.in Normal file
View File

@@ -0,0 +1,176 @@
/* 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_CDB_ALLDB 0x00000004
#define DB_CHKSUM 0x00000004
#define DB_CKP_INTERNAL 0x00000002
#define DB_CREATE 0x00000001
#define DB_CXX_NO_EXCEPTIONS 0x00000002
#define DB_DIRECT 0x00000002
#define DB_DIRECT_DB 0x00000040
#define DB_DSYNC_DB 0x00000080
#define DB_DUP 0x00000008
#define DB_DUPSORT 0x00000002
#define DB_DURABLE_UNKNOWN 0x00000020
#define DB_ENCRYPT 0x00000001
#define DB_ENCRYPT_AES 0x00000001
#define DB_EXCL 0x00000400
#define DB_EXTENT 0x00000004
#define DB_FAST_STAT 0x00000001
#define DB_FCNTL_LOCKING 0x00001000
#define DB_FLUSH 0x00000001
#define DB_FORCE 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_IGNORE_LEASE 0x00001000
#define DB_IMMUTABLE_KEY 0x00000002
#define DB_INIT_CDB 0x00000020
#define DB_INIT_LOCK 0x00000040
#define DB_INIT_LOG 0x00000080
#define DB_INIT_MPOOL 0x00000100
#define DB_INIT_REP 0x00000200
#define DB_INIT_TXN 0x00000400
#define DB_INORDER 0x00000010
#define DB_JOIN_NOSORT 0x00000001
#define DB_LOCKDOWN 0x00000800
#define DB_LOCK_NOWAIT 0x00000001
#define DB_LOCK_RECORD 0x00000002
#define DB_LOCK_SET_TIMEOUT 0x00000004
#define DB_LOCK_SWITCH 0x00000008
#define DB_LOCK_UPGRADE 0x00000010
#define DB_LOG_AUTO_REMOVE 0x00000004
#define DB_LOG_CHKPNT 0x00000002
#define DB_LOG_COMMIT 0x00000004
#define DB_LOG_DIRECT 0x00000001
#define DB_LOG_DSYNC 0x00000002
#define DB_LOG_IN_MEMORY 0x00000008
#define DB_LOG_NOCOPY 0x00000008
#define DB_LOG_NOT_DURABLE 0x00000010
#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 0x00000002
#define DB_MPOOL_UNLINK 0x00000002
#define DB_MULTIPLE 0x00002000
#define DB_MULTIPLE_KEY 0x00000100
#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_NOLOCKING 0x00000200
#define DB_NOMMAP 0x00000010
#define DB_NOORDERCHK 0x00000002
#define DB_NOPANIC 0x00000400
#define DB_NO_AUTO_COMMIT 0x00002000
#define DB_ODDFILESIZE 0x00000040
#define DB_ORDERCHKONLY 0x00000004
#define DB_OVERWRITE 0x00001000
#define DB_PANIC_ENVIRONMENT 0x00002000
#define DB_PRINTABLE 0x00000008
#define DB_PRIVATE 0x00001000
#define DB_PR_PAGE 0x00000010
#define DB_PR_RECOVERYTEST 0x00000020
#define DB_RDONLY 0x00000080
#define DB_RDWRMASTER 0x00004000
#define DB_READ_COMMITTED 0x00000400
#define DB_READ_UNCOMMITTED 0x00000200
#define DB_RECNUM 0x00000020
#define DB_RECOVER 0x00000010
#define DB_RECOVER_FATAL 0x00002000
#define DB_REGION_INIT 0x00004000
#define DB_REGISTER 0x00004000
#define DB_RENUMBER 0x00000040
#define DB_REPMGR_CONF_2SITE_STRICT 0x00000001
#define DB_REPMGR_PEER 0x00000001
#define DB_REP_ANYWHERE 0x00000001
#define DB_REP_CLIENT 0x00000001
#define DB_REP_CONF_BULK 0x00000002
#define DB_REP_CONF_DELAYCLIENT 0x00000004
#define DB_REP_CONF_LEASE 0x00000008
#define DB_REP_CONF_NOAUTOINIT 0x00000010
#define DB_REP_CONF_NOWAIT 0x00000020
#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 0x00000080
#define DB_RMW 0x00000800
#define DB_RPCCLIENT 0x00000001
#define DB_SALVAGE 0x00000040
#define DB_SA_SKIPFIRSTKEY 0x00010000
#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 0x00000002
#define DB_SET_TXN_NOW 0x00000004
#define DB_SET_TXN_TIMEOUT 0x00000001
#define DB_SNAPSHOT 0x00000100
#define DB_STAT_ALL 0x00000002
#define DB_STAT_CLEAR 0x00000001
#define DB_STAT_LOCK_CONF 0x00000004
#define DB_STAT_LOCK_LOCKERS 0x00000008
#define DB_STAT_LOCK_OBJECTS 0x00000010
#define DB_STAT_LOCK_PARAMS 0x00000020
#define DB_STAT_MEMP_HASH 0x00000004
#define DB_STAT_MEMP_NOERROR 0x00000008
#define DB_STAT_SUBSYSTEM 0x00000004
#define DB_ST_DUPOK 0x00000100
#define DB_ST_DUPSET 0x00000200
#define DB_ST_DUPSORT 0x00000400
#define DB_ST_IS_RECNO 0x00000800
#define DB_ST_OVFL_LEAF 0x00001000
#define DB_ST_RECNUM 0x00002000
#define DB_ST_RELEN 0x00004000
#define DB_ST_TOPLEVEL 0x00008000
#define DB_SYSTEM_MEM 0x00008000
#define DB_THREAD 0x00000004
#define DB_TIME_NOTGRANTED 0x00008000
#define DB_TRUNCATE 0x00008000
#define DB_TXN_NOSYNC 0x00000001
#define DB_TXN_NOT_DURABLE 0x00000200
#define DB_TXN_NOWAIT 0x00000002
#define DB_TXN_SNAPSHOT 0x00000800
#define DB_TXN_SYNC 0x00000004
#define DB_TXN_WAIT 0x00000008
#define DB_TXN_WRITE_NOSYNC 0x00000020
#define DB_UNREF 0x00000080
#define DB_UPGRADE 0x00000001
#define DB_USE_ENVIRON 0x00000002
#define DB_USE_ENVIRON_ROOT 0x00000008
#define DB_VERB_DEADLOCK 0x00000001
#define DB_VERB_FILEOPS 0x00000002
#define DB_VERB_FILEOPS_ALL 0x00000004
#define DB_VERB_RECOVERY 0x00000008
#define DB_VERB_REGISTER 0x00000010
#define DB_VERB_REPLICATION 0x00000020
#define DB_VERB_REPMGR_CONNFAIL 0x00000040
#define DB_VERB_REPMGR_MISC 0x00000080
#define DB_VERB_REP_ELECT 0x00000100
#define DB_VERB_REP_LEASE 0x00000200
#define DB_VERB_REP_MISC 0x00000400
#define DB_VERB_REP_MSGS 0x00000800
#define DB_VERB_REP_SYNC 0x00001000
#define DB_VERB_WAITSFOR 0x00002000
#define DB_VERIFY 0x00000002
#define DB_WRITEOPEN 0x00010000
#define DB_XA_CREATE 0x00000800
#define DB_YIELDCPU 0x00010000

199
dbinc_auto/btree_auto.h Normal file
View File

@@ -0,0 +1,199 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __bam_AUTO_H
#define __bam_AUTO_H
#define DB___bam_split 62
typedef struct ___bam_split_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t left;
DB_LSN llsn;
db_pgno_t right;
DB_LSN rlsn;
u_int32_t indx;
db_pgno_t npgno;
DB_LSN nlsn;
db_pgno_t root_pgno;
DBT pg;
u_int32_t opflags;
} __bam_split_args;
#define DB___bam_rsplit 63
typedef struct ___bam_rsplit_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DBT pgdbt;
db_pgno_t root_pgno;
db_pgno_t nrec;
DBT rootent;
DB_LSN rootlsn;
} __bam_rsplit_args;
#define DB___bam_adj 55
typedef struct ___bam_adj_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
u_int32_t indx;
u_int32_t indx_copy;
u_int32_t is_insert;
} __bam_adj_args;
#define DB___bam_cadjust 56
typedef struct ___bam_cadjust_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
u_int32_t indx;
int32_t adjust;
u_int32_t opflags;
} __bam_cadjust_args;
#define DB___bam_cdel 57
typedef struct ___bam_cdel_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
u_int32_t indx;
} __bam_cdel_args;
#define DB___bam_repl 58
typedef struct ___bam_repl_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
u_int32_t indx;
u_int32_t isdeleted;
DBT orig;
DBT repl;
u_int32_t prefix;
u_int32_t suffix;
} __bam_repl_args;
#define DB___bam_root 59
typedef struct ___bam_root_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t meta_pgno;
db_pgno_t root_pgno;
DB_LSN meta_lsn;
} __bam_root_args;
#define DB___bam_curadj 64
typedef struct ___bam_curadj_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_ca_mode mode;
db_pgno_t from_pgno;
db_pgno_t to_pgno;
db_pgno_t left_pgno;
u_int32_t first_indx;
u_int32_t from_indx;
u_int32_t to_indx;
} __bam_curadj_args;
#define DB___bam_rcuradj 65
typedef struct ___bam_rcuradj_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
ca_recno_arg mode;
db_pgno_t root;
db_recno_t recno;
u_int32_t order;
} __bam_rcuradj_args;
#define DB___bam_relink_43 147
typedef struct ___bam_relink_43_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
db_pgno_t prev;
DB_LSN lsn_prev;
db_pgno_t next;
DB_LSN lsn_next;
} __bam_relink_43_args;
#define DB___bam_relink 147
typedef struct ___bam_relink_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
db_pgno_t new_pgno;
db_pgno_t prev;
DB_LSN lsn_prev;
db_pgno_t next;
DB_LSN lsn_next;
} __bam_relink_args;
#define DB___bam_merge_44 148
typedef struct ___bam_merge_44_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
db_pgno_t npgno;
DB_LSN nlsn;
DBT hdr;
DBT data;
DBT ind;
} __bam_merge_44_args;
#define DB___bam_merge 148
typedef struct ___bam_merge_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
db_pgno_t npgno;
DB_LSN nlsn;
DBT hdr;
DBT data;
int32_t pg_copy;
} __bam_merge_args;
#define DB___bam_pgno 149
typedef struct ___bam_pgno_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
u_int32_t indx;
db_pgno_t opgno;
db_pgno_t npgno;
} __bam_pgno_args;
#endif

153
dbinc_auto/btree_ext.h Normal file
View File

@@ -0,0 +1,153 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _btree_ext_h_
#define _btree_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __bam_compact __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, DBT *, DB_COMPACT *, u_int32_t, DBT *));
int __bam_cmp __P((DB *, DB_THREAD_INFO *, DB_TXN *, const DBT *, PAGE *, u_int32_t, int (*)(DB *, const DBT *, const DBT *), int *));
int __bam_defcmp __P((DB *, const DBT *, const DBT *));
size_t __bam_defpfx __P((DB *, const DBT *, const DBT *));
int __bam_pgin __P((DB *, db_pgno_t, void *, DBT *));
int __bam_pgout __P((DB *, db_pgno_t, void *, DBT *));
int __bam_mswap __P((ENV *, PAGE *));
int __bam_ca_delete __P((DB *, db_pgno_t, u_int32_t, int, int *));
int __ram_ca_delete __P((DB *, db_pgno_t, int *));
int __bam_ca_di __P((DBC *, db_pgno_t, u_int32_t, int));
int __bam_ca_dup __P((DBC *, u_int32_t, db_pgno_t, u_int32_t, db_pgno_t, u_int32_t));
int __bam_ca_undodup __P((DB *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t));
int __bam_ca_rsplit __P((DBC *, db_pgno_t, db_pgno_t));
int __bam_ca_split __P((DBC *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, int));
int __bam_ca_undosplit __P((DB *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t));
int __bamc_init __P((DBC *, DBTYPE));
int __bamc_refresh __P((DBC *));
int __bamc_count __P((DBC *, db_recno_t *));
int __bamc_dup __P((DBC *, DBC *));
int __bam_bulk_overflow __P((DBC *, u_int32_t, db_pgno_t, u_int8_t *));
int __bam_bulk_duplicates __P((DBC *, db_pgno_t, u_int8_t *, int32_t *, int32_t **, u_int8_t **, u_int32_t *, int));
int __bamc_rget __P((DBC *, DBT *));
int __bam_opd_exists __P((DBC *, db_pgno_t));
int __bam_ditem __P((DBC *, PAGE *, u_int32_t));
int __bam_adjindx __P((DBC *, PAGE *, u_int32_t, u_int32_t, int));
int __bam_dpages __P((DBC *, int, int));
int __bam_relink __P((DBC *, PAGE *, db_pgno_t));
int __bam_pupdate __P((DBC *, PAGE *));
int __bam_db_create __P((DB *));
int __bam_db_close __P((DB *));
void __bam_map_flags __P((DB *, u_int32_t *, u_int32_t *));
int __bam_set_flags __P((DB *, u_int32_t *flagsp));
int __bam_set_bt_compare __P((DB *, int (*)(DB *, const DBT *, const DBT *)));
int __bam_get_bt_minkey __P((DB *, u_int32_t *));
void __ram_map_flags __P((DB *, u_int32_t *, u_int32_t *));
int __ram_set_flags __P((DB *, u_int32_t *flagsp));
int __ram_get_re_len __P((DB *, u_int32_t *));
int __ram_get_re_pad __P((DB *, int *));
int __bam_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
int __bam_metachk __P((DB *, const char *, BTMETA *));
int __bam_read_root __P((DB *, DB_THREAD_INFO *, DB_TXN *, db_pgno_t, u_int32_t));
int __bam_new_file __P((DB *, DB_THREAD_INFO *, DB_TXN *, DB_FH *, const char *));
int __bam_new_subdb __P((DB *, DB *, DB_THREAD_INFO *, DB_TXN *));
int __bam_iitem __P((DBC *, DBT *, DBT *, u_int32_t, u_int32_t));
int __bam_ritem __P((DBC *, PAGE *, u_int32_t, DBT *));
int __bam_split_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rsplit_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_adj_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cadjust_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cdel_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_repl_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_root_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_curadj_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rcuradj_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_relink_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_merge_44_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_merge_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_pgno_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_relink_43_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_reclaim __P((DB *, DB_THREAD_INFO *, DB_TXN *));
int __bam_truncate __P((DBC *, u_int32_t *));
int __ram_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
int __ram_append __P((DBC *, DBT *, DBT *));
int __ramc_del __P((DBC *));
int __ramc_get __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
int __ramc_put __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
int __ram_ca __P((DBC *, ca_recno_arg, int *));
int __ram_getno __P((DBC *, const DBT *, db_recno_t *, int));
int __ram_writeback __P((DB *));
int __bam_rsearch __P((DBC *, db_recno_t *, u_int32_t, int, int *));
int __bam_adjust __P((DBC *, int32_t));
int __bam_nrecs __P((DBC *, db_recno_t *));
db_recno_t __bam_total __P((DB *, PAGE *));
int __bam_get_root __P((DBC *, db_pgno_t, int, u_int32_t, int *));
int __bam_search __P((DBC *, db_pgno_t, const DBT *, u_int32_t, int, db_recno_t *, int *));
int __bam_stkrel __P((DBC *, u_int32_t));
int __bam_stkgrow __P((ENV *, BTREE_CURSOR *));
int __bam_split __P((DBC *, void *, db_pgno_t *));
int __bam_pinsert __P((DBC *, EPG *, u_int32_t, PAGE *, PAGE *, int));
int __bam_copy __P((DB *, PAGE *, PAGE *, u_int32_t, u_int32_t));
int __bam_stat __P((DBC *, void *, u_int32_t));
int __bam_stat_print __P((DBC *, u_int32_t));
int __bam_stat_callback __P((DBC *, PAGE *, void *, int *));
void __bam_print_cursor __P((DBC *));
int __bam_key_range __P((DBC *, DBT *, DB_KEY_RANGE *, u_int32_t));
int __bam_traverse __P((DBC *, db_lockmode_t, db_pgno_t, int (*)(DBC *, PAGE *, void *, int *), void *));
int __bam_30_btreemeta __P((DB *, char *, u_int8_t *));
int __bam_31_btreemeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __bam_31_lbtree __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __bam_vrfy_meta __P((DB *, VRFY_DBINFO *, BTMETA *, db_pgno_t, u_int32_t));
int __ram_vrfy_leaf __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __bam_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __bam_vrfy_itemorder __P((DB *, VRFY_DBINFO *, DB_THREAD_INFO *, PAGE *, db_pgno_t, u_int32_t, int, int, u_int32_t));
int __bam_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
int __bam_vrfy_subtree __P((DB *, VRFY_DBINFO *, db_pgno_t, void *, void *, u_int32_t, u_int32_t *, u_int32_t *, u_int32_t *));
int __bam_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t, PAGE *, void *, int (*)(void *, const void *), DBT *, u_int32_t));
int __bam_salvage_walkdupint __P((DB *, VRFY_DBINFO *, PAGE *, DBT *, void *, int (*)(void *, const void *), u_int32_t));
int __bam_meta2pgset __P((DB *, VRFY_DBINFO *, BTMETA *, u_int32_t, DB *));
int __bam_split_read __P((ENV *, DB **, void *, void *, __bam_split_args **));
int __bam_split_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, u_int32_t));
int __bam_rsplit_read __P((ENV *, DB **, void *, void *, __bam_rsplit_args **));
int __bam_rsplit_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *));
int __bam_adj_read __P((ENV *, DB **, void *, void *, __bam_adj_args **));
int __bam_adj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
int __bam_cadjust_read __P((ENV *, DB **, void *, void *, __bam_cadjust_args **));
int __bam_cadjust_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, int32_t, u_int32_t));
int __bam_cdel_read __P((ENV *, DB **, void *, void *, __bam_cdel_args **));
int __bam_cdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t));
int __bam_repl_read __P((ENV *, DB **, void *, void *, __bam_repl_args **));
int __bam_repl_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, u_int32_t, u_int32_t));
int __bam_root_read __P((ENV *, DB **, void *, void *, __bam_root_args **));
int __bam_root_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, DB_LSN *));
int __bam_curadj_read __P((ENV *, DB **, void *, void *, __bam_curadj_args **));
int __bam_curadj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_ca_mode, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, u_int32_t, u_int32_t));
int __bam_rcuradj_read __P((ENV *, DB **, void *, void *, __bam_rcuradj_args **));
int __bam_rcuradj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, ca_recno_arg, db_pgno_t, db_recno_t, u_int32_t));
int __bam_relink_43_read __P((ENV *, DB **, void *, void *, __bam_relink_43_args **));
int __bam_relink_read __P((ENV *, DB **, void *, void *, __bam_relink_args **));
int __bam_relink_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
int __bam_merge_44_read __P((ENV *, DB **, void *, void *, __bam_merge_44_args **));
int __bam_merge_read __P((ENV *, DB **, void *, void *, __bam_merge_args **));
int __bam_merge_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, const DBT *, const DBT *, int32_t));
int __bam_pgno_read __P((ENV *, DB **, void *, void *, __bam_pgno_args **));
int __bam_pgno_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t));
int __bam_init_recover __P((ENV *, DB_DISTAB *));
int __bam_split_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rsplit_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_adj_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cadjust_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cdel_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_repl_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_root_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_curadj_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rcuradj_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_relink_43_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_relink_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_merge_44_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_merge_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_pgno_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_init_print __P((ENV *, DB_DISTAB *));
#if defined(__cplusplus)
}
#endif
#endif /* !_btree_ext_h_ */

110
dbinc_auto/clib_ext.h Normal file
View File

@@ -0,0 +1,110 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _clib_ext_h_
#define _clib_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
#ifndef HAVE_ATOI
int atoi __P((const char *));
#endif
#ifndef HAVE_ATOL
long atol __P((const char *));
#endif
#ifndef HAVE_GETCWD
char *getcwd __P((char *, size_t));
#endif
#ifndef HAVE_GETOPT
int getopt __P((int, char * const *, const char *));
#endif
#ifndef HAVE_ISALPHA
int isalpha __P((int));
#endif
#ifndef HAVE_ISDIGIT
int isdigit __P((int));
#endif
#ifndef HAVE_ISPRINT
int isprint __P((int));
#endif
#ifndef HAVE_ISSPACE
int isspace __P((int));
#endif
#ifndef HAVE_MEMCMP
int memcmp __P((const void *, const void *, size_t));
#endif
#ifndef HAVE_MEMCPY
void *memcpy __P((void *, const void *, size_t));
#endif
#ifndef HAVE_MEMMOVE
void *memmove __P((void *, const void *, size_t));
#endif
#ifndef HAVE_PRINTF
int printf __P((const char *, ...));
#endif
#ifndef HAVE_PRINTF
int fprintf __P((FILE *, const char *, ...));
#endif
#ifndef HAVE_PRINTF
int vfprintf __P((FILE *, const char *, va_list));
#endif
#ifndef HAVE_QSORT
void qsort __P((void *, size_t, size_t, int(*)(const void *, const void *)));
#endif
#ifndef HAVE_RAISE
int raise __P((int));
#endif
#ifndef HAVE_RAND
int rand __P((void));
void srand __P((unsigned int));
#endif
#ifndef HAVE_SNPRINTF
int snprintf __P((char *, size_t, const char *, ...));
#endif
#ifndef HAVE_VSNPRINTF
int vsnprintf __P((char *, size_t, const char *, va_list));
#endif
#ifndef HAVE_STRCASECMP
int strcasecmp __P((const char *, const char *));
#endif
#ifndef HAVE_STRCASECMP
int strncasecmp __P((const char *, const char *, size_t));
#endif
#ifndef HAVE_STRCAT
char *strcat __P((char *, const char *));
#endif
#ifndef HAVE_STRCHR
char *strchr __P((const char *, int));
#endif
#ifndef HAVE_STRDUP
char *strdup __P((const char *));
#endif
#ifndef HAVE_STRERROR
char *strerror __P((int));
#endif
#ifndef HAVE_STRNCAT
char *strncat __P((char *, const char *, size_t));
#endif
#ifndef HAVE_STRNCMP
int strncmp __P((const char *, const char *, size_t));
#endif
#ifndef HAVE_STRRCHR
char *strrchr __P((const char *, int));
#endif
#ifndef HAVE_STRSEP
char *strsep __P((char **, const char *));
#endif
#ifndef HAVE_STRTOL
long strtol __P((const char *, char **, int));
#endif
#ifndef HAVE_STRTOUL
unsigned long strtoul __P((const char *, char **, int));
#endif
#ifndef HAVE_TIME
time_t time __P((time_t *));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_clib_ext_h_ */

67
dbinc_auto/common_ext.h Normal file
View File

@@ -0,0 +1,67 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _common_ext_h_
#define _common_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __crypto_region_init __P((ENV *));
int __db_isbigendian __P((void));
int __db_byteorder __P((ENV *, int));
int __db_fchk __P((ENV *, const char *, u_int32_t, u_int32_t));
int __db_fcchk __P((ENV *, const char *, u_int32_t, u_int32_t, u_int32_t));
int __db_ferr __P((const ENV *, const char *, int));
int __db_fnl __P((const ENV *, const char *));
int __db_pgerr __P((DB *, db_pgno_t, int));
int __db_pgfmt __P((ENV *, db_pgno_t));
#ifdef DIAGNOSTIC
void __db_assert __P((ENV *, const char *, const char *, int));
#endif
int __env_panic_msg __P((ENV *));
int __env_panic __P((ENV *, int));
char *__db_unknown_error __P((int));
void __db_syserr __P((const ENV *, int, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
void __db_err __P((const ENV *, int, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
void __db_errx __P((const ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
void __db_errcall __P((const DB_ENV *, int, db_error_set_t, const char *, va_list));
void __db_errfile __P((const DB_ENV *, int, db_error_set_t, const char *, va_list));
void __db_msgadd __P((ENV *, DB_MSGBUF *, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
void __db_msgadd_ap __P((ENV *, DB_MSGBUF *, const char *, va_list));
void __db_msg __P((const ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
int __db_unknown_flag __P((ENV *, char *, u_int32_t));
int __db_unknown_type __P((ENV *, char *, DBTYPE));
int __db_unknown_path __P((ENV *, char *));
int __db_check_txn __P((DB *, DB_TXN *, DB_LOCKER *, int));
int __db_txn_deadlock_err __P((ENV *, DB_TXN *));
int __db_not_txn_env __P((ENV *));
int __db_rec_toobig __P((ENV *, u_int32_t, u_int32_t));
int __db_rec_repl __P((ENV *, u_int32_t, u_int32_t));
int __dbc_logging __P((DBC *));
int __db_check_lsn __P((ENV *, DB_LSN *, DB_LSN *));
int __db_rdonly __P((const ENV *, const char *));
int __db_space_err __P((const DB *));
int __db_failed __P((const ENV *, const char *, pid_t, db_threadid_t));
int __db_getlong __P((DB_ENV *, const char *, char *, long, long, long *));
int __db_getulong __P((DB_ENV *, const char *, char *, u_long, u_long, u_long *));
void __db_idspace __P((u_int32_t *, int, u_int32_t *, u_int32_t *));
u_int32_t __db_log2 __P((u_int32_t));
u_int32_t __db_tablesize __P((u_int32_t));
void __db_hashinit __P((void *, u_int32_t));
int __dbt_usercopy __P((ENV *, DBT *));
void __dbt_userfree __P((ENV *, DBT *, DBT *, DBT *));
int __db_mkpath __P((ENV *, const char *));
u_int32_t __db_openflags __P((int));
int __db_util_arg __P((char *, char *, int *, char ***));
int __db_util_cache __P((DB *, u_int32_t *, int *));
int __db_util_logset __P((const char *, char *));
void __db_util_siginit __P((void));
int __db_util_interrupted __P((void));
void __db_util_sigresend __P((void));
int __db_zero_fill __P((ENV *, DB_FH *));
int __db_zero_extend __P((ENV *, DB_FH *, db_pgno_t, db_pgno_t, u_int32_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_common_ext_h_ */

46
dbinc_auto/crdel_auto.h Normal file
View File

@@ -0,0 +1,46 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __crdel_AUTO_H
#define __crdel_AUTO_H
#define DB___crdel_metasub 142
typedef struct ___crdel_metasub_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DBT page;
DB_LSN lsn;
} __crdel_metasub_args;
#define DB___crdel_inmem_create 138
typedef struct ___crdel_inmem_create_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DBT name;
DBT fid;
u_int32_t pgsize;
} __crdel_inmem_create_args;
#define DB___crdel_inmem_rename 139
typedef struct ___crdel_inmem_rename_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT oldname;
DBT newname;
DBT fid;
} __crdel_inmem_rename_args;
#define DB___crdel_inmem_remove 140
typedef struct ___crdel_inmem_remove_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT name;
DBT fid;
} __crdel_inmem_remove_args;
#endif

38
dbinc_auto/crypto_ext.h Normal file
View File

@@ -0,0 +1,38 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _crypto_ext_h_
#define _crypto_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __aes_setup __P((ENV *, DB_CIPHER *));
u_int __aes_adj_size __P((size_t));
int __aes_close __P((ENV *, void *));
int __aes_decrypt __P((ENV *, void *, void *, u_int8_t *, size_t));
int __aes_encrypt __P((ENV *, void *, void *, u_int8_t *, size_t));
int __aes_init __P((ENV *, DB_CIPHER *));
int __crypto_env_close __P((ENV *));
int __crypto_env_refresh __P((ENV *));
int __crypto_algsetup __P((ENV *, DB_CIPHER *, u_int32_t, int));
int __crypto_decrypt_meta __P((ENV *, DB *, u_int8_t *, int));
int __crypto_set_passwd __P((ENV *, ENV *));
int __db_generate_iv __P((ENV *, u_int32_t *));
int __db_rijndaelKeySetupEnc __P((u32 *, const u8 *, int));
int __db_rijndaelKeySetupDec __P((u32 *, const u8 *, int));
void __db_rijndaelEncrypt __P((u32 *, int, const u8 *, u8 *));
void __db_rijndaelDecrypt __P((u32 *, int, const u8 *, u8 *));
void __db_rijndaelEncryptRound __P((const u32 *, int, u8 *, int));
void __db_rijndaelDecryptRound __P((const u32 *, int, u8 *, int));
int __db_makeKey __P((keyInstance *, int, int, char *));
int __db_cipherInit __P((cipherInstance *, int, char *));
int __db_blockEncrypt __P((cipherInstance *, keyInstance *, u_int8_t *, size_t, u_int8_t *));
int __db_padEncrypt __P((cipherInstance *, keyInstance *, u_int8_t *, int, u_int8_t *));
int __db_blockDecrypt __P((cipherInstance *, keyInstance *, u_int8_t *, size_t, u_int8_t *));
int __db_padDecrypt __P((cipherInstance *, keyInstance *, u_int8_t *, int, u_int8_t *));
int __db_cipherUpdateRounds __P((cipherInstance *, keyInstance *, u_int8_t *, int, u_int8_t *, int));
#if defined(__cplusplus)
}
#endif
#endif /* !_crypto_ext_h_ */

201
dbinc_auto/db_auto.h Normal file
View File

@@ -0,0 +1,201 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __db_AUTO_H
#define __db_AUTO_H
#define DB___db_addrem 41
typedef struct ___db_addrem_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_pgno_t pgno;
u_int32_t indx;
u_int32_t nbytes;
DBT hdr;
DBT dbt;
DB_LSN pagelsn;
} __db_addrem_args;
#define DB___db_big 43
typedef struct ___db_big_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_pgno_t pgno;
db_pgno_t prev_pgno;
db_pgno_t next_pgno;
DBT dbt;
DB_LSN pagelsn;
DB_LSN prevlsn;
DB_LSN nextlsn;
} __db_big_args;
#define DB___db_ovref 44
typedef struct ___db_ovref_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
int32_t adjust;
DB_LSN lsn;
} __db_ovref_args;
#define DB___db_relink_42 45
typedef struct ___db_relink_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_pgno_t pgno;
DB_LSN lsn;
db_pgno_t prev;
DB_LSN lsn_prev;
db_pgno_t next;
DB_LSN lsn_next;
} __db_relink_42_args;
#define DB___db_debug 47
typedef struct ___db_debug_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT op;
int32_t fileid;
DBT key;
DBT data;
u_int32_t arg_flags;
} __db_debug_args;
#define DB___db_noop 48
typedef struct ___db_noop_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN prevlsn;
} __db_noop_args;
#define DB___db_pg_alloc_42 49
typedef struct ___db_pg_alloc_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DB_LSN page_lsn;
db_pgno_t pgno;
u_int32_t ptype;
db_pgno_t next;
} __db_pg_alloc_42_args;
#define DB___db_pg_alloc 49
typedef struct ___db_pg_alloc_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DB_LSN page_lsn;
db_pgno_t pgno;
u_int32_t ptype;
db_pgno_t next;
db_pgno_t last_pgno;
} __db_pg_alloc_args;
#define DB___db_pg_free_42 50
typedef struct ___db_pg_free_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DBT header;
db_pgno_t next;
} __db_pg_free_42_args;
#define DB___db_pg_free 50
typedef struct ___db_pg_free_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DBT header;
db_pgno_t next;
db_pgno_t last_pgno;
} __db_pg_free_args;
#define DB___db_cksum 51
typedef struct ___db_cksum_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
} __db_cksum_args;
#define DB___db_pg_freedata_42 52
typedef struct ___db_pg_freedata_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DBT header;
db_pgno_t next;
DBT data;
} __db_pg_freedata_42_args;
#define DB___db_pg_freedata 52
typedef struct ___db_pg_freedata_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN meta_lsn;
db_pgno_t meta_pgno;
DBT header;
db_pgno_t next;
db_pgno_t last_pgno;
DBT data;
} __db_pg_freedata_args;
#define DB___db_pg_init 60
typedef struct ___db_pg_init_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DBT header;
DBT data;
} __db_pg_init_args;
#define DB___db_pg_sort 61
typedef struct ___db_pg_sort_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t meta;
DB_LSN meta_lsn;
db_pgno_t last_free;
DB_LSN last_lsn;
db_pgno_t last_pgno;
DBT list;
} __db_pg_sort_args;
#endif

290
dbinc_auto/db_ext.h Normal file
View File

@@ -0,0 +1,290 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _db_ext_h_
#define _db_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __crdel_metasub_read __P((ENV *, DB **, void *, void *, __crdel_metasub_args **));
int __crdel_metasub_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, DB_LSN *));
int __crdel_inmem_create_read __P((ENV *, void *, __crdel_inmem_create_args **));
int __crdel_inmem_create_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, int32_t, const DBT *, const DBT *, u_int32_t));
int __crdel_inmem_rename_read __P((ENV *, void *, __crdel_inmem_rename_args **));
int __crdel_inmem_rename_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *));
int __crdel_inmem_remove_read __P((ENV *, void *, __crdel_inmem_remove_args **));
int __crdel_inmem_remove_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *));
int __crdel_init_recover __P((ENV *, DB_DISTAB *));
int __crdel_metasub_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_create_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_rename_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_remove_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_init_print __P((ENV *, DB_DISTAB *));
int __crdel_metasub_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_create_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_rename_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __crdel_inmem_remove_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_master_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, u_int32_t, int, DB **));
int __db_master_update __P((DB *, DB *, DB_THREAD_INFO *, DB_TXN *, const char *, DBTYPE, mu_action, const char *, u_int32_t));
int __env_setup __P((DB *, DB_TXN *, const char *, const char *, u_int32_t, u_int32_t));
int __env_mpool __P((DB *, const char *, u_int32_t));
int __db_close __P((DB *, DB_TXN *, u_int32_t));
int __db_refresh __P((DB *, DB_TXN *, u_int32_t, int *, int));
int __db_log_page __P((DB *, DB_TXN *, DB_LSN *, db_pgno_t, PAGE *));
int __db_backup_name __P((ENV *, const char *, DB_TXN *, char **));
#ifdef CONFIG_TEST
int __db_testcopy __P((ENV *, DB *, const char *));
#endif
int __db_cursor_int __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBTYPE, db_pgno_t, int, DB_LOCKER *, DBC **));
int __db_put __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __db_del __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, u_int32_t));
int __db_sync __P((DB *));
int __db_associate __P((DB *, DB_THREAD_INFO *, DB_TXN *, DB *, int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
int __db_secondary_close __P((DB *, u_int32_t));
int __db_associate_foreign __P((DB *, DB *, int (*)(DB *, const DBT *, DBT *, const DBT *, int *), u_int32_t));
int __db_addrem_read __P((ENV *, DB **, void *, void *, __db_addrem_args **));
int __db_addrem_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, u_int32_t, u_int32_t, const DBT *, const DBT *, DB_LSN *));
int __db_big_read __P((ENV *, DB **, void *, void *, __db_big_args **));
int __db_big_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *, DB_LSN *, DB_LSN *));
int __db_ovref_read __P((ENV *, DB **, void *, void *, __db_ovref_args **));
int __db_ovref_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, int32_t, DB_LSN *));
int __db_relink_42_read __P((ENV *, DB **, void *, void *, __db_relink_42_args **));
int __db_debug_read __P((ENV *, void *, __db_debug_args **));
int __db_debug_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, int32_t, const DBT *, const DBT *, u_int32_t));
int __db_noop_read __P((ENV *, DB **, void *, void *, __db_noop_args **));
int __db_noop_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *));
int __db_pg_alloc_42_read __P((ENV *, DB **, void *, void *, __db_pg_alloc_42_args **));
int __db_pg_alloc_read __P((ENV *, DB **, void *, void *, __db_pg_alloc_args **));
int __db_pg_alloc_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, u_int32_t, db_pgno_t, db_pgno_t));
int __db_pg_free_42_read __P((ENV *, DB **, void *, void *, __db_pg_free_42_args **));
int __db_pg_free_read __P((ENV *, DB **, void *, void *, __db_pg_free_args **));
int __db_pg_free_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t));
int __db_cksum_read __P((ENV *, void *, __db_cksum_args **));
int __db_cksum_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t));
int __db_pg_freedata_42_read __P((ENV *, DB **, void *, void *, __db_pg_freedata_42_args **));
int __db_pg_freedata_read __P((ENV *, DB **, void *, void *, __db_pg_freedata_args **));
int __db_pg_freedata_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t, const DBT *));
int __db_pg_init_read __P((ENV *, DB **, void *, void *, __db_pg_init_args **));
int __db_pg_init_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, const DBT *));
int __db_pg_sort_read __P((ENV *, DB **, void *, void *, __db_pg_sort_args **));
int __db_pg_sort_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *));
int __db_init_recover __P((ENV *, DB_DISTAB *));
int __db_addrem_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_big_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_ovref_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_relink_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_debug_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_noop_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_alloc_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_alloc_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_free_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_free_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_cksum_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_freedata_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_freedata_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_init_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_sort_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_init_print __P((ENV *, DB_DISTAB *));
int __dbc_close __P((DBC *));
int __dbc_destroy __P((DBC *));
int __dbc_count __P((DBC *, db_recno_t *));
int __dbc_del __P((DBC *, u_int32_t));
int __dbc_dup __P((DBC *, DBC **, u_int32_t));
int __dbc_idup __P((DBC *, DBC **, u_int32_t));
int __dbc_newopd __P((DBC *, db_pgno_t, DBC *, DBC **));
int __dbc_get __P((DBC *, DBT *, DBT *, u_int32_t));
int __dbc_put __P((DBC *, DBT *, DBT *, u_int32_t));
int __db_duperr __P((DB *, u_int32_t));
int __dbc_secondary_get_pp __P((DBC *, DBT *, DBT *, u_int32_t));
int __dbc_pget __P((DBC *, DBT *, DBT *, DBT *, u_int32_t));
int __dbc_del_primary __P((DBC *));
int __db_s_first __P((DB *, DB **));
int __db_s_next __P((DB **, DB_TXN *));
int __db_s_done __P((DB *, DB_TXN *));
u_int32_t __db_partsize __P((u_int32_t, DBT *));
#ifdef DIAGNOSTIC
void __db_check_skeyset __P((DB *, DBT *));
#endif
int __cdsgroup_begin __P((DB_ENV *, DB_TXN **));
int __db_pgin __P((DB_ENV *, db_pgno_t, void *, DBT *));
int __db_pgout __P((DB_ENV *, db_pgno_t, void *, DBT *));
int __db_decrypt_pg __P((ENV *, DB *, PAGE *));
int __db_encrypt_and_checksum_pg __P((ENV *, DB *, PAGE *));
void __db_metaswap __P((PAGE *));
int __db_byteswap __P((DB *, db_pgno_t, PAGE *, size_t, int));
int __db_pageswap __P((DB *, void *, size_t, DBT *, int));
int __db_dispatch __P((ENV *, DB_DISTAB *, DBT *, DB_LSN *, db_recops, DB_TXNHEAD *));
int __db_add_recovery __P((DB_ENV *, DB_DISTAB *, int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops), u_int32_t));
int __db_add_recovery_int __P((ENV *, DB_DISTAB *, int (*)(ENV *, DBT *, DB_LSN *, db_recops, void *), u_int32_t));
int __db_txnlist_init __P((ENV *, DB_THREAD_INFO *, u_int32_t, u_int32_t, DB_LSN *, DB_TXNHEAD **));
int __db_txnlist_add __P((ENV *, DB_TXNHEAD *, u_int32_t, u_int32_t, DB_LSN *));
int __db_txnlist_remove __P((ENV *, DB_TXNHEAD *, u_int32_t));
void __db_txnlist_ckp __P((ENV *, DB_TXNHEAD *, DB_LSN *));
void __db_txnlist_end __P((ENV *, DB_TXNHEAD *));
int __db_txnlist_find __P((ENV *, DB_TXNHEAD *, u_int32_t, u_int32_t *));
int __db_txnlist_update __P((ENV *, DB_TXNHEAD *, u_int32_t, u_int32_t, DB_LSN *, u_int32_t *, int));
int __db_txnlist_gen __P((ENV *, DB_TXNHEAD *, int, u_int32_t, u_int32_t));
int __db_txnlist_lsnadd __P((ENV *, DB_TXNHEAD *, DB_LSN *));
int __db_txnlist_lsnget __P((ENV *, DB_TXNHEAD *, DB_LSN *, u_int32_t));
int __db_txnlist_lsninit __P((ENV *, DB_TXNHEAD *, DB_LSN *));
void __db_txnlist_print __P((DB_TXNHEAD *));
int __db_ditem __P((DBC *, PAGE *, u_int32_t, u_int32_t));
int __db_pitem __P((DBC *, PAGE *, u_int32_t, u_int32_t, DBT *, DBT *));
int __db_associate_pp __P((DB *, DB_TXN *, DB *, int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
int __db_close_pp __P((DB *, u_int32_t));
int __db_cursor_pp __P((DB *, DB_TXN *, DBC **, u_int32_t));
int __db_cursor __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBC **, u_int32_t));
int __db_del_pp __P((DB *, DB_TXN *, DBT *, u_int32_t));
int __db_exists __P((DB *, DB_TXN *, DBT *, u_int32_t));
int __db_fd_pp __P((DB *, int *));
int __db_get_pp __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __db_get __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __db_join_pp __P((DB *, DBC **, DBC **, u_int32_t));
int __db_key_range_pp __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t));
int __db_open_pp __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int));
int __db_pget_pp __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t));
int __db_pget __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t));
int __db_put_pp __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __db_compact_pp __P((DB *, DB_TXN *, DBT *, DBT *, DB_COMPACT *, u_int32_t, DBT *));
int __db_associate_foreign_pp __P((DB *, DB *, int (*)(DB *, const DBT *, DBT *, const DBT *, int *), u_int32_t));
int __db_sync_pp __P((DB *, u_int32_t));
int __dbc_close_pp __P((DBC *));
int __dbc_count_pp __P((DBC *, db_recno_t *, u_int32_t));
int __dbc_del_pp __P((DBC *, u_int32_t));
int __dbc_dup_pp __P((DBC *, DBC **, u_int32_t));
int __dbc_get_pp __P((DBC *, DBT *, DBT *, u_int32_t));
int __db_secondary_close_pp __P((DB *, u_int32_t));
int __dbc_pget_pp __P((DBC *, DBT *, DBT *, DBT *, u_int32_t));
int __dbc_put_pp __P((DBC *, DBT *, DBT *, u_int32_t));
int __db_txn_auto_init __P((ENV *, DB_THREAD_INFO *, DB_TXN **));
int __db_txn_auto_resolve __P((ENV *, DB_TXN *, int, int));
int __db_join __P((DB *, DBC **, DBC **, u_int32_t));
int __db_join_close __P((DBC *));
int __db_secondary_corrupt __P((DB *));
int __db_new __P((DBC *, u_int32_t, PAGE **));
int __db_free __P((DBC *, PAGE *));
#ifdef HAVE_FTRUNCATE
void __db_freelist_pos __P((db_pgno_t, db_pgno_t *, u_int32_t, u_int32_t *));
#endif
#ifdef HAVE_FTRUNCATE
int __db_pg_truncate __P((DBC *, DB_TXN *, db_pglist_t *list, DB_COMPACT *, u_int32_t *, db_pgno_t *, DB_LSN *, int));
#endif
#ifdef HAVE_FTRUNCATE
int __db_free_truncate __P((DB *, DB_THREAD_INFO *, DB_TXN *, u_int32_t, DB_COMPACT *, db_pglist_t **, u_int32_t *, db_pgno_t *));
#endif
int __db_lprint __P((DBC *));
int __db_lget __P((DBC *, int, db_pgno_t, db_lockmode_t, u_int32_t, DB_LOCK *));
int __db_lput __P((DBC *, DB_LOCK *));
int __db_create_internal __P((DB **, ENV *, u_int32_t));
int __dbh_am_chk __P((DB *, u_int32_t));
int __db_get_flags __P((DB *, u_int32_t *));
int __db_set_flags __P((DB *, u_int32_t));
int __db_get_lorder __P((DB *, int *));
int __db_set_lorder __P((DB *, int));
int __db_set_pagesize __P((DB *, u_int32_t));
int __db_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int, db_pgno_t));
int __db_get_open_flags __P((DB *, u_int32_t *));
int __db_new_file __P((DB *, DB_THREAD_INFO *, DB_TXN *, DB_FH *, const char *));
int __db_init_subdb __P((DB *, DB *, const char *, DB_THREAD_INFO *, DB_TXN *));
int __db_chk_meta __P((ENV *, DB *, DBMETA *, u_int32_t));
int __db_meta_setup __P((ENV *, DB *, const char *, DBMETA *, u_int32_t, u_int32_t));
int __db_goff __P((DB *, DB_THREAD_INFO *, DB_TXN *, DBT *, u_int32_t, db_pgno_t, void **, u_int32_t *));
int __db_poff __P((DBC *, const DBT *, db_pgno_t *));
int __db_ovref __P((DBC *, db_pgno_t));
int __db_doff __P((DBC *, db_pgno_t));
int __db_moff __P((DB *, DB_THREAD_INFO *, DB_TXN *, const DBT *, db_pgno_t, u_int32_t, int (*)(DB *, const DBT *, const DBT *), int *));
int __db_coff __P((DB *, DB_THREAD_INFO *, DB_TXN *, const DBT *, const DBT *, int (*)(DB *, const DBT *, const DBT *), int *));
int __db_vrfy_overflow __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __db_vrfy_ovfl_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t, u_int32_t));
int __db_safe_goff __P((DB *, VRFY_DBINFO *, db_pgno_t,DBT *, void *, u_int32_t));
void __db_loadme __P((void));
int __db_dumptree __P((DB *, DB_TXN *, char *, char *));
const FN * __db_get_flags_fn __P((void));
int __db_prnpage __P((DB *, DB_TXN *, db_pgno_t));
int __db_prpage __P((DB *, PAGE *, u_int32_t));
void __db_prbytes __P((ENV *, DB_MSGBUF *, u_int8_t *, u_int32_t));
void __db_prflags __P((ENV *, DB_MSGBUF *, u_int32_t, const FN *, const char *, const char *));
const char * __db_lockmode_to_string __P((db_lockmode_t));
int __db_dumptree __P((DB *, DB_TXN *, char *, char *));
const FN * __db_get_flags_fn __P((void));
int __db_dump_pp __P((DB *, const char *, int (*)(void *, const void *), void *, int, int));
int __db_dump __P((DB *, const char *, int (*)(void *, const void *), void *, int, int));
int __db_prdbt __P((DBT *, int, const char *, void *, int (*)(void *, const void *), int));
int __db_prheader __P((DB *, const char *, int, int, void *, int (*)(void *, const void *), VRFY_DBINFO *, db_pgno_t));
int __db_prfooter __P((void *, int (*)(void *, const void *)));
int __db_pr_callback __P((void *, const void *));
const char * __db_dbtype_to_string __P((DBTYPE));
int __db_addrem_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_big_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_ovref_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_debug_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_noop_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_alloc_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_free_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_freedata_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_cksum_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_init_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_sort_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_alloc_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_free_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_pg_freedata_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_relink_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __db_traverse_big __P((DBC *, db_pgno_t, int (*)(DBC *, PAGE *, void *, int *), void *));
int __db_reclaim_callback __P((DBC *, PAGE *, void *, int *));
int __db_truncate_callback __P((DBC *, PAGE *, void *, int *));
int __env_dbremove_pp __P((DB_ENV *, DB_TXN *, const char *, const char *, u_int32_t));
int __db_remove_pp __P((DB *, const char *, const char *, u_int32_t));
int __db_remove __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, const char *, u_int32_t));
int __db_remove_int __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, const char *, u_int32_t));
int __db_inmem_remove __P((DB *, DB_TXN *, const char *));
int __env_dbrename_pp __P((DB_ENV *, DB_TXN *, const char *, const char *, const char *, u_int32_t));
int __db_rename_pp __P((DB *, const char *, const char *, const char *, u_int32_t));
int __db_rename_int __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, const char *, const char *));
int __db_ret __P((DB *, DB_THREAD_INFO *, DB_TXN *, PAGE *, u_int32_t, DBT *, void **, u_int32_t *));
int __db_retcopy __P((ENV *, DBT *, void *, u_int32_t, void **, u_int32_t *));
int __env_fileid_reset_pp __P((DB_ENV *, const char *, u_int32_t));
int __env_lsn_reset_pp __P((DB_ENV *, const char *, u_int32_t));
int __db_stat_pp __P((DB *, DB_TXN *, void *, u_int32_t));
int __db_stat_print_pp __P((DB *, u_int32_t));
int __db_stat_print __P((DB *, DB_THREAD_INFO *, u_int32_t));
int __db_truncate_pp __P((DB *, DB_TXN *, u_int32_t *, u_int32_t));
int __db_truncate __P((DB *, DB_THREAD_INFO *, DB_TXN *, u_int32_t *));
int __db_upgrade_pp __P((DB *, const char *, u_int32_t));
int __db_upgrade __P((DB *, const char *, u_int32_t));
int __db_lastpgno __P((DB *, char *, DB_FH *, db_pgno_t *));
int __db_31_offdup __P((DB *, char *, DB_FH *, int, db_pgno_t *));
int __db_verify_pp __P((DB *, const char *, const char *, FILE *, u_int32_t));
int __db_verify_internal __P((DB *, const char *, const char *, void *, int (*)(void *, const void *), u_int32_t));
int __db_vrfy_common __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __db_vrfy_datapage __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __db_vrfy_meta __P((DB *, VRFY_DBINFO *, DBMETA *, db_pgno_t, u_int32_t));
void __db_vrfy_struct_feedback __P((DB *, VRFY_DBINFO *));
int __db_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, PAGE *, void *, int (*)(void *, const void *), u_int32_t));
int __db_vrfy_inpitem __P((DB *, PAGE *, db_pgno_t, u_int32_t, int, u_int32_t, u_int32_t *, u_int32_t *));
int __db_vrfy_duptype __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
int __db_salvage_duptree __P((DB *, VRFY_DBINFO *, db_pgno_t, DBT *, void *, int (*)(void *, const void *), u_int32_t));
int __db_vrfy_dbinfo_create __P((ENV *, DB_THREAD_INFO *, u_int32_t, VRFY_DBINFO **));
int __db_vrfy_dbinfo_destroy __P((ENV *, VRFY_DBINFO *));
int __db_vrfy_getpageinfo __P((VRFY_DBINFO *, db_pgno_t, VRFY_PAGEINFO **));
int __db_vrfy_putpageinfo __P((ENV *, VRFY_DBINFO *, VRFY_PAGEINFO *));
int __db_vrfy_pgset __P((ENV *, DB_THREAD_INFO *, u_int32_t, DB **));
int __db_vrfy_pgset_get __P((DB *, DB_THREAD_INFO *, db_pgno_t, int *));
int __db_vrfy_pgset_inc __P((DB *, DB_THREAD_INFO *, db_pgno_t));
int __db_vrfy_pgset_next __P((DBC *, db_pgno_t *));
int __db_vrfy_childcursor __P((VRFY_DBINFO *, DBC **));
int __db_vrfy_childput __P((VRFY_DBINFO *, db_pgno_t, VRFY_CHILDINFO *));
int __db_vrfy_ccset __P((DBC *, db_pgno_t, VRFY_CHILDINFO **));
int __db_vrfy_ccnext __P((DBC *, VRFY_CHILDINFO **));
int __db_vrfy_ccclose __P((DBC *));
int __db_salvage_init __P((VRFY_DBINFO *));
void __db_salvage_destroy __P((VRFY_DBINFO *));
int __db_salvage_getnext __P((VRFY_DBINFO *, DBC **, db_pgno_t *, u_int32_t *, int));
int __db_salvage_isdone __P((VRFY_DBINFO *, db_pgno_t));
int __db_salvage_markdone __P((VRFY_DBINFO *, db_pgno_t));
int __db_salvage_markneeded __P((VRFY_DBINFO *, db_pgno_t, u_int32_t));
int __db_vrfy_prdbt __P((DBT *, int, const char *, void *, int (*)(void *, const void *), int, VRFY_DBINFO *));
#if defined(__cplusplus)
}
#endif
#endif /* !_db_ext_h_ */

19
dbinc_auto/dbreg_auto.h Normal file
View File

@@ -0,0 +1,19 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __dbreg_AUTO_H
#define __dbreg_AUTO_H
#define DB___dbreg_register 2
typedef struct ___dbreg_register_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
DBT name;
DBT uid;
int32_t fileid;
DBTYPE ftype;
db_pgno_t meta_pgno;
u_int32_t id;
} __dbreg_register_args;
#endif

47
dbinc_auto/dbreg_ext.h Normal file
View File

@@ -0,0 +1,47 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _dbreg_ext_h_
#define _dbreg_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __dbreg_setup __P((DB *, const char *, const char *, u_int32_t));
int __dbreg_teardown __P((DB *));
int __dbreg_teardown_int __P((ENV *, FNAME *));
int __dbreg_new_id __P((DB *, DB_TXN *));
int __dbreg_get_id __P((DB *, DB_TXN *, int32_t *));
int __dbreg_assign_id __P((DB *, int32_t));
int __dbreg_revoke_id __P((DB *, int, int32_t));
int __dbreg_revoke_id_int __P((ENV *, FNAME *, int, int, int32_t));
int __dbreg_close_id __P((DB *, DB_TXN *, u_int32_t));
int __dbreg_close_id_int __P((ENV *, FNAME *, u_int32_t, int));
int __dbreg_failchk __P((ENV *));
int __dbreg_log_close __P((ENV *, FNAME *, DB_TXN *, u_int32_t));
int __dbreg_log_id __P((DB *, DB_TXN *, int32_t, int));
int __dbreg_register_read __P((ENV *, void *, __dbreg_register_args **));
int __dbreg_register_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, int32_t, DBTYPE, db_pgno_t, u_int32_t));
int __dbreg_init_recover __P((ENV *, DB_DISTAB *));
int __dbreg_register_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __dbreg_init_print __P((ENV *, DB_DISTAB *));
int __dbreg_register_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __dbreg_stat_print __P((ENV *, u_int32_t));
void __dbreg_print_fname __P((ENV *, FNAME *));
int __dbreg_add_dbentry __P((ENV *, DB_LOG *, DB *, int32_t));
int __dbreg_rem_dbentry __P((DB_LOG *, int32_t));
int __dbreg_log_files __P((ENV *, u_int32_t));
int __dbreg_close_files __P((ENV *, int));
int __dbreg_close_file __P((ENV *, FNAME *));
int __dbreg_mark_restored __P((ENV *));
int __dbreg_invalidate_files __P((ENV *, int));
int __dbreg_id_to_db __P((ENV *, DB_TXN *, DB **, int32_t, int));
int __dbreg_id_to_fname __P((DB_LOG *, int32_t, int, FNAME **));
int __dbreg_fid_to_fname __P((DB_LOG *, u_int8_t *, int, FNAME **));
int __dbreg_get_name __P((ENV *, u_int8_t *, char **, char **));
int __dbreg_do_open __P((ENV *, DB_TXN *, DB_LOG *, u_int8_t *, char *, DBTYPE, int32_t, db_pgno_t, void *, u_int32_t, u_int32_t));
int __dbreg_lazy_id __P((DB *));
#if defined(__cplusplus)
}
#endif
#endif /* !_dbreg_ext_h_ */

118
dbinc_auto/env_ext.h Normal file
View File

@@ -0,0 +1,118 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _env_ext_h_
#define _env_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __env_alloc_init __P((REGINFO *, size_t));
size_t __env_alloc_overhead __P((void));
size_t __env_alloc_size __P((size_t));
int __env_alloc __P((REGINFO *, size_t, void *));
void __env_alloc_free __P((REGINFO *, void *));
void __env_alloc_print __P((REGINFO *, u_int32_t));
int __env_read_db_config __P((ENV *));
int __config_split __P((char *, char *[]));
int __env_failchk_pp __P((DB_ENV *, u_int32_t));
int __env_thread_init __P((ENV *, int));
void __env_thread_destroy __P((ENV *));
int __env_set_state __P((ENV *, DB_THREAD_INFO **, DB_THREAD_STATE));
char *__env_thread_id_string __P((DB_ENV *, pid_t, db_threadid_t, char *));
int __db_file_extend __P((ENV *, DB_FH *, size_t));
int __db_file_multi_write __P((ENV *, const char *));
int __db_file_write __P((ENV *, DB_FH *, u_int32_t, u_int32_t, int));
void __db_env_destroy __P((DB_ENV *));
int __env_set_alloc __P((DB_ENV *, void *(*)(size_t), void *(*)(void *, size_t), void (*)(void *)));
int __env_get_encrypt_flags __P((DB_ENV *, u_int32_t *));
int __env_set_encrypt __P((DB_ENV *, const char *, u_int32_t));
void __env_map_flags __P((const FLAG_MAP *, u_int, u_int32_t *, u_int32_t *));
void __env_fetch_flags __P((const FLAG_MAP *, u_int, u_int32_t *, u_int32_t *));
int __env_set_flags __P((DB_ENV *, u_int32_t, int));
int __env_set_data_dir __P((DB_ENV *, const char *));
int __env_set_intermediate_dir_mode __P((DB_ENV *, const char *));
void __env_get_errcall __P((DB_ENV *, void (**)(const DB_ENV *, const char *, const char *)));
void __env_set_errcall __P((DB_ENV *, void (*)(const DB_ENV *, const char *, const char *)));
void __env_get_errfile __P((DB_ENV *, FILE **));
void __env_set_errfile __P((DB_ENV *, FILE *));
void __env_get_errpfx __P((DB_ENV *, const char **));
void __env_set_errpfx __P((DB_ENV *, const char *));
void __env_set_msgcall __P((DB_ENV *, void (*)(const DB_ENV *, const char *)));
void __env_get_msgfile __P((DB_ENV *, FILE **));
void __env_set_msgfile __P((DB_ENV *, FILE *));
int __env_set_paniccall __P((DB_ENV *, void (*)(DB_ENV *, int)));
int __env_set_shm_key __P((DB_ENV *, long));
int __env_set_tmp_dir __P((DB_ENV *, const char *));
int __env_set_verbose __P((DB_ENV *, u_int32_t, int));
int __db_mi_env __P((ENV *, const char *));
int __db_mi_open __P((ENV *, const char *, int));
int __env_not_config __P((ENV *, char *, u_int32_t));
int __db_appname __P((ENV *, APPNAME, const char *, u_int32_t, DB_FH **, char **));
int __env_open_pp __P((DB_ENV *, const char *, u_int32_t, int));
int __env_open __P((DB_ENV *, const char *, u_int32_t, int));
int __env_remove __P((DB_ENV *, const char *, u_int32_t));
int __env_config __P((DB_ENV *, const char *, u_int32_t, int));
int __env_close_pp __P((DB_ENV *, u_int32_t));
int __env_close __P((DB_ENV *, int));
int __env_get_open_flags __P((DB_ENV *, u_int32_t *));
int __db_apprec __P((ENV *, DB_THREAD_INFO *, DB_LSN *, DB_LSN *, int, u_int32_t));
int __log_backup __P((ENV *, DB_LOGC *, DB_LSN *, DB_LSN *, u_int32_t));
int __env_openfiles __P((ENV *, DB_LOGC *, void *, DBT *, DB_LSN *, DB_LSN *, double, int));
int __env_init_rec __P((ENV *, u_int32_t));
int __env_attach __P((ENV *, u_int32_t *, int, int));
int __env_turn_on __P((ENV *));
int __env_turn_off __P((ENV *, u_int32_t));
void __env_panic_set __P((ENV *, int));
int __env_ref_increment __P((ENV *));
int __env_ref_decrement __P((ENV *));
int __env_detach __P((ENV *, int));
int __env_remove_env __P((ENV *));
int __env_region_attach __P((ENV *, REGINFO *, size_t));
int __env_region_detach __P((ENV *, REGINFO *, int));
int __envreg_register __P((ENV *, int *));
int __envreg_unregister __P((ENV *, int));
int __envreg_xunlock __P((ENV *));
u_int32_t __env_struct_sig __P((void));
int __env_stat_print_pp __P((DB_ENV *, u_int32_t));
void __db_print_fh __P((ENV *, const char *, DB_FH *, u_int32_t));
void __db_print_fileid __P((ENV *, u_int8_t *, const char *));
void __db_dl __P((ENV *, const char *, u_long));
void __db_dl_pct __P((ENV *, const char *, u_long, int, const char *));
void __db_dlbytes __P((ENV *, const char *, u_long, u_long, u_long));
void __db_print_reginfo __P((ENV *, REGINFO *, const char *, u_int32_t));
int __db_stat_not_built __P((ENV *));
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_close __P((ENV *));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_add_remote_site __P((DB_ENV *, const char *, u_int, int *, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_get_ack_policy __P((DB_ENV *, int *));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_set_ack_policy __P((DB_ENV *, int));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_set_local_site __P((DB_ENV *, const char *, u_int, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_site_list __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_start __P((DB_ENV *, int, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_stat_pp __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_stat_print_pp __P((DB_ENV *, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_handle_event __P((ENV *, u_int32_t, void *));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_env_ext_h_ */

12
dbinc_auto/ext_185_def.in Normal file
View File

@@ -0,0 +1,12 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _DB_EXT_185_DEF_IN_
#define _DB_EXT_185_DEF_IN_
#ifdef _DB185_INT_H_
#define __db185_open __db185_open@DB_VERSION_UNIQUE_NAME@
#else
#define __db185_open __db185_open@DB_VERSION_UNIQUE_NAME@
#endif
#endif /* !_DB_EXT_185_DEF_IN_ */

View File

@@ -0,0 +1,19 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _DB_EXT_185_PROT_IN_
#define _DB_EXT_185_PROT_IN_
#if defined(__cplusplus)
extern "C" {
#endif
#ifdef _DB185_INT_H_
DB185 *__db185_open __P((const char *, int, int, DBTYPE, const void *));
#else
DB *__db185_open __P((const char *, int, int, DBTYPE, const void *));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_DB_EXT_185_PROT_IN_ */

61
dbinc_auto/ext_def.in Normal file
View File

@@ -0,0 +1,61 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _DB_EXT_DEF_IN_
#define _DB_EXT_DEF_IN_
#define db_create db_create@DB_VERSION_UNIQUE_NAME@
#define db_strerror db_strerror@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_close db_env_set_func_close@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_dirfree db_env_set_func_dirfree@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_dirlist db_env_set_func_dirlist@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_exists db_env_set_func_exists@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_free db_env_set_func_free@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_fsync db_env_set_func_fsync@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_ftruncate db_env_set_func_ftruncate@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_ioinfo db_env_set_func_ioinfo@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_malloc db_env_set_func_malloc@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_file_map db_env_set_func_file_map@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_region_map db_env_set_func_region_map@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_pread db_env_set_func_pread@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_pwrite db_env_set_func_pwrite@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_open db_env_set_func_open@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_read db_env_set_func_read@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_realloc db_env_set_func_realloc@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_rename db_env_set_func_rename@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_seek db_env_set_func_seek@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_unlink db_env_set_func_unlink@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_write db_env_set_func_write@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_yield db_env_set_func_yield@DB_VERSION_UNIQUE_NAME@
#define db_env_create db_env_create@DB_VERSION_UNIQUE_NAME@
#define db_version db_version@DB_VERSION_UNIQUE_NAME@
#define log_compare log_compare@DB_VERSION_UNIQUE_NAME@
#define db_sequence_create db_sequence_create@DB_VERSION_UNIQUE_NAME@
#if DB_DBM_HSEARCH != 0
#define __db_ndbm_clearerr __db_ndbm_clearerr@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_close __db_ndbm_close@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_delete __db_ndbm_delete@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_dirfno __db_ndbm_dirfno@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_error __db_ndbm_error@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_fetch __db_ndbm_fetch@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_firstkey __db_ndbm_firstkey@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_nextkey __db_ndbm_nextkey@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_open __db_ndbm_open@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_pagfno __db_ndbm_pagfno@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_rdonly __db_ndbm_rdonly@DB_VERSION_UNIQUE_NAME@
#define __db_ndbm_store __db_ndbm_store@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_close __db_dbm_close@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_delete __db_dbm_delete@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_fetch __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_init __db_dbm_init@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_nextkey __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_store __db_dbm_store@DB_VERSION_UNIQUE_NAME@
#endif
#if DB_DBM_HSEARCH != 0
#define __db_hcreate __db_hcreate@DB_VERSION_UNIQUE_NAME@
#define __db_hsearch __db_hsearch@DB_VERSION_UNIQUE_NAME@
#define __db_hdestroy __db_hdestroy@DB_VERSION_UNIQUE_NAME@
#endif
#define db_xa_switch db_xa_switch@DB_VERSION_UNIQUE_NAME@
#endif /* !_DB_EXT_DEF_IN_ */

67
dbinc_auto/ext_prot.in Normal file
View File

@@ -0,0 +1,67 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _DB_EXT_PROT_IN_
#define _DB_EXT_PROT_IN_
#if defined(__cplusplus)
extern "C" {
#endif
int db_create __P((DB **, DB_ENV *, u_int32_t));
char *db_strerror __P((int));
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_fsync __P((int (*)(int)));
int db_env_set_func_ftruncate __P((int (*)(int, off_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_malloc __P((void *(*)(size_t)));
int db_env_set_func_file_map __P((int (*)(DB_ENV *, char *, size_t, int, void **), int (*)(DB_ENV *, void *)));
int db_env_set_func_region_map __P((int (*)(DB_ENV *, char *, size_t, int *, void **), int (*)(DB_ENV *, void *)));
int db_env_set_func_pread __P((ssize_t (*)(int, void *, size_t, off_t)));
int db_env_set_func_pwrite __P((ssize_t (*)(int, const void *, size_t, off_t)));
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, off_t, int)));
int db_env_set_func_unlink __P((int (*)(const char *)));
int db_env_set_func_write __P((ssize_t (*)(int, const void *, size_t)));
int db_env_set_func_yield __P((int (*)(u_long, u_long)));
int db_env_create __P((DB_ENV **, u_int32_t));
char *db_version __P((int *, int *, int *));
int log_compare __P((const DB_LSN *, const DB_LSN *));
int db_sequence_create __P((DB_SEQUENCE **, DB *, u_int32_t));
#if DB_DBM_HSEARCH != 0
int __db_ndbm_clearerr __P((DBM *));
void __db_ndbm_close __P((DBM *));
int __db_ndbm_delete __P((DBM *, datum));
int __db_ndbm_dirfno __P((DBM *));
int __db_ndbm_error __P((DBM *));
datum __db_ndbm_fetch __P((DBM *, datum));
datum __db_ndbm_firstkey __P((DBM *));
datum __db_ndbm_nextkey __P((DBM *));
DBM *__db_ndbm_open __P((const char *, int, int));
int __db_ndbm_pagfno __P((DBM *));
int __db_ndbm_rdonly __P((DBM *));
int __db_ndbm_store __P((DBM *, datum, datum, int));
int __db_dbm_close __P((void));
int __db_dbm_delete __P((datum));
datum __db_dbm_fetch __P((datum));
datum __db_dbm_firstkey __P((void));
int __db_dbm_init __P((char *));
datum __db_dbm_nextkey __P((datum));
int __db_dbm_store __P((datum, datum));
#endif
#if DB_DBM_HSEARCH != 0
int __db_hcreate __P((size_t));
ENTRY *__db_hsearch __P((ENTRY, ACTION));
void __db_hdestroy __P((void));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_DB_EXT_PROT_IN_ */

63
dbinc_auto/fileops_auto.h Normal file
View File

@@ -0,0 +1,63 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __fop_AUTO_H
#define __fop_AUTO_H
#define DB___fop_create 143
typedef struct ___fop_create_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT name;
u_int32_t appname;
u_int32_t mode;
} __fop_create_args;
#define DB___fop_remove 144
typedef struct ___fop_remove_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT name;
DBT fid;
u_int32_t appname;
} __fop_remove_args;
#define DB___fop_write 145
typedef struct ___fop_write_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT name;
u_int32_t appname;
u_int32_t pgsize;
db_pgno_t pageno;
u_int32_t offset;
DBT page;
u_int32_t flag;
} __fop_write_args;
#define DB___fop_rename 146
#define DB___fop_rename_noundo 150
typedef struct ___fop_rename_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT oldname;
DBT newname;
DBT fileid;
u_int32_t appname;
} __fop_rename_args;
#define DB___fop_file_remove 141
typedef struct ___fop_file_remove_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DBT real_fid;
DBT tmp_fid;
DBT name;
u_int32_t appname;
u_int32_t child;
} __fop_file_remove_args;
#endif

49
dbinc_auto/fileops_ext.h Normal file
View File

@@ -0,0 +1,49 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _fileops_ext_h_
#define _fileops_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __fop_create_read __P((ENV *, void *, __fop_create_args **));
int __fop_create_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t));
int __fop_remove_read __P((ENV *, void *, __fop_remove_args **));
int __fop_remove_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, u_int32_t));
int __fop_write_read __P((ENV *, void *, __fop_write_args **));
int __fop_write_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t, db_pgno_t, u_int32_t, const DBT *, u_int32_t));
int __fop_rename_read __P((ENV *, void *, __fop_rename_args **));
int __fop_rename_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t));
int __fop_rename_noundo_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t));
int __fop_rename_int_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t, u_int32_t));
int __fop_file_remove_read __P((ENV *, void *, __fop_file_remove_args **));
int __fop_file_remove_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t, u_int32_t));
int __fop_init_recover __P((ENV *, DB_DISTAB *));
int __fop_create_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_remove_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_write_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_file_remove_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_init_print __P((ENV *, DB_DISTAB *));
int __fop_create __P((ENV *, DB_TXN *, DB_FH **, const char *, APPNAME, int, u_int32_t));
int __fop_remove __P((ENV *, DB_TXN *, u_int8_t *, const char *, APPNAME, u_int32_t));
int __fop_write __P((ENV *, DB_TXN *, const char *, APPNAME, DB_FH *, u_int32_t, db_pgno_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t));
int __fop_rename __P((ENV *, DB_TXN *, const char *, const char *, u_int8_t *, APPNAME, int, u_int32_t));
int __fop_create_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_remove_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_write_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_noundo_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_file_remove_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_lock_handle __P((ENV *, DB *, DB_LOCKER *, db_lockmode_t, DB_LOCK *, u_int32_t));
int __fop_file_setup __P((DB *, DB_THREAD_INFO *ip, DB_TXN *, const char *, int, u_int32_t, u_int32_t *));
int __fop_subdb_setup __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, const char *, int, u_int32_t));
int __fop_remove_setup __P((DB *, DB_TXN *, const char *, u_int32_t));
int __fop_read_meta __P((ENV *, const char *, u_int8_t *, size_t, DB_FH *, int, size_t *));
int __fop_dummy __P((DB *, DB_TXN *, const char *, const char *, u_int32_t));
int __fop_dbrename __P((DB *, const char *, const char *));
#if defined(__cplusplus)
}
#endif
#endif /* !_fileops_ext_h_ */

162
dbinc_auto/hash_auto.h Normal file
View File

@@ -0,0 +1,162 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __ham_AUTO_H
#define __ham_AUTO_H
#define DB___ham_insdel 21
typedef struct ___ham_insdel_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_pgno_t pgno;
u_int32_t ndx;
DB_LSN pagelsn;
DBT key;
DBT data;
} __ham_insdel_args;
#define DB___ham_newpage 22
typedef struct ___ham_newpage_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_pgno_t prev_pgno;
DB_LSN prevlsn;
db_pgno_t new_pgno;
DB_LSN pagelsn;
db_pgno_t next_pgno;
DB_LSN nextlsn;
} __ham_newpage_args;
#define DB___ham_splitdata 24
typedef struct ___ham_splitdata_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
u_int32_t opcode;
db_pgno_t pgno;
DBT pageimage;
DB_LSN pagelsn;
} __ham_splitdata_args;
#define DB___ham_replace 25
typedef struct ___ham_replace_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
u_int32_t ndx;
DB_LSN pagelsn;
int32_t off;
DBT olditem;
DBT newitem;
u_int32_t makedup;
} __ham_replace_args;
#define DB___ham_copypage 28
typedef struct ___ham_copypage_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
DB_LSN pagelsn;
db_pgno_t next_pgno;
DB_LSN nextlsn;
db_pgno_t nnext_pgno;
DB_LSN nnextlsn;
DBT page;
} __ham_copypage_args;
#define DB___ham_metagroup_42 29
typedef struct ___ham_metagroup_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
u_int32_t bucket;
db_pgno_t mmpgno;
DB_LSN mmetalsn;
db_pgno_t mpgno;
DB_LSN metalsn;
db_pgno_t pgno;
DB_LSN pagelsn;
u_int32_t newalloc;
} __ham_metagroup_42_args;
#define DB___ham_metagroup 29
typedef struct ___ham_metagroup_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
u_int32_t bucket;
db_pgno_t mmpgno;
DB_LSN mmetalsn;
db_pgno_t mpgno;
DB_LSN metalsn;
db_pgno_t pgno;
DB_LSN pagelsn;
u_int32_t newalloc;
db_pgno_t last_pgno;
} __ham_metagroup_args;
#define DB___ham_groupalloc_42 32
typedef struct ___ham_groupalloc_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN meta_lsn;
db_pgno_t start_pgno;
u_int32_t num;
db_pgno_t free;
} __ham_groupalloc_42_args;
#define DB___ham_groupalloc 32
typedef struct ___ham_groupalloc_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN meta_lsn;
db_pgno_t start_pgno;
u_int32_t num;
db_pgno_t unused;
db_pgno_t last_pgno;
} __ham_groupalloc_args;
#define DB___ham_curadj 33
typedef struct ___ham_curadj_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_pgno_t pgno;
u_int32_t indx;
u_int32_t len;
u_int32_t dup_off;
int add;
int is_dup;
u_int32_t order;
} __ham_curadj_args;
#define DB___ham_chgpg 34
typedef struct ___ham_chgpg_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_ham_mode mode;
db_pgno_t old_pgno;
db_pgno_t new_pgno;
u_int32_t old_indx;
u_int32_t new_indx;
} __ham_chgpg_args;
#endif

130
dbinc_auto/hash_ext.h Normal file
View File

@@ -0,0 +1,130 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _hash_ext_h_
#define _hash_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __ham_quick_delete __P((DBC *));
int __hamc_init __P((DBC *));
int __hamc_count __P((DBC *, db_recno_t *));
int __hamc_dup __P((DBC *, DBC *));
u_int32_t __ham_call_hash __P((DBC *, u_int8_t *, u_int32_t));
int __ham_init_dbt __P((ENV *, DBT *, u_int32_t, void **, u_int32_t *));
int __hamc_update __P((DBC *, u_int32_t, db_ham_curadj, int));
int __ham_get_clist __P((DB *, db_pgno_t, u_int32_t, DBC ***));
int __ham_insdel_read __P((ENV *, DB **, void *, void *, __ham_insdel_args **));
int __ham_insdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, const DBT *, const DBT *));
int __ham_newpage_read __P((ENV *, DB **, void *, void *, __ham_newpage_args **));
int __ham_newpage_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
int __ham_splitdata_read __P((ENV *, DB **, void *, void *, __ham_splitdata_args **));
int __ham_splitdata_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, const DBT *, DB_LSN *));
int __ham_replace_read __P((ENV *, DB **, void *, void *, __ham_replace_args **));
int __ham_replace_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, u_int32_t, DB_LSN *, int32_t, const DBT *, const DBT *, u_int32_t));
int __ham_copypage_read __P((ENV *, DB **, void *, void *, __ham_copypage_args **));
int __ham_copypage_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, const DBT *));
int __ham_metagroup_42_read __P((ENV *, DB **, void *, void *, __ham_metagroup_42_args **));
int __ham_metagroup_read __P((ENV *, DB **, void *, void *, __ham_metagroup_args **));
int __ham_metagroup_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t));
int __ham_groupalloc_42_read __P((ENV *, DB **, void *, void *, __ham_groupalloc_42_args **));
int __ham_groupalloc_read __P((ENV *, DB **, void *, void *, __ham_groupalloc_args **));
int __ham_groupalloc_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, u_int32_t, db_pgno_t, db_pgno_t));
int __ham_curadj_read __P((ENV *, DB **, void *, void *, __ham_curadj_args **));
int __ham_curadj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t, u_int32_t, int, int, u_int32_t));
int __ham_chgpg_read __P((ENV *, DB **, void *, void *, __ham_chgpg_args **));
int __ham_chgpg_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_ham_mode, db_pgno_t, db_pgno_t, u_int32_t, u_int32_t));
int __ham_init_recover __P((ENV *, DB_DISTAB *));
int __ham_insdel_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_newpage_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_splitdata_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_replace_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_copypage_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_curadj_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_chgpg_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_init_print __P((ENV *, DB_DISTAB *));
int __ham_pgin __P((DB *, db_pgno_t, void *, DBT *));
int __ham_pgout __P((DB *, db_pgno_t, void *, DBT *));
int __ham_mswap __P((ENV *, void *));
int __ham_add_dup __P((DBC *, DBT *, u_int32_t, db_pgno_t *));
int __ham_dup_convert __P((DBC *));
int __ham_make_dup __P((ENV *, const DBT *, DBT *d, void **, u_int32_t *));
void __ham_dsearch __P((DBC *, DBT *, u_int32_t *, int *, u_int32_t));
u_int32_t __ham_func2 __P((DB *, const void *, u_int32_t));
u_int32_t __ham_func3 __P((DB *, const void *, u_int32_t));
u_int32_t __ham_func4 __P((DB *, const void *, u_int32_t));
u_int32_t __ham_func5 __P((DB *, const void *, u_int32_t));
u_int32_t __ham_test __P((DB *, const void *, u_int32_t));
int __ham_get_meta __P((DBC *));
int __ham_release_meta __P((DBC *));
int __ham_dirty_meta __P((DBC *, u_int32_t));
int __ham_db_create __P((DB *));
int __ham_db_close __P((DB *));
int __ham_get_h_ffactor __P((DB *, u_int32_t *));
int __ham_set_h_compare __P((DB *, int (*)(DB *, const DBT *, const DBT *)));
int __ham_get_h_nelem __P((DB *, u_int32_t *));
int __ham_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char * name, db_pgno_t, u_int32_t));
int __ham_metachk __P((DB *, const char *, HMETA *));
int __ham_new_file __P((DB *, DB_THREAD_INFO *, DB_TXN *, DB_FH *, const char *));
int __ham_new_subdb __P((DB *, DB *, DB_THREAD_INFO *, DB_TXN *));
int __ham_item __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_item_reset __P((DBC *));
int __ham_item_init __P((DBC *));
int __ham_item_last __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_item_first __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_item_prev __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_item_next __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_insertpair __P((DBC *, PAGE *p, db_indx_t *indxp, const DBT *, const DBT *, int, int));
int __ham_getindex __P((DBC *, PAGE *, const DBT *, int, int *, db_indx_t *));
int __ham_verify_sorted_page __P((DB *, DB_THREAD_INFO *, DB_TXN *, PAGE *));
int __ham_sort_page __P((DBC *, PAGE **, PAGE *));
int __ham_del_pair __P((DBC *, int));
int __ham_replpair __P((DBC *, DBT *, u_int32_t));
void __ham_onpage_replace __P((DB *, PAGE *, u_int32_t, int32_t, u_int32_t, int, DBT *));
int __ham_split_page __P((DBC *, u_int32_t, u_int32_t));
int __ham_add_el __P((DBC *, const DBT *, const DBT *, int));
int __ham_copypair __P((DBC *, PAGE *, u_int32_t, PAGE *, db_indx_t *));
int __ham_add_ovflpage __P((DBC *, PAGE *, int, PAGE **));
int __ham_get_cpage __P((DBC *, db_lockmode_t));
int __ham_next_cpage __P((DBC *, db_pgno_t));
int __ham_lock_bucket __P((DBC *, db_lockmode_t));
void __ham_dpair __P((DB *, PAGE *, u_int32_t));
int __ham_insdel_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_newpage_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_replace_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_splitdata_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_copypage_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_curadj_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_chgpg_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_reclaim __P((DB *, DB_THREAD_INFO *, DB_TXN *txn));
int __ham_truncate __P((DBC *, u_int32_t *));
int __ham_stat __P((DBC *, void *, u_int32_t));
int __ham_stat_print __P((DBC *, u_int32_t));
void __ham_print_cursor __P((DBC *));
int __ham_traverse __P((DBC *, db_lockmode_t, int (*)(DBC *, PAGE *, void *, int *), void *, int));
int __db_no_hash_am __P((ENV *));
int __ham_30_hashmeta __P((DB *, char *, u_int8_t *));
int __ham_30_sizefix __P((DB *, DB_FH *, char *, u_int8_t *));
int __ham_31_hashmeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __ham_31_hash __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __ham_46_hashmeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __ham_46_hash __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
int __ham_vrfy_meta __P((DB *, VRFY_DBINFO *, HMETA *, db_pgno_t, u_int32_t));
int __ham_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
int __ham_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
int __ham_vrfy_hashing __P((DB *, u_int32_t, HMETA *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t (*) __P((DB *, const void *, u_int32_t))));
int __ham_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, PAGE *, void *, int (*)(void *, const void *), u_int32_t));
int __ham_meta2pgset __P((DB *, VRFY_DBINFO *, HMETA *, u_int32_t, DB *));
#if defined(__cplusplus)
}
#endif
#endif /* !_hash_ext_h_ */

20
dbinc_auto/hmac_ext.h Normal file
View File

@@ -0,0 +1,20 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _hmac_ext_h_
#define _hmac_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __db_chksum __P((void *, u_int8_t *, size_t, u_int8_t *, u_int8_t *));
void __db_derive_mac __P((u_int8_t *, size_t, u_int8_t *));
int __db_check_chksum __P((ENV *, void *, DB_CIPHER *, u_int8_t *, void *, size_t, int));
void __db_SHA1Transform __P((u_int32_t *, unsigned char *));
void __db_SHA1Init __P((SHA1_CTX *));
void __db_SHA1Update __P((SHA1_CTX *, unsigned char *, size_t));
void __db_SHA1Final __P((unsigned char *, SHA1_CTX *));
#if defined(__cplusplus)
}
#endif
#endif /* !_hmac_ext_h_ */

1912
dbinc_auto/int_def.in Normal file

File diff suppressed because it is too large Load Diff

71
dbinc_auto/lock_ext.h Normal file
View File

@@ -0,0 +1,71 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _lock_ext_h_
#define _lock_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __lock_vec_pp __P((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
int __lock_vec __P((ENV *, DB_LOCKER *, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
int __lock_get_pp __P((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
int __lock_get __P((ENV *, DB_LOCKER *, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
int __lock_get_internal __P((DB_LOCKTAB *, DB_LOCKER *, u_int32_t, const DBT *, db_lockmode_t, db_timeout_t, DB_LOCK *));
int __lock_put_pp __P((DB_ENV *, DB_LOCK *));
int __lock_put __P((ENV *, DB_LOCK *));
int __lock_downgrade __P((ENV *, DB_LOCK *, db_lockmode_t, u_int32_t));
int __lock_locker_is_parent __P((ENV *, DB_LOCKER *, DB_LOCKER *, int *));
int __lock_promote __P((DB_LOCKTAB *, DB_LOCKOBJ *, int *, u_int32_t));
int __lock_detect_pp __P((DB_ENV *, u_int32_t, u_int32_t, int *));
int __lock_detect __P((ENV *, u_int32_t, int *));
int __lock_failchk __P((ENV *));
int __lock_id_pp __P((DB_ENV *, u_int32_t *));
int __lock_id __P((ENV *, u_int32_t *, DB_LOCKER **));
void __lock_set_thread_id __P((void *, pid_t, db_threadid_t));
int __lock_id_free_pp __P((DB_ENV *, u_int32_t));
int __lock_id_free __P((ENV *, DB_LOCKER *));
int __lock_id_set __P((ENV *, u_int32_t, u_int32_t));
int __lock_getlocker __P((DB_LOCKTAB *, u_int32_t, int, DB_LOCKER **));
int __lock_getlocker_int __P((DB_LOCKTAB *, u_int32_t, int, DB_LOCKER **));
int __lock_addfamilylocker __P((ENV *, u_int32_t, u_int32_t));
int __lock_freefamilylocker __P((DB_LOCKTAB *, DB_LOCKER *));
int __lock_freelocker __P((DB_LOCKTAB *, DB_LOCKREGION *, DB_LOCKER *));
int __lock_fix_list __P((ENV *, DBT *, u_int32_t));
int __lock_get_list __P((ENV *, DB_LOCKER *, u_int32_t, db_lockmode_t, DBT *));
void __lock_list_print __P((ENV *, DBT *));
int __lock_env_create __P((DB_ENV *));
void __lock_env_destroy __P((DB_ENV *));
int __lock_get_lk_conflicts __P((DB_ENV *, const u_int8_t **, int *));
int __lock_set_lk_conflicts __P((DB_ENV *, u_int8_t *, int));
int __lock_get_lk_detect __P((DB_ENV *, u_int32_t *));
int __lock_set_lk_detect __P((DB_ENV *, u_int32_t));
int __lock_get_lk_max_locks __P((DB_ENV *, u_int32_t *));
int __lock_set_lk_max_locks __P((DB_ENV *, u_int32_t));
int __lock_get_lk_max_lockers __P((DB_ENV *, u_int32_t *));
int __lock_set_lk_max_lockers __P((DB_ENV *, u_int32_t));
int __lock_get_lk_max_objects __P((DB_ENV *, u_int32_t *));
int __lock_set_lk_max_objects __P((DB_ENV *, u_int32_t));
int __lock_get_lk_partitions __P((DB_ENV *, u_int32_t *));
int __lock_set_lk_partitions __P((DB_ENV *, u_int32_t));
int __lock_get_env_timeout __P((DB_ENV *, db_timeout_t *, u_int32_t));
int __lock_set_env_timeout __P((DB_ENV *, db_timeout_t, u_int32_t));
int __lock_open __P((ENV *, int));
int __lock_env_refresh __P((ENV *));
u_int32_t __lock_region_mutex_count __P((ENV *));
int __lock_stat_pp __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t));
int __lock_stat_print_pp __P((DB_ENV *, u_int32_t));
int __lock_stat_print __P((ENV *, u_int32_t));
void __lock_printlock __P((DB_LOCKTAB *, DB_MSGBUF *mbp, struct __db_lock *, int));
int __lock_set_timeout __P((ENV *, DB_LOCKER *, db_timeout_t, u_int32_t));
int __lock_set_timeout_internal __P((ENV *, DB_LOCKER *, db_timeout_t, u_int32_t));
int __lock_inherit_timeout __P((ENV *, DB_LOCKER *, DB_LOCKER *));
void __lock_expires __P((ENV *, db_timespec *, db_timeout_t));
int __lock_expired __P((ENV *, db_timespec *, db_timespec *));
u_int32_t __lock_ohash __P((const DBT *));
u_int32_t __lock_lhash __P((DB_LOCKOBJ *));
int __lock_nomem __P((ENV *, const char *));
#if defined(__cplusplus)
}
#endif
#endif /* !_lock_ext_h_ */

75
dbinc_auto/log_ext.h Normal file
View File

@@ -0,0 +1,75 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _log_ext_h_
#define _log_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __log_open __P((ENV *, int));
int __log_find __P((DB_LOG *, int, u_int32_t *, logfile_validity *));
int __log_valid __P((DB_LOG *, u_int32_t, int, DB_FH **, u_int32_t, logfile_validity *, u_int32_t *));
int __log_env_refresh __P((ENV *));
int __log_get_cached_ckp_lsn __P((ENV *, DB_LSN *));
u_int32_t __log_region_mutex_count __P((ENV *));
int __log_vtruncate __P((ENV *, DB_LSN *, DB_LSN *, DB_LSN *));
int __log_is_outdated __P((ENV *, u_int32_t, int *));
int __log_zero __P((ENV *, DB_LSN *));
int __log_inmem_lsnoff __P((DB_LOG *, DB_LSN *, size_t *));
int __log_inmem_newfile __P((DB_LOG *, u_int32_t));
int __log_inmem_chkspace __P((DB_LOG *, size_t));
void __log_inmem_copyout __P((DB_LOG *, size_t, void *, size_t));
void __log_inmem_copyin __P((DB_LOG *, size_t, void *, size_t));
void __log_set_version __P((ENV *, u_int32_t));
int __log_get_oldversion __P((ENV *, u_int32_t *));
int __log_archive_pp __P((DB_ENV *, char **[], u_int32_t));
int __log_get_stable_lsn __P((ENV *, DB_LSN *));
void __log_autoremove __P((ENV *));
int __log_check_page_lsn __P((ENV *, DB *, DB_LSN *));
int __log_printf_capi __P((DB_ENV *, DB_TXN *, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
int __log_printf_pp __P((DB_ENV *, DB_TXN *, const char *, va_list));
int __log_printf __P((ENV *, DB_TXN *, const char *, ...)) __attribute__ ((__format__ (__printf__, 3, 4)));
int __log_cursor_pp __P((DB_ENV *, DB_LOGC **, u_int32_t));
int __log_cursor __P((ENV *, DB_LOGC **));
int __logc_close __P((DB_LOGC *));
int __logc_version __P((DB_LOGC *, u_int32_t *));
int __logc_get __P((DB_LOGC *, DB_LSN *, DBT *, u_int32_t));
void __log_hdrswap __P((HDR *, int));
void __log_persistswap __P((LOGP *));
int __log_rep_split __P((ENV *, DB_THREAD_INFO *, __rep_control_args *, DBT *, DB_LSN *, DB_LSN *));
int __log_env_create __P((DB_ENV *));
void __log_env_destroy __P((DB_ENV *));
int __log_get_lg_bsize __P((DB_ENV *, u_int32_t *));
int __log_set_lg_bsize __P((DB_ENV *, u_int32_t));
int __log_get_lg_filemode __P((DB_ENV *, int *));
int __log_set_lg_filemode __P((DB_ENV *, int));
int __log_get_lg_max __P((DB_ENV *, u_int32_t *));
int __log_set_lg_max __P((DB_ENV *, u_int32_t));
int __log_get_lg_regionmax __P((DB_ENV *, u_int32_t *));
int __log_set_lg_regionmax __P((DB_ENV *, u_int32_t));
int __log_get_lg_dir __P((DB_ENV *, const char **));
int __log_set_lg_dir __P((DB_ENV *, const char *));
void __log_get_flags __P((DB_ENV *, u_int32_t *));
void __log_set_flags __P((ENV *, u_int32_t, int));
int __log_get_config __P((DB_ENV *, u_int32_t, int *));
int __log_set_config __P((DB_ENV *, u_int32_t, int));
int __log_set_config_int __P((DB_ENV *, u_int32_t, int, int));
int __log_check_sizes __P((ENV *, u_int32_t, u_int32_t));
int __log_put_pp __P((DB_ENV *, DB_LSN *, const DBT *, u_int32_t));
int __log_put __P((ENV *, DB_LSN *, const DBT *, u_int32_t));
int __log_current_lsn __P((ENV *, DB_LSN *, u_int32_t *, u_int32_t *));
int __log_newfile __P((DB_LOG *, DB_LSN *, u_int32_t, u_int32_t));
int __log_flush_pp __P((DB_ENV *, const DB_LSN *));
int __log_flush __P((ENV *, const DB_LSN *));
int __log_flush_int __P((DB_LOG *, const DB_LSN *, int));
int __log_file_pp __P((DB_ENV *, const DB_LSN *, char *, size_t));
int __log_name __P((DB_LOG *, u_int32_t, char **, DB_FH **, u_int32_t));
int __log_rep_put __P((ENV *, DB_LSN *, const DBT *, u_int32_t));
int __log_stat_pp __P((DB_ENV *, DB_LOG_STAT **, u_int32_t));
int __log_stat_print_pp __P((DB_ENV *, u_int32_t));
int __log_stat_print __P((ENV *, u_int32_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_log_ext_h_ */

94
dbinc_auto/mp_ext.h Normal file
View File

@@ -0,0 +1,94 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _mp_ext_h_
#define _mp_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __memp_alloc __P((DB_MPOOL *, REGINFO *, MPOOLFILE *, size_t, roff_t *, void *));
void __memp_free __P((REGINFO *, MPOOLFILE *, void *));
int __memp_bhwrite __P((DB_MPOOL *, DB_MPOOL_HASH *, MPOOLFILE *, BH *, int));
int __memp_pgread __P((DB_MPOOLFILE *, DB_MPOOL_HASH *, BH *, int));
int __memp_pg __P((DB_MPOOLFILE *, BH *, int));
int __memp_bhfree __P((DB_MPOOL *, REGINFO *, DB_MPOOL_HASH *, BH *, u_int32_t));
int __memp_fget_pp __P((DB_MPOOLFILE *, db_pgno_t *, DB_TXN *, u_int32_t, void *));
int __memp_fget __P((DB_MPOOLFILE *, db_pgno_t *, DB_THREAD_INFO *, DB_TXN *, u_int32_t, void *));
int __memp_fcreate_pp __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t));
int __memp_fcreate __P((ENV *, DB_MPOOLFILE **));
int __memp_set_clear_len __P((DB_MPOOLFILE *, u_int32_t));
int __memp_get_fileid __P((DB_MPOOLFILE *, u_int8_t *));
int __memp_set_fileid __P((DB_MPOOLFILE *, u_int8_t *));
int __memp_get_flags __P((DB_MPOOLFILE *, u_int32_t *));
int __memp_set_flags __P((DB_MPOOLFILE *, u_int32_t, int));
int __memp_get_ftype __P((DB_MPOOLFILE *, int *));
int __memp_set_ftype __P((DB_MPOOLFILE *, int));
int __memp_set_lsn_offset __P((DB_MPOOLFILE *, int32_t));
int __memp_get_pgcookie __P((DB_MPOOLFILE *, DBT *));
int __memp_set_pgcookie __P((DB_MPOOLFILE *, DBT *));
int __memp_get_last_pgno __P((DB_MPOOLFILE *, db_pgno_t *));
char * __memp_fn __P((DB_MPOOLFILE *));
char * __memp_fns __P((DB_MPOOL *, MPOOLFILE *));
int __memp_fopen_pp __P((DB_MPOOLFILE *, const char *, u_int32_t, int, size_t));
int __memp_fopen __P((DB_MPOOLFILE *, MPOOLFILE *, const char *, u_int32_t, int, size_t));
int __memp_fclose_pp __P((DB_MPOOLFILE *, u_int32_t));
int __memp_fclose __P((DB_MPOOLFILE *, u_int32_t));
int __memp_mf_discard __P((DB_MPOOL *, MPOOLFILE *));
int __memp_inmemlist __P((ENV *, char ***, int *));
int __memp_fput_pp __P((DB_MPOOLFILE *, void *, DB_CACHE_PRIORITY, u_int32_t));
int __memp_fput __P((DB_MPOOLFILE *, DB_THREAD_INFO *, void *, DB_CACHE_PRIORITY));
int __memp_unpin_buffers __P((ENV *, DB_THREAD_INFO *));
int __memp_dirty __P((DB_MPOOLFILE *, void *, DB_THREAD_INFO *, DB_TXN *, DB_CACHE_PRIORITY, u_int32_t));
int __memp_env_create __P((DB_ENV *));
void __memp_env_destroy __P((DB_ENV *));
int __memp_get_cachesize __P((DB_ENV *, u_int32_t *, u_int32_t *, int *));
int __memp_set_cachesize __P((DB_ENV *, u_int32_t, u_int32_t, int));
int __memp_set_config __P((DB_ENV *, u_int32_t, int));
int __memp_get_config __P((DB_ENV *, u_int32_t, int *));
int __memp_get_mp_max_openfd __P((DB_ENV *, int *));
int __memp_set_mp_max_openfd __P((DB_ENV *, int));
int __memp_get_mp_max_write __P((DB_ENV *, int *, db_timeout_t *));
int __memp_set_mp_max_write __P((DB_ENV *, int, db_timeout_t));
int __memp_get_mp_mmapsize __P((DB_ENV *, size_t *));
int __memp_set_mp_mmapsize __P((DB_ENV *, size_t));
int __memp_nameop __P((ENV *, u_int8_t *, const char *, const char *, const char *, int));
int __memp_ftruncate __P((DB_MPOOLFILE *, DB_THREAD_INFO *, db_pgno_t, u_int32_t));
int __memp_alloc_freelist __P((DB_MPOOLFILE *, u_int32_t, db_pgno_t **));
int __memp_free_freelist __P((DB_MPOOLFILE *));
int __memp_get_freelist __P(( DB_MPOOLFILE *, u_int32_t *, db_pgno_t **));
int __memp_extend_freelist __P(( DB_MPOOLFILE *, u_int32_t , db_pgno_t **));
void __memp_set_last_pgno __P((DB_MPOOLFILE *, db_pgno_t));
u_int32_t __memp_bh_priority __P((BH *));
int __memp_bh_settxn __P((DB_MPOOL *, MPOOLFILE *mfp, BH *, void *));
int __memp_skip_curadj __P((DBC *, db_pgno_t));
int __memp_bh_freeze __P((DB_MPOOL *, REGINFO *, DB_MPOOL_HASH *, BH *, int *));
int __memp_bh_thaw __P((DB_MPOOL *, REGINFO *, DB_MPOOL_HASH *, BH *, BH *));
int __memp_open __P((ENV *, int));
int __memp_init __P((ENV *, DB_MPOOL *, u_int, u_int32_t, u_int));
u_int32_t __memp_max_regions __P((ENV *));
u_int32_t __memp_region_mutex_count __P((ENV *));
int __memp_env_refresh __P((ENV *));
int __memp_register_pp __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
int __memp_register __P((ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
int __memp_get_bucket __P((ENV *, MPOOLFILE *, db_pgno_t, REGINFO **, DB_MPOOL_HASH **));
int __memp_resize __P((DB_MPOOL *, u_int32_t, u_int32_t));
int __memp_get_cache_max __P((DB_ENV *, u_int32_t *, u_int32_t *));
int __memp_set_cache_max __P((DB_ENV *, u_int32_t, u_int32_t));
int __memp_stat_pp __P((DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t));
int __memp_stat_print_pp __P((DB_ENV *, u_int32_t));
int __memp_stat_print __P((ENV *, u_int32_t));
void __memp_stat_hash __P((REGINFO *, MPOOL *, u_int32_t *));
int __memp_walk_files __P((ENV *, MPOOL *, int (*) __P((ENV *, MPOOLFILE *, void *, u_int32_t *, u_int32_t)), void *, u_int32_t *, u_int32_t));
int __memp_sync_pp __P((DB_ENV *, DB_LSN *));
int __memp_sync __P((ENV *, u_int32_t, DB_LSN *));
int __memp_fsync_pp __P((DB_MPOOLFILE *));
int __memp_fsync __P((DB_MPOOLFILE *));
int __mp_xxx_fh __P((DB_MPOOLFILE *, DB_FH **));
int __memp_sync_int __P((ENV *, DB_MPOOLFILE *, u_int32_t, u_int32_t, u_int32_t *, int *));
int __memp_mf_sync __P((DB_MPOOL *, MPOOLFILE *, int));
int __memp_trickle_pp __P((DB_ENV *, int, int *));
#if defined(__cplusplus)
}
#endif
#endif /* !_mp_ext_h_ */

56
dbinc_auto/mutex_ext.h Normal file
View File

@@ -0,0 +1,56 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _mutex_ext_h_
#define _mutex_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __mutex_alloc __P((ENV *, int, u_int32_t, db_mutex_t *));
int __mutex_alloc_int __P((ENV *, int, int, u_int32_t, db_mutex_t *));
int __mutex_free __P((ENV *, db_mutex_t *));
int __mutex_free_int __P((ENV *, int, db_mutex_t *));
int __mut_failchk __P((ENV *));
int __db_fcntl_mutex_init __P((ENV *, db_mutex_t, u_int32_t));
int __db_fcntl_mutex_lock __P((ENV *, db_mutex_t));
int __db_fcntl_mutex_unlock __P((ENV *, db_mutex_t));
int __db_fcntl_mutex_destroy __P((ENV *, db_mutex_t));
int __mutex_alloc_pp __P((DB_ENV *, u_int32_t, db_mutex_t *));
int __mutex_free_pp __P((DB_ENV *, db_mutex_t));
int __mutex_lock_pp __P((DB_ENV *, db_mutex_t));
int __mutex_unlock_pp __P((DB_ENV *, db_mutex_t));
int __mutex_get_align __P((DB_ENV *, u_int32_t *));
int __mutex_set_align __P((DB_ENV *, u_int32_t));
int __mutex_get_increment __P((DB_ENV *, u_int32_t *));
int __mutex_set_increment __P((DB_ENV *, u_int32_t));
int __mutex_get_max __P((DB_ENV *, u_int32_t *));
int __mutex_set_max __P((DB_ENV *, u_int32_t));
int __mutex_get_tas_spins __P((DB_ENV *, u_int32_t *));
int __mutex_set_tas_spins __P((DB_ENV *, u_int32_t));
int __db_pthread_mutex_init __P((ENV *, db_mutex_t, u_int32_t));
int __db_pthread_mutex_lock __P((ENV *, db_mutex_t));
int __db_pthread_mutex_unlock __P((ENV *, db_mutex_t));
int __db_pthread_mutex_destroy __P((ENV *, db_mutex_t));
int __mutex_open __P((ENV *, int));
int __mutex_env_refresh __P((ENV *));
void __mutex_resource_return __P((ENV *, REGINFO *));
int __mutex_stat_pp __P((DB_ENV *, DB_MUTEX_STAT **, u_int32_t));
int __mutex_stat_print_pp __P((DB_ENV *, u_int32_t));
int __mutex_stat_print __P((ENV *, u_int32_t));
void __mutex_print_debug_single __P((ENV *, const char *, db_mutex_t, u_int32_t));
void __mutex_print_debug_stats __P((ENV *, DB_MSGBUF *, db_mutex_t, u_int32_t));
void __mutex_set_wait_info __P((ENV *, db_mutex_t, u_int32_t *, u_int32_t *));
void __mutex_clear __P((ENV *, db_mutex_t));
int __db_tas_mutex_init __P((ENV *, db_mutex_t, u_int32_t));
int __db_tas_mutex_lock __P((ENV *, db_mutex_t));
int __db_tas_mutex_unlock __P((ENV *, db_mutex_t));
int __db_tas_mutex_destroy __P((ENV *, db_mutex_t));
int __db_win32_mutex_init __P((ENV *, db_mutex_t, u_int32_t));
int __db_win32_mutex_lock __P((ENV *, db_mutex_t));
int __db_win32_mutex_unlock __P((ENV *, db_mutex_t));
int __db_win32_mutex_destroy __P((ENV *, db_mutex_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_mutex_ext_h_ */

101
dbinc_auto/os_ext.h Normal file
View File

@@ -0,0 +1,101 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _os_ext_h_
#define _os_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __os_abort __P((ENV *));
int __os_abspath __P((const char *));
#if defined(HAVE_REPLICATION_THREADS)
int __os_getaddrinfo __P((ENV *, const char *, u_int, const char *, const ADDRINFO *, ADDRINFO **));
#endif
#if defined(HAVE_REPLICATION_THREADS)
void __os_freeaddrinfo __P((ENV *, ADDRINFO *));
#endif
int __os_umalloc __P((ENV *, size_t, void *));
int __os_urealloc __P((ENV *, size_t, void *));
void __os_ufree __P((ENV *, void *));
int __os_strdup __P((ENV *, const char *, void *));
int __os_calloc __P((ENV *, size_t, size_t, void *));
int __os_malloc __P((ENV *, size_t, void *));
int __os_realloc __P((ENV *, size_t, void *));
void __os_free __P((ENV *, void *));
void *__ua_memcpy __P((void *, const void *, size_t));
void __os_gettime __P((ENV *, db_timespec *, int));
int __os_fs_notzero __P((void));
int __os_support_direct_io __P((void));
int __os_support_db_register __P((void));
int __os_support_replication __P((void));
u_int32_t __os_cpu_count __P((void));
char *__os_ctime __P((const time_t *, char *));
int __os_dirlist __P((ENV *, const char *, int, char ***, int *));
void __os_dirfree __P((ENV *, char **, int));
int __os_get_errno_ret_zero __P((void));
int __os_get_errno __P((void));
int __os_get_neterr __P((void));
int __os_get_syserr __P((void));
void __os_set_errno __P((int));
char *__os_strerror __P((int, char *, size_t));
int __os_posix_err __P((int));
int __os_fileid __P((ENV *, const char *, int, u_int8_t *));
int __os_fdlock __P((ENV *, DB_FH *, off_t, int, int));
int __os_fsync __P((ENV *, DB_FH *));
int __os_getenv __P((ENV *, const char *, char **, size_t));
int __os_openhandle __P((ENV *, const char *, int, int, DB_FH **));
int __os_closehandle __P((ENV *, DB_FH *));
int __os_attach __P((ENV *, REGINFO *, REGION *));
int __os_detach __P((ENV *, REGINFO *, int));
int __os_mapfile __P((ENV *, char *, DB_FH *, size_t, int, void **));
int __os_unmapfile __P((ENV *, void *, size_t));
int __os_mkdir __P((ENV *, const char *, int));
int __os_open __P((ENV *, const char *, u_int32_t, u_int32_t, int, DB_FH **));
void __os_id __P((DB_ENV *, pid_t *, db_threadid_t*));
int __os_rename __P((ENV *, const char *, const char *, u_int32_t));
int __os_isroot __P((void));
char *__db_rpath __P((const char *));
int __os_io __P((ENV *, int, DB_FH *, db_pgno_t, u_int32_t, u_int32_t, u_int32_t, u_int8_t *, size_t *));
int __os_read __P((ENV *, DB_FH *, void *, size_t, size_t *));
int __os_write __P((ENV *, DB_FH *, void *, size_t, size_t *));
int __os_physwrite __P((ENV *, DB_FH *, void *, size_t, size_t *));
int __os_seek __P((ENV *, DB_FH *, db_pgno_t, u_int32_t, u_int32_t));
void __os_stack __P((ENV *));
int __os_exists __P((ENV *, const char *, int *));
int __os_ioinfo __P((ENV *, const char *, DB_FH *, u_int32_t *, u_int32_t *, u_int32_t *));
int __os_tmpdir __P((ENV *, u_int32_t));
int __os_truncate __P((ENV *, DB_FH *, db_pgno_t, u_int32_t));
void __os_unique_id __P((ENV *, u_int32_t *));
int __os_unlink __P((ENV *, const char *, int));
void __os_yield __P((ENV *, u_long, u_long));
#ifndef HAVE_FCLOSE
int fclose __P((FILE *));
#endif
#ifndef HAVE_FGETC
int fgetc __P((FILE *));
#endif
#ifndef HAVE_FGETS
char *fgets __P((char *, int, FILE *));
#endif
#ifndef HAVE_FOPEN
FILE *fopen __P((const char *, const char *));
#endif
#ifndef HAVE_FWRITE
size_t fwrite __P((const void *, size_t, size_t, FILE *));
#endif
#ifndef HAVE_LOCALTIME
struct tm *localtime __P((const time_t *));
#endif
#ifdef HAVE_QNX
int __os_qnx_region_open __P((ENV *, const char *, int, int, DB_FH **));
#endif
int __os_is_winnt __P((void));
u_int32_t __os_cpu_count __P((void));
#ifdef HAVE_REPLICATION_THREADS
int __os_get_neterr __P((void));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_os_ext_h_ */

70
dbinc_auto/qam_auto.h Normal file
View File

@@ -0,0 +1,70 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __qam_AUTO_H
#define __qam_AUTO_H
#define DB___qam_incfirst 84
typedef struct ___qam_incfirst_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
db_recno_t recno;
db_pgno_t meta_pgno;
} __qam_incfirst_args;
#define DB___qam_mvptr 85
typedef struct ___qam_mvptr_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t fileid;
db_recno_t old_first;
db_recno_t new_first;
db_recno_t old_cur;
db_recno_t new_cur;
DB_LSN metalsn;
db_pgno_t meta_pgno;
} __qam_mvptr_args;
#define DB___qam_del 79
typedef struct ___qam_del_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN lsn;
db_pgno_t pgno;
u_int32_t indx;
db_recno_t recno;
} __qam_del_args;
#define DB___qam_add 80
typedef struct ___qam_add_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN lsn;
db_pgno_t pgno;
u_int32_t indx;
db_recno_t recno;
DBT data;
u_int32_t vflag;
DBT olddata;
} __qam_add_args;
#define DB___qam_delext 83
typedef struct ___qam_delext_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
int32_t fileid;
DB_LSN lsn;
db_pgno_t pgno;
u_int32_t indx;
db_recno_t recno;
DBT data;
} __qam_delext_args;
#endif

75
dbinc_auto/qam_ext.h Normal file
View File

@@ -0,0 +1,75 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _qam_ext_h_
#define _qam_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __qam_position __P((DBC *, db_recno_t *, db_lockmode_t, u_int32_t, int *));
int __qam_pitem __P((DBC *, QPAGE *, u_int32_t, db_recno_t, DBT *));
int __qam_append __P((DBC *, DBT *, DBT *));
int __qamc_dup __P((DBC *, DBC *));
int __qamc_init __P((DBC *));
int __qam_truncate __P((DBC *, u_int32_t *));
int __qam_delete __P((DBC *, DBT *));
int __qam_incfirst_read __P((ENV *, DB **, void *, void *, __qam_incfirst_args **));
int __qam_incfirst_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_recno_t, db_pgno_t));
int __qam_mvptr_read __P((ENV *, DB **, void *, void *, __qam_mvptr_args **));
int __qam_mvptr_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, db_recno_t, db_recno_t, db_recno_t, db_recno_t, DB_LSN *, db_pgno_t));
int __qam_del_read __P((ENV *, DB **, void *, void *, __qam_del_args **));
int __qam_del_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, u_int32_t, db_recno_t));
int __qam_add_read __P((ENV *, DB **, void *, void *, __qam_add_args **));
int __qam_add_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, u_int32_t, db_recno_t, const DBT *, u_int32_t, const DBT *));
int __qam_delext_read __P((ENV *, DB **, void *, void *, __qam_delext_args **));
int __qam_delext_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, db_pgno_t, u_int32_t, db_recno_t, const DBT *));
int __qam_init_recover __P((ENV *, DB_DISTAB *));
int __qam_incfirst_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_mvptr_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_del_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_add_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_delext_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_init_print __P((ENV *, DB_DISTAB *));
int __qam_mswap __P((ENV *, PAGE *));
int __qam_pgin_out __P((ENV *, db_pgno_t, void *, DBT *));
int __qam_fprobe __P((DBC *, db_pgno_t, void *, qam_probe_mode, DB_CACHE_PRIORITY, u_int32_t));
int __qam_fclose __P((DB *, db_pgno_t));
int __qam_fremove __P((DB *, db_pgno_t));
int __qam_sync __P((DB *));
int __qam_gen_filelist __P((DB *, DB_THREAD_INFO *, QUEUE_FILELIST **));
int __qam_extent_names __P((ENV *, char *, char ***));
void __qam_exid __P((DB *, u_int8_t *, u_int32_t));
int __qam_nameop __P((DB *, DB_TXN *, const char *, qam_name_op));
int __qam_db_create __P((DB *));
int __qam_db_close __P((DB *, u_int32_t));
int __qam_get_extentsize __P((DB *, u_int32_t *));
int __queue_pageinfo __P((DB *, db_pgno_t *, db_pgno_t *, int *, int, u_int32_t));
int __db_prqueue __P((DB *, u_int32_t));
int __qam_remove __P((DB *, DB_TXN *, const char *, const char *));
int __qam_rename __P((DB *, DB_TXN *, const char *, const char *, const char *));
void __qam_map_flags __P((DB *, u_int32_t *, u_int32_t *));
int __qam_set_flags __P((DB *, u_int32_t *flagsp));
int __qam_open __P((DB *, DB_THREAD_INFO *, DB_TXN *, const char *, db_pgno_t, int, u_int32_t));
int __qam_set_ext_data __P((DB*, const char *));
int __qam_metachk __P((DB *, const char *, QMETA *));
int __qam_new_file __P((DB *, DB_THREAD_INFO *, DB_TXN *, DB_FH *, const char *));
int __qam_incfirst_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_mvptr_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_del_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_delext_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_add_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_stat __P((DBC *, void *, u_int32_t));
int __qam_stat_print __P((DBC *, u_int32_t));
int __db_no_queue_am __P((ENV *));
int __qam_31_qammeta __P((DB *, char *, u_int8_t *));
int __qam_32_qammeta __P((DB *, char *, u_int8_t *));
int __qam_vrfy_meta __P((DB *, VRFY_DBINFO *, QMETA *, db_pgno_t, u_int32_t));
int __qam_vrfy_data __P((DB *, VRFY_DBINFO *, QPAGE *, db_pgno_t, u_int32_t));
int __qam_vrfy_structure __P((DB *, VRFY_DBINFO *, u_int32_t));
int __qam_vrfy_walkqueue __P((DB *, VRFY_DBINFO *, void *, int (*)(void *, const void *), u_int32_t));
int __qam_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, PAGE *, void *, int (*)(void *, const void *), u_int32_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_qam_ext_h_ */

81
dbinc_auto/rep_auto.h Normal file
View File

@@ -0,0 +1,81 @@
/* Do not edit: automatically built by gen_msg.awk. */
#ifndef __rep_AUTO_H
#define __rep_AUTO_H
/*
* Message sizes are simply the sum of field sizes (not
* counting variable size parts, when DBTs are present),
* and may be different from struct sizes due to padding.
*/
#define __REP_BULK_SIZE 16
typedef struct ___rep_bulk_args {
u_int32_t len;
DB_LSN lsn;
DBT bulkdata;
} __rep_bulk_args;
#define __REP_CONTROL_SIZE 36
typedef struct ___rep_control_args {
u_int32_t rep_version;
u_int32_t log_version;
DB_LSN lsn;
u_int32_t rectype;
u_int32_t gen;
u_int32_t msg_sec;
u_int32_t msg_nsec;
u_int32_t flags;
} __rep_control_args;
#define __REP_EGEN_SIZE 4
typedef struct ___rep_egen_args {
u_int32_t egen;
} __rep_egen_args;
#define __REP_FILEINFO_SIZE 36
typedef struct ___rep_fileinfo_args {
u_int32_t pgsize;
db_pgno_t pgno;
db_pgno_t max_pgno;
u_int32_t filenum;
u_int32_t finfo_flags;
u_int32_t type;
u_int32_t db_flags;
DBT uid;
DBT info;
} __rep_fileinfo_args;
#define __REP_GRANT_INFO_SIZE 8
typedef struct ___rep_grant_info_args {
u_int32_t msg_sec;
u_int32_t msg_nsec;
} __rep_grant_info_args;
#define __REP_LOGREQ_SIZE 8
typedef struct ___rep_logreq_args {
DB_LSN endlsn;
} __rep_logreq_args;
#define __REP_NEWFILE_SIZE 4
typedef struct ___rep_newfile_args {
u_int32_t version;
} __rep_newfile_args;
#define __REP_UPDATE_SIZE 16
typedef struct ___rep_update_args {
DB_LSN first_lsn;
u_int32_t first_vers;
u_int32_t num_files;
} __rep_update_args;
#define __REP_VOTE_INFO_SIZE 20
typedef struct ___rep_vote_info_args {
u_int32_t egen;
u_int32_t nsites;
u_int32_t nvotes;
u_int32_t priority;
u_int32_t tiebreaker;
} __rep_vote_info_args;
#define __REP_MAXMSG_SIZE 36
#endif

124
dbinc_auto/rep_ext.h Normal file
View File

@@ -0,0 +1,124 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _rep_ext_h_
#define _rep_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __rep_bulk_marshal __P((ENV *, __rep_bulk_args *, u_int8_t *, size_t, size_t *));
int __rep_bulk_unmarshal __P((ENV *, __rep_bulk_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_control_marshal __P((ENV *, __rep_control_args *, u_int8_t *, size_t, size_t *));
int __rep_control_unmarshal __P((ENV *, __rep_control_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_egen_marshal __P((ENV *, __rep_egen_args *, u_int8_t *, size_t, size_t *));
int __rep_egen_unmarshal __P((ENV *, __rep_egen_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_fileinfo_marshal __P((ENV *, u_int32_t, __rep_fileinfo_args *, u_int8_t *, size_t, size_t *));
int __rep_fileinfo_unmarshal __P((ENV *, u_int32_t, __rep_fileinfo_args **, u_int8_t *, size_t, u_int8_t **));
int __rep_grant_info_marshal __P((ENV *, __rep_grant_info_args *, u_int8_t *, size_t, size_t *));
int __rep_grant_info_unmarshal __P((ENV *, __rep_grant_info_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_logreq_marshal __P((ENV *, __rep_logreq_args *, u_int8_t *, size_t, size_t *));
int __rep_logreq_unmarshal __P((ENV *, __rep_logreq_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_newfile_marshal __P((ENV *, __rep_newfile_args *, u_int8_t *, size_t, size_t *));
int __rep_newfile_unmarshal __P((ENV *, __rep_newfile_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_update_marshal __P((ENV *, u_int32_t, __rep_update_args *, u_int8_t *, size_t, size_t *));
int __rep_update_unmarshal __P((ENV *, u_int32_t, __rep_update_args **, u_int8_t *, size_t, u_int8_t **));
int __rep_vote_info_marshal __P((ENV *, __rep_vote_info_args *, u_int8_t *, size_t, size_t *));
int __rep_vote_info_unmarshal __P((ENV *, __rep_vote_info_args *, u_int8_t *, size_t, u_int8_t **));
int __rep_update_req __P((ENV *, __rep_control_args *, int));
int __rep_page_req __P((ENV *, DB_THREAD_INFO *, int, __rep_control_args *, DBT *));
int __rep_update_setup __P((ENV *, int, __rep_control_args *, DBT *));
int __rep_bulk_page __P((ENV *, DB_THREAD_INFO *, int, __rep_control_args *, DBT *));
int __rep_page __P((ENV *, DB_THREAD_INFO *, int, __rep_control_args *, DBT *));
int __rep_page_fail __P((ENV *, DB_THREAD_INFO *, int, __rep_control_args *, DBT *));
int __rep_init_cleanup __P((ENV *, REP *, int));
int __rep_pggap_req __P((ENV *, REP *, __rep_fileinfo_args *, u_int32_t));
int __rep_finfo_alloc __P((ENV *, __rep_fileinfo_args *, __rep_fileinfo_args **));
int __rep_remove_init_file __P((ENV *));
int __rep_reset_init __P((ENV *));
int __rep_elect __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t));
int __rep_vote1 __P((ENV *, __rep_control_args *, DBT *, int));
int __rep_vote2 __P((ENV *, __rep_control_args *, DBT *, int));
int __rep_update_grant __P((ENV *, db_timespec *));
int __rep_islease_granted __P((ENV *));
int __rep_lease_table_alloc __P((ENV *, u_int32_t));
int __rep_lease_grant __P((ENV *, __rep_control_args *, DBT *, int));
int __rep_lease_check __P((ENV *, int));
int __rep_lease_refresh __P((ENV *));
int __rep_lease_expire __P((ENV *, int));
db_timeout_t __rep_lease_waittime __P((ENV *));
int __rep_allreq __P((ENV *, __rep_control_args *, int));
int __rep_log __P((ENV *, DB_THREAD_INFO *, __rep_control_args *, DBT *, time_t, DB_LSN *));
int __rep_bulk_log __P((ENV *, DB_THREAD_INFO *, __rep_control_args *, DBT *, time_t, DB_LSN *));
int __rep_logreq __P((ENV *, __rep_control_args *, DBT *, int));
int __rep_loggap_req __P((ENV *, REP *, DB_LSN *, u_int32_t));
int __rep_logready __P((ENV *, REP *, time_t, DB_LSN *));
int __rep_env_create __P((DB_ENV *));
void __rep_env_destroy __P((DB_ENV *));
int __rep_get_config __P((DB_ENV *, u_int32_t, int *));
int __rep_set_config __P((DB_ENV *, u_int32_t, int));
int __rep_start __P((DB_ENV *, DBT *, u_int32_t));
int __rep_client_dbinit __P((ENV *, int, repdb_t));
int __rep_get_limit __P((DB_ENV *, u_int32_t *, u_int32_t *));
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_get_nsites __P((DB_ENV *, u_int32_t *));
int __rep_set_priority __P((DB_ENV *, u_int32_t));
int __rep_get_priority __P((DB_ENV *, u_int32_t *));
int __rep_set_timeout __P((DB_ENV *, int, db_timeout_t));
int __rep_get_timeout __P((DB_ENV *, int, db_timeout_t *));
int __rep_get_request __P((DB_ENV *, db_timeout_t *, db_timeout_t *));
int __rep_set_request __P((DB_ENV *, db_timeout_t, 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_get_clockskew __P((DB_ENV *, u_int32_t *, u_int32_t *));
int __rep_set_clockskew __P((DB_ENV *, u_int32_t, u_int32_t));
int __rep_flush __P((DB_ENV *));
int __rep_sync __P((DB_ENV *, u_int32_t));
int __rep_process_message __P((DB_ENV *, DBT *, DBT *, int, DB_LSN *));
int __rep_apply __P((ENV *, DB_THREAD_INFO *, __rep_control_args *, DBT *, DB_LSN *, int *, DB_LSN *));
int __rep_process_txn __P((ENV *, DBT *));
int __rep_resend_req __P((ENV *, int));
int __rep_check_doreq __P((ENV *, REP *));
int __rep_open __P((ENV *));
int __rep_env_refresh __P((ENV *));
int __rep_env_close __P((ENV *));
int __rep_preclose __P((ENV *));
int __rep_closefiles __P((ENV *, int));
int __rep_write_egen __P((ENV *, u_int32_t));
int __rep_write_gen __P((ENV *, u_int32_t));
int __rep_stat_pp __P((DB_ENV *, DB_REP_STAT **, u_int32_t));
int __rep_stat_print_pp __P((DB_ENV *, u_int32_t));
int __rep_stat_print __P((ENV *, u_int32_t));
int __rep_bulk_message __P((ENV *, REP_BULK *, REP_THROTTLE *, DB_LSN *, const DBT *, u_int32_t));
int __rep_send_bulk __P((ENV *, REP_BULK *, u_int32_t));
int __rep_bulk_alloc __P((ENV *, REP_BULK *, int, uintptr_t *, u_int32_t *, u_int32_t));
int __rep_bulk_free __P((ENV *, REP_BULK *, u_int32_t));
int __rep_send_message __P((ENV *, int, u_int32_t, DB_LSN *, const DBT *, u_int32_t, u_int32_t));
int __rep_new_master __P((ENV *, __rep_control_args *, int));
int __rep_noarchive __P((ENV *));
void __rep_send_vote __P((ENV *, DB_LSN *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, int, u_int32_t, u_int32_t));
void __rep_elect_done __P((ENV *, REP *, int));
int __rep_grow_sites __P((ENV *, u_int32_t));
int __env_rep_enter __P((ENV *, int));
int __env_db_rep_exit __P((ENV *));
int __db_rep_enter __P((DB *, int, int, int));
int __op_rep_enter __P((ENV *));
int __op_rep_exit __P((ENV *));
int __rep_lockout_api __P((ENV *, REP *));
int __rep_lockout_apply __P((ENV *, REP *, u_int32_t));
int __rep_lockout_msg __P((ENV *, REP *, u_int32_t));
int __rep_send_throttle __P((ENV *, int, REP_THROTTLE *, u_int32_t, u_int32_t));
u_int32_t __rep_msg_to_old __P((u_int32_t, u_int32_t));
u_int32_t __rep_msg_from_old __P((u_int32_t, u_int32_t));
void __rep_print __P((ENV *, const char *, ...)) __attribute__ ((__format__ (__printf__, 2, 3)));
void __rep_print_message __P((ENV *, int, __rep_control_args *, char *, u_int32_t));
void __rep_fire_event __P((ENV *, u_int32_t, void *));
int __rep_verify __P((ENV *, __rep_control_args *, DBT *, int, time_t));
int __rep_verify_fail __P((ENV *, __rep_control_args *, int));
int __rep_verify_req __P((ENV *, __rep_control_args *, int));
int __rep_verify_match __P((ENV *, DB_LSN *, time_t));
int __rep_log_backup __P((ENV *, REP *, DB_LOGC *, DB_LSN *));
#if defined(__cplusplus)
}
#endif
#endif /* !_rep_ext_h_ */

35
dbinc_auto/repmgr_auto.h Normal file
View File

@@ -0,0 +1,35 @@
/* Do not edit: automatically built by gen_msg.awk. */
#ifndef __repmgr_AUTO_H
#define __repmgr_AUTO_H
/*
* Message sizes are simply the sum of field sizes (not
* counting variable size parts, when DBTs are present),
* and may be different from struct sizes due to padding.
*/
#define __REPMGR_HANDSHAKE_SIZE 6
typedef struct ___repmgr_handshake_args {
u_int16_t port;
u_int32_t priority;
} __repmgr_handshake_args;
#define __REPMGR_ACK_SIZE 12
typedef struct ___repmgr_ack_args {
u_int32_t generation;
DB_LSN lsn;
} __repmgr_ack_args;
#define __REPMGR_VERSION_PROPOSAL_SIZE 8
typedef struct ___repmgr_version_proposal_args {
u_int32_t min;
u_int32_t max;
} __repmgr_version_proposal_args;
#define __REPMGR_VERSION_CONFIRMATION_SIZE 4
typedef struct ___repmgr_version_confirmation_args {
u_int32_t version;
} __repmgr_version_confirmation_args;
#define __REPMGR_MAXMSG_SIZE 12
#endif

131
dbinc_auto/repmgr_ext.h Normal file
View File

@@ -0,0 +1,131 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _repmgr_ext_h_
#define _repmgr_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __repmgr_handshake_marshal __P((ENV *, __repmgr_handshake_args *, u_int8_t *));
int __repmgr_handshake_unmarshal __P((ENV *, __repmgr_handshake_args *, u_int8_t *, size_t, u_int8_t **));
void __repmgr_ack_marshal __P((ENV *, __repmgr_ack_args *, u_int8_t *));
int __repmgr_ack_unmarshal __P((ENV *, __repmgr_ack_args *, u_int8_t *, size_t, u_int8_t **));
void __repmgr_version_proposal_marshal __P((ENV *, __repmgr_version_proposal_args *, u_int8_t *));
int __repmgr_version_proposal_unmarshal __P((ENV *, __repmgr_version_proposal_args *, u_int8_t *, size_t, u_int8_t **));
void __repmgr_version_confirmation_marshal __P((ENV *, __repmgr_version_confirmation_args *, u_int8_t *));
int __repmgr_version_confirmation_unmarshal __P((ENV *, __repmgr_version_confirmation_args *, u_int8_t *, size_t, u_int8_t **));
int __repmgr_init_election __P((ENV *, int));
int __repmgr_become_master __P((ENV *));
int __repmgr_start __P((DB_ENV *, int, u_int32_t));
int __repmgr_close __P((ENV *));
int __repmgr_set_ack_policy __P((DB_ENV *, int));
int __repmgr_get_ack_policy __P((DB_ENV *, int *));
int __repmgr_env_create __P((ENV *, DB_REP *));
void __repmgr_env_destroy __P((ENV *, DB_REP *));
int __repmgr_stop_threads __P((ENV *));
int __repmgr_set_local_site __P((DB_ENV *, const char *, u_int, u_int32_t));
int __repmgr_add_remote_site __P((DB_ENV *, const char *, u_int, int *, u_int32_t));
void *__repmgr_msg_thread __P((void *));
int __repmgr_handle_event __P((ENV *, u_int32_t, void *));
void __repmgr_stash_generation __P((ENV *));
int __repmgr_send __P((DB_ENV *, const DBT *, const DBT *, const DB_LSN *, int, u_int32_t));
int __repmgr_send_broadcast __P((ENV *, u_int, const DBT *, const DBT *, u_int *, u_int *));
int __repmgr_send_one __P((ENV *, REPMGR_CONNECTION *, u_int, const DBT *, const DBT *, int));
int __repmgr_is_permanent __P((ENV *, const DB_LSN *));
int __repmgr_bust_connection __P((ENV *, REPMGR_CONNECTION *));
int __repmgr_cleanup_connection __P((ENV *, REPMGR_CONNECTION *));
int __repmgr_find_site __P((ENV *, const char *, u_int));
int __repmgr_pack_netaddr __P((ENV *, const char *, u_int, ADDRINFO *, repmgr_netaddr_t *));
int __repmgr_getaddr __P((ENV *, const char *, u_int, int, ADDRINFO **));
int __repmgr_add_site __P((ENV *, const char *, u_int, REPMGR_SITE **));
int __repmgr_net_create __P((DB_REP *));
int __repmgr_listen __P((ENV *));
int __repmgr_net_close __P((ENV *));
void __repmgr_net_destroy __P((ENV *, DB_REP *));
int __repmgr_thread_start __P((ENV *, REPMGR_RUNNABLE *));
int __repmgr_thread_join __P((REPMGR_RUNNABLE *));
int __repmgr_set_nonblocking __P((socket_t));
int __repmgr_wake_waiting_senders __P((ENV *));
int __repmgr_await_ack __P((ENV *, const DB_LSN *));
void __repmgr_compute_wait_deadline __P((ENV*, struct timespec *, db_timeout_t));
int __repmgr_await_drain __P((ENV *, REPMGR_CONNECTION *, db_timeout_t));
int __repmgr_alloc_cond __P((cond_var_t *));
int __repmgr_free_cond __P((cond_var_t *));
int __repmgr_init_sync __P((ENV *, DB_REP *));
int __repmgr_close_sync __P((ENV *));
int __repmgr_net_init __P((ENV *, DB_REP *));
int __repmgr_lock_mutex __P((mgr_mutex_t *));
int __repmgr_unlock_mutex __P((mgr_mutex_t *));
int __repmgr_signal __P((cond_var_t *));
int __repmgr_wake_main_thread __P((ENV*));
int __repmgr_writev __P((socket_t, db_iovec_t *, int, size_t *));
int __repmgr_readv __P((socket_t, db_iovec_t *, int, size_t *));
int __repmgr_select_loop __P((ENV *));
int __repmgr_queue_create __P((ENV *, DB_REP *));
void __repmgr_queue_destroy __P((ENV *));
int __repmgr_queue_get __P((ENV *, REPMGR_MESSAGE **));
int __repmgr_queue_put __P((ENV *, REPMGR_MESSAGE *));
int __repmgr_queue_size __P((ENV *));
void *__repmgr_select_thread __P((void *));
int __repmgr_accept __P((ENV *));
int __repmgr_compute_timeout __P((ENV *, db_timespec *));
int __repmgr_check_timeouts __P((ENV *));
int __repmgr_first_try_connections __P((ENV *));
int __repmgr_connect_site __P((ENV *, u_int eid));
int __repmgr_propose_version __P((ENV *, REPMGR_CONNECTION *));
int __repmgr_read_from_site __P((ENV *, REPMGR_CONNECTION *));
int __repmgr_write_some __P((ENV *, REPMGR_CONNECTION *));
int __repmgr_stat_pp __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
int __repmgr_stat_print_pp __P((DB_ENV *, u_int32_t));
int __repmgr_site_list __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_close __P((ENV *));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_add_remote_site __P((DB_ENV *, const char *, u_int, int *, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_get_ack_policy __P((DB_ENV *, int *));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_set_ack_policy __P((DB_ENV *, int));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_set_local_site __P((DB_ENV *, const char *, u_int, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_site_list __P((DB_ENV *, u_int *, DB_REPMGR_SITE **));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_start __P((DB_ENV *, int, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_stat_pp __P((DB_ENV *, DB_REPMGR_STAT **, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_stat_print_pp __P((DB_ENV *, u_int32_t));
#endif
#ifndef HAVE_REPLICATION_THREADS
int __repmgr_handle_event __P((ENV *, u_int32_t, void *));
#endif
int __repmgr_schedule_connection_attempt __P((ENV *, u_int, int));
void __repmgr_reset_for_reading __P((REPMGR_CONNECTION *));
int __repmgr_new_connection __P((ENV *, REPMGR_CONNECTION **, socket_t, int));
int __repmgr_new_site __P((ENV *, REPMGR_SITE**, const repmgr_netaddr_t *, int));
void __repmgr_cleanup_netaddr __P((ENV *, repmgr_netaddr_t *));
void __repmgr_iovec_init __P((REPMGR_IOVECS *));
void __repmgr_add_buffer __P((REPMGR_IOVECS *, void *, size_t));
void __repmgr_add_dbt __P((REPMGR_IOVECS *, const DBT *));
int __repmgr_update_consumed __P((REPMGR_IOVECS *, size_t));
int __repmgr_prepare_my_addr __P((ENV *, DBT *));
u_int __repmgr_get_nsites __P((DB_REP *));
void __repmgr_thread_failure __P((ENV *, int));
char *__repmgr_format_eid_loc __P((DB_REP *, int, char *));
char *__repmgr_format_site_loc __P((REPMGR_SITE *, char *));
int __repmgr_repstart __P((ENV *, u_int32_t));
int __repmgr_wsa_init __P((ENV *));
#if defined(__cplusplus)
}
#endif
#endif /* !_repmgr_ext_h_ */

129
dbinc_auto/rpc_client_ext.h Normal file
View File

@@ -0,0 +1,129 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _rpc_client_ext_h_
#define _rpc_client_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __dbcl_env_set_rpc_server __P((DB_ENV *, void *, const char *, long, long, u_int32_t));
int __dbcl_env_close_wrap __P((DB_ENV *, u_int32_t));
int __dbcl_env_open_wrap __P((DB_ENV *, const char *, u_int32_t, int));
int __dbcl_db_open_wrap __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int));
int __dbcl_refresh __P((DB_ENV *));
int __dbcl_retcopy __P((ENV *, DBT *, void *, u_int32_t, void **, u_int32_t *));
void __dbcl_txn_end __P((DB_TXN *));
void __dbcl_txn_setup __P((ENV *, DB_TXN *, DB_TXN *, u_int32_t));
void __dbcl_c_refresh __P((DBC *));
int __dbcl_c_setup __P((u_int, DB *, DBC **));
int __dbcl_dbclose_common __P((DB *));
int __dbcl_dbenv_illegal __P((DB_ENV *));
int __dbcl_env_create __P((DB_ENV *, long));
int __dbcl_env_cdsgroup_begin __P((DB_ENV *, DB_TXN **));
int __dbcl_env_close __P((DB_ENV *, u_int32_t));
int __dbcl_env_dbremove __P((DB_ENV *, DB_TXN *, const char *, const char *, u_int32_t));
int __dbcl_env_dbrename __P((DB_ENV *, DB_TXN *, const char *, const char *, const char *, u_int32_t));
int __dbcl_env_get_cachesize __P((DB_ENV *, u_int32_t *, u_int32_t *, int *));
int __dbcl_env_get_encrypt_flags __P((DB_ENV *, u_int32_t *));
int __dbcl_env_get_flags __P((DB_ENV *, u_int32_t *));
int __dbcl_env_get_home __P((DB_ENV *, const char * *));
int __dbcl_env_get_open_flags __P((DB_ENV *, u_int32_t *));
int __dbcl_env_open __P((DB_ENV *, const char *, u_int32_t, int));
int __dbcl_env_remove __P((DB_ENV *, const char *, u_int32_t));
int __dbcl_env_set_cachesize __P((DB_ENV *, u_int32_t, u_int32_t, int));
int __dbcl_env_set_encrypt __P((DB_ENV *, const char *, u_int32_t));
int __dbcl_env_set_flags __P((DB_ENV *, u_int32_t, int));
int __dbcl_env_txn_begin __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
int __dbcl_env_txn_recover __P((DB_ENV *, DB_PREPLIST *, long, long *, u_int32_t));
int __dbcl_db_create __P((DB *, DB_ENV *, u_int32_t));
int __dbcl_db_associate __P((DB *, DB_TXN *, DB *, int (*)(DB *, const DBT *, const DBT *, DBT *), u_int32_t));
int __dbcl_db_close __P((DB *, u_int32_t));
int __dbcl_db_cursor __P((DB *, DB_TXN *, DBC **, u_int32_t));
int __dbcl_db_del __P((DB *, DB_TXN *, DBT *, u_int32_t));
int __dbcl_db_get __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __dbcl_db_get_bt_minkey __P((DB *, u_int32_t *));
int __dbcl_db_get_dbname __P((DB *, const char * *, const char * *));
int __dbcl_db_get_encrypt_flags __P((DB *, u_int32_t *));
int __dbcl_db_get_flags __P((DB *, u_int32_t *));
int __dbcl_db_get_h_ffactor __P((DB *, u_int32_t *));
int __dbcl_db_get_h_nelem __P((DB *, u_int32_t *));
int __dbcl_db_get_lorder __P((DB *, int *));
int __dbcl_db_get_open_flags __P((DB *, u_int32_t *));
int __dbcl_db_get_pagesize __P((DB *, u_int32_t *));
int __dbcl_db_get_priority __P((DB *, DB_CACHE_PRIORITY *));
int __dbcl_db_get_q_extentsize __P((DB *, u_int32_t *));
int __dbcl_db_get_re_delim __P((DB *, int *));
int __dbcl_db_get_re_len __P((DB *, u_int32_t *));
int __dbcl_db_get_re_pad __P((DB *, int *));
int __dbcl_db_join __P((DB *, DBC **, DBC **, u_int32_t));
int __dbcl_db_key_range __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t));
int __dbcl_db_open __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int));
int __dbcl_db_pget __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t));
int __dbcl_db_put __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t));
int __dbcl_db_remove __P((DB *, const char *, const char *, u_int32_t));
int __dbcl_db_rename __P((DB *, const char *, const char *, const char *, u_int32_t));
int __dbcl_db_set_bt_minkey __P((DB *, u_int32_t));
int __dbcl_db_set_encrypt __P((DB *, const char *, u_int32_t));
int __dbcl_db_set_flags __P((DB *, u_int32_t));
int __dbcl_db_set_h_ffactor __P((DB *, u_int32_t));
int __dbcl_db_set_h_nelem __P((DB *, u_int32_t));
int __dbcl_db_set_lorder __P((DB *, int));
int __dbcl_db_set_pagesize __P((DB *, u_int32_t));
int __dbcl_db_set_priority __P((DB *, DB_CACHE_PRIORITY));
int __dbcl_db_set_q_extentsize __P((DB *, u_int32_t));
int __dbcl_db_set_re_delim __P((DB *, int));
int __dbcl_db_set_re_len __P((DB *, u_int32_t));
int __dbcl_db_set_re_pad __P((DB *, int));
int __dbcl_db_stat __P((DB *, DB_TXN *, void *, u_int32_t));
int __dbcl_db_sync __P((DB *, u_int32_t));
int __dbcl_db_truncate __P((DB *, DB_TXN *, u_int32_t *, u_int32_t));
int __dbcl_dbc_close __P((DBC *));
int __dbcl_dbc_count __P((DBC *, db_recno_t *, u_int32_t));
int __dbcl_dbc_del __P((DBC *, u_int32_t));
int __dbcl_dbc_dup __P((DBC *, DBC **, u_int32_t));
int __dbcl_dbc_get __P((DBC *, DBT *, DBT *, u_int32_t));
int __dbcl_dbc_get_priority __P((DBC *, DB_CACHE_PRIORITY *));
int __dbcl_dbc_pget __P((DBC *, DBT *, DBT *, DBT *, u_int32_t));
int __dbcl_dbc_put __P((DBC *, DBT *, DBT *, u_int32_t));
int __dbcl_dbc_set_priority __P((DBC *, DB_CACHE_PRIORITY));
int __dbcl_txn_abort __P((DB_TXN *));
int __dbcl_txn_commit __P((DB_TXN *, u_int32_t));
int __dbcl_txn_discard __P((DB_TXN *, u_int32_t));
int __dbcl_txn_prepare __P((DB_TXN *, u_int8_t *));
void __dbcl_dbp_init __P((DB *));
void __dbcl_dbc_init __P((DBC *));
void __dbcl_dbenv_init __P((DB_ENV *));
void __dbcl_txn_init __P((DB_TXN *));
int __dbcl_env_create_ret __P((DB_ENV *, long, __env_create_reply *));
int __dbcl_env_open_ret __P((DB_ENV *, const char *, u_int32_t, int, __env_open_reply *));
int __dbcl_env_remove_ret __P((DB_ENV *, const char *, u_int32_t, __env_remove_reply *));
int __dbcl_txn_abort_ret __P((DB_TXN *, __txn_abort_reply *));
int __dbcl_env_txn_begin_ret __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t, __env_txn_begin_reply *));
int __dbcl_env_cdsgroup_begin_ret __P((DB_ENV *, DB_TXN **, __env_cdsgroup_begin_reply *));
int __dbcl_txn_commit_ret __P((DB_TXN *, u_int32_t, __txn_commit_reply *));
int __dbcl_txn_discard_ret __P((DB_TXN *, u_int32_t, __txn_discard_reply *));
int __dbcl_env_txn_recover_ret __P((DB_ENV *, DB_PREPLIST *, long, long *, u_int32_t, __env_txn_recover_reply *));
int __dbcl_db_close_ret __P((DB *, u_int32_t, __db_close_reply *));
int __dbcl_db_create_ret __P((DB *, DB_ENV *, u_int32_t, __db_create_reply *));
int __dbcl_db_get_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t, __db_get_reply *));
int __dbcl_db_key_range_ret __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t, __db_key_range_reply *));
int __dbcl_db_open_ret __P((DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int, __db_open_reply *));
int __dbcl_db_pget_ret __P((DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t, __db_pget_reply *));
int __dbcl_db_put_ret __P((DB *, DB_TXN *, DBT *, DBT *, u_int32_t, __db_put_reply *));
int __dbcl_db_remove_ret __P((DB *, const char *, const char *, u_int32_t, __db_remove_reply *));
int __dbcl_db_rename_ret __P((DB *, const char *, const char *, const char *, u_int32_t, __db_rename_reply *));
int __dbcl_db_stat_ret __P((DB *, DB_TXN *, void *, u_int32_t, __db_stat_reply *));
int __dbcl_db_truncate_ret __P((DB *, DB_TXN *, u_int32_t *, u_int32_t, __db_truncate_reply *));
int __dbcl_db_cursor_ret __P((DB *, DB_TXN *, DBC **, u_int32_t, __db_cursor_reply *));
int __dbcl_db_join_ret __P((DB *, DBC **, DBC **, u_int32_t, __db_join_reply *));
int __dbcl_dbc_close_ret __P((DBC *, __dbc_close_reply *));
int __dbcl_dbc_count_ret __P((DBC *, db_recno_t *, u_int32_t, __dbc_count_reply *));
int __dbcl_dbc_dup_ret __P((DBC *, DBC **, u_int32_t, __dbc_dup_reply *));
int __dbcl_dbc_get_ret __P((DBC *, DBT *, DBT *, u_int32_t, __dbc_get_reply *));
int __dbcl_dbc_pget_ret __P((DBC *, DBT *, DBT *, DBT *, u_int32_t, __dbc_pget_reply *));
int __dbcl_dbc_put_ret __P((DBC *, DBT *, DBT *, u_int32_t, __dbc_put_reply *));
#if defined(__cplusplus)
}
#endif
#endif /* !_rpc_client_ext_h_ */

View File

@@ -0,0 +1,98 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _rpc_server_ext_h_
#define _rpc_server_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __env_get_cachesize_proc __P((u_int, __env_get_cachesize_reply *));
void __env_set_cachesize_proc __P((u_int, u_int32_t, u_int32_t, u_int32_t, __env_set_cachesize_reply *));
void __env_cdsgroup_begin_proc __P((u_int, __env_cdsgroup_begin_reply *));
void __env_close_proc __P((u_int, u_int32_t, __env_close_reply *));
void __env_create_proc __P((u_int32_t, __env_create_reply *));
void __env_dbremove_proc __P((u_int, u_int, char *, char *, u_int32_t, __env_dbremove_reply *));
void __env_dbrename_proc __P((u_int, u_int, char *, char *, char *, u_int32_t, __env_dbrename_reply *));
void __env_get_encrypt_flags_proc __P((u_int, __env_get_encrypt_flags_reply *));
void __env_set_encrypt_proc __P((u_int, char *, u_int32_t, __env_set_encrypt_reply *));
void __env_get_flags_proc __P((u_int, __env_get_flags_reply *));
void __env_set_flags_proc __P((u_int, u_int32_t, u_int32_t, __env_set_flags_reply *));
void __env_get_home_proc __P((u_int, __env_get_home_reply *));
void __env_get_open_flags_proc __P((u_int, __env_get_open_flags_reply *));
void __env_open_proc __P((u_int, char *, u_int32_t, u_int32_t, __env_open_reply *));
void __env_remove_proc __P((u_int, char *, u_int32_t, __env_remove_reply *));
void __txn_abort_proc __P((u_int, __txn_abort_reply *));
void __env_txn_begin_proc __P((u_int, u_int, u_int32_t, __env_txn_begin_reply *));
void __txn_commit_proc __P((u_int, u_int32_t, __txn_commit_reply *));
void __txn_discard_proc __P((u_int, u_int32_t, __txn_discard_reply *));
void __txn_prepare_proc __P((u_int, u_int8_t *, __txn_prepare_reply *));
void __env_txn_recover_proc __P((u_int, u_int32_t, u_int32_t, __env_txn_recover_reply *, int *));
void __db_associate_proc __P((u_int, u_int, u_int, u_int32_t, __db_associate_reply *));
void __db_get_bt_minkey_proc __P((u_int, __db_get_bt_minkey_reply *));
void __db_set_bt_minkey_proc __P((u_int, u_int32_t, __db_set_bt_minkey_reply *));
void __db_close_proc __P((u_int, u_int32_t, __db_close_reply *));
void __db_create_proc __P((u_int, u_int32_t, __db_create_reply *));
void __db_del_proc __P((u_int, u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_del_reply *));
void __db_get_encrypt_flags_proc __P((u_int, __db_get_encrypt_flags_reply *));
void __db_set_encrypt_proc __P((u_int, char *, u_int32_t, __db_set_encrypt_reply *));
void __db_get_q_extentsize_proc __P((u_int, __db_get_q_extentsize_reply *));
void __db_set_q_extentsize_proc __P((u_int, u_int32_t, __db_set_q_extentsize_reply *));
void __db_get_flags_proc __P((u_int, __db_get_flags_reply *));
void __db_set_flags_proc __P((u_int, u_int32_t, __db_set_flags_reply *));
void __db_get_proc __P((u_int, u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_get_reply *, int *));
void __db_get_h_ffactor_proc __P((u_int, __db_get_h_ffactor_reply *));
void __db_set_h_ffactor_proc __P((u_int, u_int32_t, __db_set_h_ffactor_reply *));
void __db_get_h_nelem_proc __P((u_int, __db_get_h_nelem_reply *));
void __db_set_h_nelem_proc __P((u_int, u_int32_t, __db_set_h_nelem_reply *));
void __db_key_range_proc __P((u_int, u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_key_range_reply *));
void __db_get_lorder_proc __P((u_int, __db_get_lorder_reply *));
void __db_set_lorder_proc __P((u_int, u_int32_t, __db_set_lorder_reply *));
void __db_get_dbname_proc __P((u_int, __db_get_dbname_reply *));
void __db_get_open_flags_proc __P((u_int, __db_get_open_flags_reply *));
void __db_open_proc __P((u_int, u_int, char *, char *, u_int32_t, u_int32_t, u_int32_t, __db_open_reply *));
void __db_get_pagesize_proc __P((u_int, __db_get_pagesize_reply *));
void __db_set_pagesize_proc __P((u_int, u_int32_t, __db_set_pagesize_reply *));
void __db_pget_proc __P((u_int, u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_pget_reply *, int *));
void __db_put_proc __P((u_int, u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_put_reply *, int *));
void __db_get_priority_proc __P((u_int, __db_get_priority_reply *));
void __db_set_priority_proc __P((u_int, u_int32_t, __db_set_priority_reply *));
void __db_get_re_delim_proc __P((u_int, __db_get_re_delim_reply *));
void __db_set_re_delim_proc __P((u_int, u_int32_t, __db_set_re_delim_reply *));
void __db_get_re_len_proc __P((u_int, __db_get_re_len_reply *));
void __db_set_re_len_proc __P((u_int, u_int32_t, __db_set_re_len_reply *));
void __db_get_re_pad_proc __P((u_int, __db_get_re_pad_reply *));
void __db_set_re_pad_proc __P((u_int, u_int32_t, __db_set_re_pad_reply *));
void __db_remove_proc __P((u_int, char *, char *, u_int32_t, __db_remove_reply *));
void __db_rename_proc __P((u_int, char *, char *, char *, u_int32_t, __db_rename_reply *));
void __db_stat_proc __P((u_int, u_int, u_int32_t, __db_stat_reply *, int *));
void __db_sync_proc __P((u_int, u_int32_t, __db_sync_reply *));
void __db_truncate_proc __P((u_int, u_int, u_int32_t, __db_truncate_reply *));
void __db_cursor_proc __P((u_int, u_int, u_int32_t, __db_cursor_reply *));
void __db_join_proc __P((u_int, u_int32_t *, u_int32_t, u_int32_t, __db_join_reply *));
void __dbc_close_proc __P((u_int, __dbc_close_reply *));
void __dbc_count_proc __P((u_int, u_int32_t, __dbc_count_reply *));
void __dbc_del_proc __P((u_int, u_int32_t, __dbc_del_reply *));
void __dbc_dup_proc __P((u_int, u_int32_t, __dbc_dup_reply *));
void __dbc_get_proc __P((u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __dbc_get_reply *, int *));
void __dbc_pget_proc __P((u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __dbc_pget_reply *, int *));
void __dbc_put_proc __P((u_int, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __dbc_put_reply *, int *));
void __dbc_get_priority_proc __P((u_int, __dbc_get_priority_reply *));
void __dbc_set_priority_proc __P((u_int, u_int32_t, __dbc_set_priority_reply *));
void __dbsrv_settimeout __P((ct_entry *, u_int32_t));
void __dbsrv_timeout __P((int));
void __dbclear_ctp __P((ct_entry *));
void __dbdel_ctp __P((ct_entry *));
ct_entry *new_ct_ent __P((int *));
ct_entry *get_tableent __P((long));
ct_entry *__dbsrv_sharedb __P((ct_entry *, const char *, const char *, DBTYPE, u_int32_t));
ct_entry *__dbsrv_shareenv __P((ct_entry *, home_entry *, u_int32_t));
void __dbsrv_active __P((ct_entry *));
int __db_close_int __P((long, u_int32_t));
int __dbc_close_int __P((ct_entry *));
int __env_close_int __P((long, u_int32_t, int));
home_entry *get_fullhome __P((char *));
#if defined(__cplusplus)
}
#endif
#endif /* !_rpc_server_ext_h_ */

17
dbinc_auto/sequence_ext.h Normal file
View File

@@ -0,0 +1,17 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _sequence_ext_h_
#define _sequence_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __seq_stat __P((DB_SEQUENCE *, DB_SEQUENCE_STAT **, u_int32_t));
int __seq_stat_print __P((DB_SEQUENCE *, u_int32_t));
const FN * __db_get_seq_flags_fn __P((void));
const FN * __db_get_seq_flags_fn __P((void));
#if defined(__cplusplus)
}
#endif
#endif /* !_sequence_ext_h_ */

106
dbinc_auto/tcl_ext.h Normal file
View File

@@ -0,0 +1,106 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _tcl_ext_h_
#define _tcl_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int bdb_HCommand __P((Tcl_Interp *, int, Tcl_Obj * CONST*));
#if DB_DBM_HSEARCH != 0
int bdb_NdbmOpen __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DBM **));
#endif
#if DB_DBM_HSEARCH != 0
int bdb_DbmCommand __P((Tcl_Interp *, int, Tcl_Obj * CONST*, int, DBM *));
#endif
int ndbm_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
void _DbInfoDelete __P((Tcl_Interp *, DBTCL_INFO *));
int db_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
int tcl_CompactStat __P((Tcl_Interp *, DBTCL_INFO *));
int tcl_rep_send __P((DB_ENV *, const DBT *, const DBT *, const DB_LSN *, int, u_int32_t));
int dbc_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
int env_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
int tcl_EnvRemove __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
int tcl_EnvIdReset __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_EnvLsnReset __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_EnvVerbose __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *, Tcl_Obj *));
int tcl_EnvAttr __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_EventNotify __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *, DBTCL_INFO *));
int tcl_EnvSetFlags __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *, Tcl_Obj *));
int tcl_EnvTest __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_EnvGetEncryptFlags __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
void tcl_EnvSetErrfile __P((Tcl_Interp *, DB_ENV *, DBTCL_INFO *, char *));
int tcl_EnvSetErrpfx __P((Tcl_Interp *, DB_ENV *, DBTCL_INFO *, char *));
DBTCL_INFO *_NewInfo __P((Tcl_Interp *, void *, char *, enum INFOTYPE));
void *_NameToPtr __P((CONST char *));
DBTCL_INFO *_PtrToInfo __P((CONST void *));
DBTCL_INFO *_NameToInfo __P((CONST char *));
void _SetInfoData __P((DBTCL_INFO *, void *));
void _DeleteInfo __P((DBTCL_INFO *));
int _SetListElem __P((Tcl_Interp *, Tcl_Obj *, void *, u_int32_t, void *, u_int32_t));
int _SetListElemInt __P((Tcl_Interp *, Tcl_Obj *, void *, long));
int _SetListElemWideInt __P((Tcl_Interp *, Tcl_Obj *, void *, int64_t));
int _SetListRecnoElem __P((Tcl_Interp *, Tcl_Obj *, db_recno_t, u_char *, u_int32_t));
int _Set3DBTList __P((Tcl_Interp *, Tcl_Obj *, DBT *, int, DBT *, int, DBT *));
int _SetMultiList __P((Tcl_Interp *, Tcl_Obj *, DBT *, DBT*, DBTYPE, u_int32_t));
int _GetGlobPrefix __P((char *, char **));
int _ReturnSetup __P((Tcl_Interp *, int, int, char *));
int _ErrorSetup __P((Tcl_Interp *, int, char *));
void _ErrorFunc __P((const DB_ENV *, CONST char *, const char *));
void _EventFunc __P((DB_ENV *, u_int32_t, void *));
int _GetLsn __P((Tcl_Interp *, Tcl_Obj *, DB_LSN *));
int _GetUInt32 __P((Tcl_Interp *, Tcl_Obj *, u_int32_t *));
Tcl_Obj *_GetFlagsList __P((Tcl_Interp *, u_int32_t, const FN *));
void _debug_check __P((void));
int _CopyObjBytes __P((Tcl_Interp *, Tcl_Obj *obj, void *, u_int32_t *, int *));
int tcl_LockDetect __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LockGet __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LockStat __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LockTimeout __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LockVec __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogArchive __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogCompare __P((Tcl_Interp *, int, Tcl_Obj * CONST*));
int tcl_LogFile __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogFlush __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogGet __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogPut __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_LogStat __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int logc_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
int tcl_LogConfig __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *));
int tcl_LogGetConfig __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *));
void _MpInfoDelete __P((Tcl_Interp *, DBTCL_INFO *));
int tcl_MpSync __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_MpTrickle __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_Mp __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
int tcl_MpStat __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_RepConfig __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *));
int tcl_RepGetTwo __P((Tcl_Interp *, DB_ENV *, int));
int tcl_RepGetConfig __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *));
int tcl_RepGetTimeout __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *));
int tcl_RepElect __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepFlush __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepSync __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepLease __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepLimit __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepRequest __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepNoarchiveTimeout __P((Tcl_Interp *, DB_ENV *));
int tcl_RepTransport __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *, DBTCL_INFO *));
int tcl_RepStart __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepProcessMessage __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepStat __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepMgr __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepMgrStat __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int seq_Cmd __P((ClientData, Tcl_Interp *, int, Tcl_Obj * CONST*));
void _TxnInfoDelete __P((Tcl_Interp *, DBTCL_INFO *));
int tcl_TxnCheckpoint __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_Txn __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
int tcl_CDSGroup __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
int tcl_TxnStat __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_TxnTimeout __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_TxnRecover __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
int bdb_RandCommand __P((Tcl_Interp *, int, Tcl_Obj * CONST*));
#if defined(__cplusplus)
}
#endif
#endif /* !_tcl_ext_h_ */

81
dbinc_auto/txn_auto.h Normal file
View File

@@ -0,0 +1,81 @@
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef __txn_AUTO_H
#define __txn_AUTO_H
#define DB___txn_regop_42 10
typedef struct ___txn_regop_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t timestamp;
DBT locks;
} __txn_regop_42_args;
#define DB___txn_regop 10
typedef struct ___txn_regop_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
int32_t timestamp;
u_int32_t envid;
DBT locks;
} __txn_regop_args;
#define DB___txn_ckp_42 11
typedef struct ___txn_ckp_42_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DB_LSN ckp_lsn;
DB_LSN last_ckp;
int32_t timestamp;
u_int32_t rep_gen;
} __txn_ckp_42_args;
#define DB___txn_ckp 11
typedef struct ___txn_ckp_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
DB_LSN ckp_lsn;
DB_LSN last_ckp;
int32_t timestamp;
u_int32_t envid;
u_int32_t spare;
} __txn_ckp_args;
#define DB___txn_child 12
typedef struct ___txn_child_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t child;
DB_LSN c_lsn;
} __txn_child_args;
#define DB___txn_xa_regop 13
typedef struct ___txn_xa_regop_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t opcode;
DBT xid;
int32_t formatID;
u_int32_t gtrid;
u_int32_t bqual;
DB_LSN begin_lsn;
DBT locks;
} __txn_xa_regop_args;
#define DB___txn_recycle 14
typedef struct ___txn_recycle_args {
u_int32_t type;
DB_TXN *txnp;
DB_LSN prev_lsn;
u_int32_t min;
u_int32_t max;
} __txn_recycle_args;
#endif

96
dbinc_auto/txn_ext.h Normal file
View File

@@ -0,0 +1,96 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _txn_ext_h_
#define _txn_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __txn_begin_pp __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
int __txn_begin __P((ENV *, DB_THREAD_INFO *, DB_TXN *, DB_TXN **, u_int32_t));
int __txn_xa_begin __P((ENV *, DB_TXN *));
int __txn_recycle_id __P((ENV *));
int __txn_compensate_begin __P((ENV *, DB_TXN **));
int __txn_continue __P((ENV *, DB_TXN *, TXN_DETAIL *));
int __txn_commit __P((DB_TXN *, u_int32_t));
int __txn_abort __P((DB_TXN *));
int __txn_discard_int __P((DB_TXN *, u_int32_t flags));
int __txn_prepare __P((DB_TXN *, u_int8_t *));
u_int32_t __txn_id __P((DB_TXN *));
int __txn_get_name __P((DB_TXN *, const char **));
int __txn_set_name __P((DB_TXN *, const char *));
int __txn_set_timeout __P((DB_TXN *, db_timeout_t, u_int32_t));
int __txn_activekids __P((ENV *, u_int32_t, DB_TXN *));
int __txn_force_abort __P((ENV *, u_int8_t *));
int __txn_preclose __P((ENV *));
int __txn_reset __P((ENV *));
int __txn_regop_42_read __P((ENV *, void *, __txn_regop_42_args **));
int __txn_regop_read __P((ENV *, void *, __txn_regop_args **));
int __txn_regop_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, int32_t, u_int32_t, const DBT *));
int __txn_ckp_42_read __P((ENV *, void *, __txn_ckp_42_args **));
int __txn_ckp_read __P((ENV *, void *, __txn_ckp_args **));
int __txn_ckp_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, DB_LSN *, int32_t, u_int32_t, u_int32_t));
int __txn_child_read __P((ENV *, void *, __txn_child_args **));
int __txn_child_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, DB_LSN *));
int __txn_xa_regop_read __P((ENV *, void *, __txn_xa_regop_args **));
int __txn_xa_regop_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, const DBT *, int32_t, u_int32_t, u_int32_t, DB_LSN *, const DBT *));
int __txn_recycle_read __P((ENV *, void *, __txn_recycle_args **));
int __txn_recycle_log __P((ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
int __txn_init_recover __P((ENV *, DB_DISTAB *));
int __txn_regop_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_regop_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_42_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_child_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_xa_regop_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_recycle_print __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_init_print __P((ENV *, DB_DISTAB *));
int __txn_checkpoint_pp __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t));
int __txn_checkpoint __P((ENV *, u_int32_t, u_int32_t, u_int32_t));
int __txn_getactive __P((ENV *, DB_LSN *));
int __txn_getckp __P((ENV *, DB_LSN *));
int __txn_updateckp __P((ENV *, DB_LSN *));
int __txn_failchk __P((ENV *));
int __txn_env_create __P((DB_ENV *));
void __txn_env_destroy __P((DB_ENV *));
int __txn_get_tx_max __P((DB_ENV *, u_int32_t *));
int __txn_set_tx_max __P((DB_ENV *, u_int32_t));
int __txn_get_tx_timestamp __P((DB_ENV *, time_t *));
int __txn_set_tx_timestamp __P((DB_ENV *, time_t *));
int __txn_regop_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_xa_regop_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_child_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_restore_txn __P((ENV *, DB_LSN *, __txn_xa_regop_args *));
int __txn_recycle_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_regop_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_42_recover __P((ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_map_gid __P((ENV *, u_int8_t *, TXN_DETAIL **, roff_t *));
int __txn_recover_pp __P((DB_ENV *, DB_PREPLIST *, long, long *, u_int32_t));
int __txn_recover __P((ENV *, DB_PREPLIST *, long, long *, u_int32_t));
int __txn_get_prepared __P((ENV *, XID *, DB_PREPLIST *, long, long *, u_int32_t));
int __txn_openfiles __P((ENV *, DB_THREAD_INFO *, DB_LSN *, int));
int __txn_open __P((ENV *, int));
int __txn_findlastckp __P((ENV *, DB_LSN *, DB_LSN *));
int __txn_env_refresh __P((ENV *));
u_int32_t __txn_region_mutex_count __P((ENV *));
int __txn_id_set __P((ENV *, u_int32_t, u_int32_t));
int __txn_oldest_reader __P((ENV *, DB_LSN *));
int __txn_add_buffer __P((ENV *, TXN_DETAIL *));
int __txn_remove_buffer __P((ENV *, TXN_DETAIL *, db_mutex_t));
int __txn_stat_pp __P((DB_ENV *, DB_TXN_STAT **, u_int32_t));
int __txn_stat_print_pp __P((DB_ENV *, u_int32_t));
int __txn_stat_print __P((ENV *, u_int32_t));
int __txn_closeevent __P((ENV *, DB_TXN *, DB *));
int __txn_remevent __P((ENV *, DB_TXN *, const char *, u_int8_t *, int));
void __txn_remrem __P((ENV *, DB_TXN *, const char *));
int __txn_lockevent __P((ENV *, DB_TXN *, DB *, DB_LOCK *, DB_LOCKER *));
void __txn_remlock __P((ENV *, DB_TXN *, DB_LOCK *, DB_LOCKER *));
int __txn_doevents __P((ENV *, DB_TXN *, int, int));
int __txn_record_fname __P((ENV *, DB_TXN *, FNAME *));
int __txn_dref_fname __P((ENV *, DB_TXN *));
#if defined(__cplusplus)
}
#endif
#endif /* !_txn_ext_h_ */

21
dbinc_auto/xa_ext.h Normal file
View File

@@ -0,0 +1,21 @@
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _xa_ext_h_
#define _xa_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __xa_get_txn __P((ENV *, DB_TXN **, int));
int __db_xa_create __P((DB *));
int __db_rmid_to_env __P((int, ENV **));
int __db_xid_to_txn __P((ENV *, XID *, roff_t *));
int __db_map_rmid __P((int, ENV *));
int __db_unmap_rmid __P((int));
int __db_map_xid __P((ENV *, XID *, TXN_DETAIL *));
void __db_unmap_xid __P((ENV *, XID *, size_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_xa_ext_h_ */