Commit 0cfa328e authored by unknown's avatar unknown

Merge work:/home/bk/mysql-4.1

into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1

parents 79f8a525 dbbcc422
/* 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_cmp __P((DB *, 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_ENV *, DB *, db_pgno_t, void *, DBT *));
int __bam_pgout __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
int __bam_mswap __P((PAGE *));
void __bam_cprint __P((DBC *));
int __bam_ca_delete __P((DB *, db_pgno_t, u_int32_t, int));
int __ram_ca_delete __P((DB *, db_pgno_t));
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));
void __bam_ca_undosplit __P((DB *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t));
int __bam_c_init __P((DBC *, DBTYPE));
int __bam_c_refresh __P((DBC *));
int __bam_c_count __P((DBC *, db_recno_t *));
int __bam_c_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 __bam_c_rget __P((DBC *, DBT *));
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 *, EPG *));
int __bam_db_create __P((DB *));
int __bam_db_close __P((DB *));
int __bam_set_flags __P((DB *, u_int32_t *flagsp));
int __ram_set_flags __P((DB *, u_int32_t *flagsp));
int __bam_open __P((DB *, 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_TXN *, db_pgno_t, u_int32_t));
int __bam_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
int __bam_new_subdb __P((DB *, DB *, 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((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rsplit_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_adj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cadjust_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cdel_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_repl_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_root_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_curadj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rcuradj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_reclaim __P((DB *, DB_TXN *));
int __bam_truncate __P((DB *, DB_TXN *, u_int32_t *));
int __ram_open __P((DB *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
int __ram_append __P((DBC *, DBT *, DBT *));
int __ram_c_del __P((DBC *));
int __ram_c_get __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
int __ram_c_put __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
int __ram_ca __P((DBC *, ca_recno_arg));
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_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((DB_ENV *, BTREE_CURSOR *));
int __bam_split __P((DBC *, void *, db_pgno_t *));
int __bam_copy __P((DB *, PAGE *, PAGE *, u_int32_t, u_int32_t));
int __bam_stat __P((DB *, void *, u_int32_t));
int __bam_traverse __P((DBC *, db_lockmode_t, db_pgno_t, int (*)(DB *, PAGE *, void *, int *), void *));
int __bam_stat_callback __P((DB *, PAGE *, void *, int *));
int __bam_key_range __P((DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t));
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 *, 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_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_split_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_split_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_split_read __P((DB_ENV *, void *, __bam_split_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_rsplit_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rsplit_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rsplit_read __P((DB_ENV *, void *, __bam_rsplit_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_adj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_adj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_adj_read __P((DB_ENV *, void *, __bam_adj_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_cadjust_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cadjust_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cadjust_read __P((DB_ENV *, void *, __bam_cadjust_args **));
int __bam_cdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t));
int __bam_cdel_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_cdel_read __P((DB_ENV *, void *, __bam_cdel_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_repl_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_repl_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_repl_read __P((DB_ENV *, void *, __bam_repl_args **));
int __bam_root_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, DB_LSN *));
int __bam_root_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_root_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_root_read __P((DB_ENV *, void *, __bam_root_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_curadj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_curadj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_curadj_read __P((DB_ENV *, void *, __bam_curadj_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_rcuradj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rcuradj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __bam_rcuradj_read __P((DB_ENV *, void *, __bam_rcuradj_args **));
int __bam_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __bam_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __bam_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
#if defined(__cplusplus)
}
#endif
#endif /* !_btree_ext_h_ */
/* 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_GETCWD
char *getcwd __P((char *, size_t));
#endif
#ifndef HAVE_GETOPT
int getopt __P((int, char * const *, const char *));
#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_RAISE
int raise __P((int));
#endif
#ifndef HAVE_SNPRINTF
int snprintf __P((char *, size_t, const char *, ...));
#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_STRDUP
char *strdup __P((const char *));
#endif
#ifndef HAVE_STRERROR
char *strerror __P((int));
#endif
#ifndef HAVE_VSNPRINTF
int vsnprintf __P((char *, size_t, const char *, va_list));
#endif
#if defined(__cplusplus)
}
#endif
#endif /* !_clib_ext_h_ */
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _common_ext_h_
#define _common_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __db_isbigendian __P((void));
int __db_byteorder __P((DB_ENV *, int));
int __db_fchk __P((DB_ENV *, const char *, u_int32_t, u_int32_t));
int __db_fcchk __P((DB_ENV *, const char *, u_int32_t, u_int32_t, u_int32_t));
int __db_ferr __P((const DB_ENV *, const char *, int));
void __db_pgerr __P((DB *, db_pgno_t, int));
int __db_pgfmt __P((DB_ENV *, db_pgno_t));
int __db_eopnotsup __P((const DB_ENV *));
#ifdef DIAGNOSTIC
void __db_assert __P((const char *, const char *, int));
#endif
int __db_panic_msg __P((DB_ENV *));
int __db_panic __P((DB_ENV *, int));
void __db_err __P((const DB_ENV *, const char *, ...));
void __db_errcall __P((const DB_ENV *, int, int, const char *, va_list));
void __db_errfile __P((const DB_ENV *, int, int, const char *, va_list));
void __db_logmsg __P((const DB_ENV *, DB_TXN *, const char *, u_int32_t, const char *, ...));
int __db_unknown_flag __P((DB_ENV *, char *, u_int32_t));
int __db_unknown_type __P((DB_ENV *, char *, DBTYPE));
int __db_check_txn __P((DB *, DB_TXN *, u_int32_t, int));
int __db_not_txn_env __P((DB_ENV *));
int __db_getlong __P((DB *, const char *, char *, long, long, long *));
int __db_getulong __P((DB *, 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));
int __db_util_arg __P((char *, char *, int *, char ***));
int __db_util_cache __P((DB_ENV *, 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));
#if defined(__cplusplus)
}
#endif
#endif /* !_common_ext_h_ */
This diff is collapsed.
This diff is collapsed.
/* 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 *, u_int32_t));
int __dbreg_teardown __P((DB *));
int __dbreg_new_id __P((DB *, DB_TXN *));
int __dbreg_assign_id __P((DB *, int32_t));
int __dbreg_revoke_id __P((DB *, int));
int __dbreg_close_id __P((DB *, DB_TXN *));
int __dbreg_register_log __P((DB_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_register_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __dbreg_register_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __dbreg_register_read __P((DB_ENV *, void *, __dbreg_register_args **));
int __dbreg_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __dbreg_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __dbreg_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __dbreg_register_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __dbreg_add_dbentry __P((DB_ENV *, DB_LOG *, DB *, int32_t));
void __dbreg_rem_dbentry __P((DB_LOG *, int32_t));
int __dbreg_open_files __P((DB_ENV *));
int __dbreg_close_files __P((DB_ENV *));
int __dbreg_nofiles __P((DB_ENV *));
int __dbreg_id_to_db __P((DB_ENV *, DB_TXN *, DB **, int32_t, int));
int __dbreg_id_to_db_int __P((DB_ENV *, DB_TXN *, DB **, int32_t, int, 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((DB_ENV *, u_int8_t *, char **));
int __dbreg_do_open __P((DB_ENV *, DB_TXN *, DB_LOG *, u_int8_t *, char *, DBTYPE, int32_t, db_pgno_t, void *, u_int32_t));
int __dbreg_lazy_id __P((DB *));
int __dbreg_push_id __P((DB_ENV *, int32_t));
int __dbreg_pop_id __P((DB_ENV *, int32_t *));
int __dbreg_pluck_id __P((DB_ENV *, int32_t));
void __dbreg_print_dblist __P((DB_ENV *));
#if defined(__cplusplus)
}
#endif
#endif /* !_dbreg_ext_h_ */
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _env_ext_h_
#define _env_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
void __db_shalloc_init __P((void *, size_t));
int __db_shalloc_size __P((size_t, size_t));
int __db_shalloc __P((void *, size_t, size_t, void *));
void __db_shalloc_free __P((void *, void *));
size_t __db_shsizeof __P((void *));
void __db_shalloc_dump __P((void *, FILE *));
int __db_tablesize __P((u_int32_t));
void __db_hashinit __P((void *, u_int32_t));
int __db_fileinit __P((DB_ENV *, DB_FH *, size_t, int));
int __db_overwrite __P((DB_ENV *, const char *));
int __db_mi_env __P((DB_ENV *, const char *));
int __db_mi_open __P((DB_ENV *, const char *, int));
int __db_env_config __P((DB_ENV *, char *, u_int32_t));
int __dbenv_open __P((DB_ENV *, const char *, u_int32_t, int));
int __dbenv_remove __P((DB_ENV *, const char *, u_int32_t));
int __dbenv_close __P((DB_ENV *, u_int32_t));
int __db_appname __P((DB_ENV *, APPNAME, const char *, u_int32_t, DB_FH *, char **));
int __db_home __P((DB_ENV *, const char *, u_int32_t));
int __db_apprec __P((DB_ENV *, DB_LSN *, u_int32_t));
int __env_openfiles __P((DB_ENV *, DB_LOGC *, void *, DBT *, DB_LSN *, DB_LSN *, double, int));
int __db_e_attach __P((DB_ENV *, u_int32_t *));
int __db_e_detach __P((DB_ENV *, int));
int __db_e_remove __P((DB_ENV *, u_int32_t));
int __db_e_stat __P((DB_ENV *, REGENV *, REGION *, int *, u_int32_t));
int __db_r_attach __P((DB_ENV *, REGINFO *, size_t));
int __db_r_detach __P((DB_ENV *, REGINFO *, int));
#if defined(__cplusplus)
}
#endif
#endif /* !_env_ext_h_ */
/* 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_ */
/* 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_ */
/* 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_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_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_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_map db_env_set_func_map@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_sleep db_env_set_func_sleep@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_unlink db_env_set_func_unlink@DB_VERSION_UNIQUE_NAME@
#define db_env_set_func_unmap db_env_set_func_unmap@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@
#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_dbrdonly __db_dbm_dbrdonly@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_delete __db_dbm_delete@DB_VERSION_UNIQUE_NAME@
#define __db_dbm_dirf __db_dbm_dirf@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_pagf __db_dbm_pagf@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_ */
/* 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_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_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_ioinfo __P((int (*)(const char *, int, u_int32_t *, u_int32_t *, u_int32_t *)));
int db_env_set_func_malloc __P((void *(*)(size_t)));
int db_env_set_func_map __P((int (*)(char *, size_t, int, int, void **)));
int db_env_set_func_open __P((int (*)(const char *, int, ...)));
int db_env_set_func_read __P((ssize_t (*)(int, void *, size_t)));
int db_env_set_func_realloc __P((void *(*)(void *, size_t)));
int db_env_set_func_rename __P((int (*)(const char *, const char *)));
int db_env_set_func_seek __P((int (*)(int, size_t, db_pgno_t, u_int32_t, int, int)));
int db_env_set_func_sleep __P((int (*)(u_long, u_long)));
int db_env_set_func_unlink __P((int (*)(const char *)));
int db_env_set_func_unmap __P((int (*)(void *, size_t)));
int db_env_set_func_write __P((ssize_t (*)(int, const void *, size_t)));
int db_env_set_func_yield __P((int (*)(void)));
int txn_abort __P((DB_TXN *));
int txn_begin __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
int txn_commit __P((DB_TXN *, 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_dbrdonly __P((void));
int __db_dbm_delete __P((datum));
int __db_dbm_dirf __P((void));
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_pagf __P((void));
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_ */
/* 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_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t));
int __fop_create_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_create_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_create_read __P((DB_ENV *, void *, __fop_create_args **));
int __fop_remove_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, u_int32_t));
int __fop_remove_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_remove_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_remove_read __P((DB_ENV *, void *, __fop_remove_args **));
int __fop_write_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, u_int32_t, u_int32_t, const DBT *, u_int32_t));
int __fop_write_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_write_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_write_read __P((DB_ENV *, void *, __fop_write_args **));
int __fop_rename_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t));
int __fop_rename_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_read __P((DB_ENV *, void *, __fop_rename_args **));
int __fop_file_remove_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, const DBT *, const DBT *, const DBT *, u_int32_t, u_int32_t));
int __fop_file_remove_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_file_remove_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_file_remove_read __P((DB_ENV *, void *, __fop_file_remove_args **));
int __fop_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __fop_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __fop_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __fop_create __P((DB_ENV *, DB_TXN *, DB_FH *, const char *, APPNAME, int));
int __fop_remove __P((DB_ENV *, DB_TXN *, u_int8_t *, const char *, APPNAME));
int __fop_write __P((DB_ENV *, DB_TXN *, const char *, APPNAME, DB_FH *, u_int32_t, u_int8_t *, u_int32_t, u_int32_t));
int __fop_rename __P((DB_ENV *, DB_TXN *, const char *, const char *, u_int8_t *, APPNAME));
int __fop_create_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_remove_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_write_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_rename_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_file_remove_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __fop_lock_handle __P((DB_ENV *, DB *, u_int32_t, db_lockmode_t, DB_LOCK *, u_int32_t));
int __fop_file_setup __P((DB *, DB_TXN *, const char *, int, u_int32_t, u_int32_t *));
int __fop_subdb_setup __P((DB *, 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((DB_ENV *, const char *, u_int8_t *, size_t, DB_FH *, int, u_int32_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_ */
/* 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 __ham_c_init __P((DBC *));
int __ham_c_count __P((DBC *, db_recno_t *));
int __ham_c_dup __P((DBC *, DBC *));
u_int32_t __ham_call_hash __P((DBC *, u_int8_t *, int32_t));
int __ham_init_dbt __P((DB_ENV *, DBT *, u_int32_t, void **, u_int32_t *));
int __ham_c_update __P((DBC *, u_int32_t, int, int));
int __ham_get_clist __P((DB *, db_pgno_t, u_int32_t, DBC ***));
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_insdel_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_insdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_insdel_read __P((DB_ENV *, void *, __ham_insdel_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_newpage_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_newpage_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_newpage_read __P((DB_ENV *, void *, __ham_newpage_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_splitdata_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_splitdata_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_splitdata_read __P((DB_ENV *, void *, __ham_splitdata_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_replace_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_replace_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_replace_read __P((DB_ENV *, void *, __ham_replace_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_copypage_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_copypage_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_copypage_read __P((DB_ENV *, void *, __ham_copypage_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));
int __ham_metagroup_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_read __P((DB_ENV *, void *, __ham_metagroup_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));
int __ham_groupalloc_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_read __P((DB_ENV *, void *, __ham_groupalloc_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_curadj_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_curadj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_curadj_read __P((DB_ENV *, void *, __ham_curadj_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_chgpg_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_chgpg_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_chgpg_read __P((DB_ENV *, void *, __ham_chgpg_args **));
int __ham_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __ham_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __ham_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __ham_pgin __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
int __ham_pgout __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
int __ham_mswap __P((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((DB_ENV *, const DBT *, DBT *d, void **, u_int32_t *));
void __ham_dsearch __P((DBC *, DBT *, u_int32_t *, int *, u_int32_t));
void __ham_cprint __P((DBC *));
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 *));
int __ham_db_create __P((DB *));
int __ham_db_close __P((DB *));
int __ham_open __P((DB *, 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_TXN *, DB_FH *, const char *));
int __ham_new_subdb __P((DB *, DB *, DB_TXN *));
int __ham_item __P((DBC *, db_lockmode_t, db_pgno_t *));
int __ham_item_reset __P((DBC *));
void __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 *));
void __ham_putitem __P((DB *, PAGE *p, const DBT *, int));
void __ham_reputpair __P((DB *, PAGE *, u_int32_t, const DBT *, const DBT *));
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, int32_t, DBT *));
int __ham_split_page __P((DBC *, u_int32_t, u_int32_t));
int __ham_add_el __P((DBC *, const DBT *, const DBT *, int));
void __ham_copy_item __P((DB *, PAGE *, u_int32_t, PAGE *));
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));
int __ham_lock_bucket __P((DBC *, db_lockmode_t));
void __ham_dpair __P((DB *, PAGE *, u_int32_t));
int __ham_insdel_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_newpage_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_replace_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_splitdata_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_copypage_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_metagroup_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_groupalloc_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_curadj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_chgpg_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __ham_reclaim __P((DB *, DB_TXN *txn));
int __ham_truncate __P((DB *, DB_TXN *txn, u_int32_t *));
int __ham_stat __P((DB *, void *, u_int32_t));
int __ham_traverse __P((DBC *, db_lockmode_t, int (*)(DB *, PAGE *, void *, int *), void *, int));
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_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_ */
/* 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((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((DB_ENV *, 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_ */
/* 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_id __P((DB_ENV *, u_int32_t *));
int __lock_id_free __P((DB_ENV *, u_int32_t));
int __lock_vec __P((DB_ENV *, u_int32_t, u_int32_t, DB_LOCKREQ *, int, DB_LOCKREQ **));
int __lock_get __P((DB_ENV *, u_int32_t, u_int32_t, const DBT *, db_lockmode_t, DB_LOCK *));
int __lock_put __P((DB_ENV *, DB_LOCK *));
int __lock_downgrade __P((DB_ENV *, DB_LOCK *, db_lockmode_t, u_int32_t));
int __lock_addfamilylocker __P((DB_ENV *, u_int32_t, u_int32_t));
int __lock_freefamilylocker __P((DB_LOCKTAB *, u_int32_t));
int __lock_set_timeout __P(( DB_ENV *, u_int32_t, db_timeout_t, u_int32_t));
int __lock_inherit_timeout __P(( DB_ENV *, u_int32_t, u_int32_t));
int __lock_getlocker __P((DB_LOCKTAB *, u_int32_t, u_int32_t, int, DB_LOCKER **));
int __lock_promote __P((DB_LOCKTAB *, DB_LOCKOBJ *, u_int32_t));
int __lock_expired __P((DB_ENV *, db_timeval_t *, db_timeval_t *));
int __lock_detect __P((DB_ENV *, u_int32_t, u_int32_t, int *));
void __lock_dbenv_create __P((DB_ENV *));
void __lock_dbenv_close __P((DB_ENV *));
int __lock_open __P((DB_ENV *));
int __lock_dbenv_refresh __P((DB_ENV *));
void __lock_region_destroy __P((DB_ENV *, REGINFO *));
int __lock_id_set __P((DB_ENV *, u_int32_t, u_int32_t));
int __lock_stat __P((DB_ENV *, DB_LOCK_STAT **, u_int32_t));
int __lock_dump_region __P((DB_ENV *, char *, FILE *));
void __lock_printlock __P((DB_LOCKTAB *, struct __db_lock *, int));
int __lock_cmp __P((const DBT *, DB_LOCKOBJ *));
int __lock_locker_cmp __P((u_int32_t, DB_LOCKER *));
u_int32_t __lock_ohash __P((const DBT *));
u_int32_t __lock_lhash __P((DB_LOCKOBJ *));
u_int32_t __lock_locker_hash __P((u_int32_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_lock_ext_h_ */
/* 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((DB_ENV *));
int __log_find __P((DB_LOG *, int, u_int32_t *, logfile_validity *));
int __log_valid __P((DB_LOG *, u_int32_t, int, logfile_validity *));
int __log_dbenv_refresh __P((DB_ENV *));
int __log_stat __P((DB_ENV *, DB_LOG_STAT **, u_int32_t));
void __log_get_cached_ckp_lsn __P((DB_ENV *, DB_LSN *));
void __log_region_destroy __P((DB_ENV *, REGINFO *));
int __log_vtruncate __P((DB_ENV *, DB_LSN *, DB_LSN *));
int __log_is_outdated __P((DB_ENV *dbenv, u_int32_t fnum, int *outdatedp));
int __log_archive __P((DB_ENV *, char **[], u_int32_t));
int __log_cursor __P((DB_ENV *, DB_LOGC **, u_int32_t));
void __log_dbenv_create __P((DB_ENV *));
int __log_put __P((DB_ENV *, DB_LSN *, const DBT *, u_int32_t));
void __log_txn_lsn __P((DB_ENV *, DB_LSN *, u_int32_t *, u_int32_t *));
int __log_newfile __P((DB_LOG *, DB_LSN *));
int __log_flush __P((DB_ENV *, const DB_LSN *));
int __log_file __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((DB_ENV *, DB_LSN *, const DBT *));
#if defined(__cplusplus)
}
#endif
#endif /* !_log_ext_h_ */
/* 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 *));
#ifdef DIAGNOSTIC
void __memp_check_order __P((DB_MPOOL_HASH *));
#endif
int __memp_bhwrite __P((DB_MPOOL *, DB_MPOOL_HASH *, MPOOLFILE *, BH *, int));
int __memp_pgread __P((DB_MPOOLFILE *, DB_MUTEX *, BH *, int));
int __memp_pg __P((DB_MPOOLFILE *, BH *, int));
void __memp_bhfree __P((DB_MPOOL *, DB_MPOOL_HASH *, BH *, int));
int __memp_fget __P((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *));
int __memp_fcreate __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t));
int __memp_fopen_int __P((DB_MPOOLFILE *, MPOOLFILE *, const char *, u_int32_t, int, size_t));
int __memp_fclose_int __P((DB_MPOOLFILE *, u_int32_t));
int __memp_mf_discard __P((DB_MPOOL *, MPOOLFILE *));
char * __memp_fn __P((DB_MPOOLFILE *));
char * __memp_fns __P((DB_MPOOL *, MPOOLFILE *));
int __memp_fput __P((DB_MPOOLFILE *, void *, u_int32_t));
int __memp_fset __P((DB_MPOOLFILE *, void *, u_int32_t));
void __memp_dbenv_create __P((DB_ENV *));
int __memp_open __P((DB_ENV *));
int __memp_dbenv_refresh __P((DB_ENV *));
void __mpool_region_destroy __P((DB_ENV *, REGINFO *));
int __memp_nameop __P((DB_ENV *, u_int8_t *, const char *, const char *, const char *));
int __memp_register __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
int __memp_stat __P((DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t));
int __memp_dump_region __P((DB_ENV *, char *, FILE *));
void __memp_stat_hash __P((REGINFO *, MPOOL *, u_int32_t *));
int __memp_sync __P((DB_ENV *, DB_LSN *));
int __memp_fsync __P((DB_MPOOLFILE *));
int __mp_xxx_fh __P((DB_MPOOLFILE *, DB_FH **));
int __memp_sync_int __P((DB_ENV *, DB_MPOOLFILE *, int, db_sync_op, int *));
int __memp_trickle __P((DB_ENV *, int, int *));
#if defined(__cplusplus)
}
#endif
#endif /* !_mp_ext_h_ */
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _mutex_ext_h_
#define _mutex_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __db_fcntl_mutex_init __P((DB_ENV *, DB_MUTEX *, u_int32_t));
int __db_fcntl_mutex_lock __P((DB_ENV *, DB_MUTEX *));
int __db_fcntl_mutex_unlock __P((DB_ENV *, DB_MUTEX *));
int __db_fcntl_mutex_destroy __P((DB_MUTEX *));
int __db_pthread_mutex_init __P((DB_ENV *, DB_MUTEX *, u_int32_t));
int __db_pthread_mutex_lock __P((DB_ENV *, DB_MUTEX *));
int __db_pthread_mutex_unlock __P((DB_ENV *, DB_MUTEX *));
int __db_pthread_mutex_destroy __P((DB_MUTEX *));
int __db_tas_mutex_init __P((DB_ENV *, DB_MUTEX *, u_int32_t));
int __db_tas_mutex_lock __P((DB_ENV *, DB_MUTEX *));
int __db_tas_mutex_unlock __P((DB_ENV *, DB_MUTEX *));
int __db_tas_mutex_destroy __P((DB_MUTEX *));
int __db_win32_mutex_init __P((DB_ENV *, DB_MUTEX *, u_int32_t));
int __db_win32_mutex_lock __P((DB_ENV *, DB_MUTEX *));
int __db_win32_mutex_unlock __P((DB_ENV *, DB_MUTEX *));
int __db_win32_mutex_destroy __P((DB_MUTEX *));
int __db_mutex_setup __P((DB_ENV *, REGINFO *, void *, u_int32_t));
void __db_mutex_free __P((DB_ENV *, REGINFO *, DB_MUTEX *));
void __db_shreg_locks_clear __P((DB_MUTEX *, REGINFO *, REGMAINT *));
void __db_shreg_locks_destroy __P((REGINFO *, REGMAINT *));
int __db_shreg_mutex_init __P((DB_ENV *, DB_MUTEX *, u_int32_t, u_int32_t, REGINFO *, REGMAINT *));
void __db_shreg_maintinit __P((REGINFO *, void *addr, size_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_mutex_ext_h_ */
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _os_ext_h_
#define _os_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __os_abspath __P((const char *));
int __os_umalloc __P((DB_ENV *, size_t, void *));
int __os_urealloc __P((DB_ENV *, size_t, void *));
int __os_ufree __P((DB_ENV *, void *));
int __os_strdup __P((DB_ENV *, const char *, void *));
int __os_calloc __P((DB_ENV *, size_t, size_t, void *));
int __os_malloc __P((DB_ENV *, size_t, void *));
int __os_realloc __P((DB_ENV *, size_t, void *));
void __os_free __P((DB_ENV *, void *));
void *__ua_memcpy __P((void *, const void *, size_t));
int __os_clock __P((DB_ENV *, u_int32_t *, u_int32_t *));
int __os_fs_notzero __P((void));
int __os_dirlist __P((DB_ENV *, const char *, char ***, int *));
void __os_dirfree __P((DB_ENV *, char **, int));
int __os_get_errno_ret_zero __P((void));
int __os_get_errno __P((void));
void __os_set_errno __P((int));
int __os_fileid __P((DB_ENV *, const char *, int, u_int8_t *));
int __os_fsync __P((DB_ENV *, DB_FH *));
int __os_openhandle __P((DB_ENV *, const char *, int, int, DB_FH *));
int __os_closehandle __P((DB_ENV *, DB_FH *));
void __os_id __P((u_int32_t *));
int __os_r_sysattach __P((DB_ENV *, REGINFO *, REGION *));
int __os_r_sysdetach __P((DB_ENV *, REGINFO *, int));
int __os_mapfile __P((DB_ENV *, char *, DB_FH *, size_t, int, void **));
int __os_unmapfile __P((DB_ENV *, void *, size_t));
u_int32_t __db_oflags __P((int));
int __db_omode __P((const char *));
int __os_open __P((DB_ENV *, const char *, u_int32_t, int, DB_FH *));
#ifdef HAVE_QNX
int __os_shmname __P((DB_ENV *, const char *, char **));
#endif
int __os_r_attach __P((DB_ENV *, REGINFO *, REGION *));
int __os_r_detach __P((DB_ENV *, REGINFO *, int));
int __os_rename __P((DB_ENV *, const char *, const char *, u_int32_t));
int __os_isroot __P((void));
char *__db_rpath __P((const char *));
int __os_io __P((DB_ENV *, DB_IO *, int, size_t *));
int __os_read __P((DB_ENV *, DB_FH *, void *, size_t, size_t *));
int __os_write __P((DB_ENV *, DB_FH *, void *, size_t, size_t *));
int __os_seek __P((DB_ENV *, DB_FH *, size_t, db_pgno_t, u_int32_t, int, DB_OS_SEEK));
int __os_sleep __P((DB_ENV *, u_long, u_long));
int __os_spin __P((DB_ENV *));
void __os_yield __P((DB_ENV*, u_long));
int __os_exists __P((const char *, int *));
int __os_ioinfo __P((DB_ENV *, const char *, DB_FH *, u_int32_t *, u_int32_t *, u_int32_t *));
int __os_tmpdir __P((DB_ENV *, u_int32_t));
int __os_region_unlink __P((DB_ENV *, const char *));
int __os_unlink __P((DB_ENV *, const char *));
#if defined(DB_WIN32)
int __os_win32_errno __P((void));
#endif
int __os_fsync __P((DB_ENV *, DB_FH *));
int __os_openhandle __P((DB_ENV *, const char *, int, int, DB_FH *));
int __os_closehandle __P((DB_ENV *, DB_FH *));
int __os_io __P((DB_ENV *, DB_IO *, int, size_t *));
int __os_read __P((DB_ENV *, DB_FH *, void *, size_t, size_t *));
int __os_write __P((DB_ENV *, DB_FH *, void *, size_t, size_t *));
int __os_exists __P((const char *, int *));
int __os_ioinfo __P((DB_ENV *, const char *, DB_FH *, u_int32_t *, u_int32_t *, u_int32_t *));
int __os_is_winnt __P((void));
#if defined(__cplusplus)
}
#endif
#endif /* !_os_ext_h_ */
/* 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 *, qam_position_mode, int *));
int __qam_pitem __P((DBC *, QPAGE *, u_int32_t, db_recno_t, DBT *));
int __qam_append __P((DBC *, DBT *, DBT *));
int __qam_c_dup __P((DBC *, DBC *));
int __qam_c_init __P((DBC *));
int __qam_truncate __P((DB *, DB_TXN *, u_int32_t *));
int __qam_incfirst_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_recno_t, db_pgno_t));
int __qam_incfirst_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_incfirst_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_incfirst_read __P((DB_ENV *, void *, __qam_incfirst_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_mvptr_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_mvptr_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_mvptr_read __P((DB_ENV *, void *, __qam_mvptr_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_del_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_del_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_del_read __P((DB_ENV *, void *, __qam_del_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_add_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_add_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_add_read __P((DB_ENV *, void *, __qam_add_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_delext_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_delext_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_delext_read __P((DB_ENV *, void *, __qam_delext_args **));
int __qam_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __qam_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __qam_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __qam_mswap __P((PAGE *));
int __qam_pgin_out __P((DB_ENV *, db_pgno_t, void *, DBT *));
int __qam_fprobe __P((DB *, db_pgno_t, void *, qam_probe_mode, u_int32_t));
int __qam_fclose __P((DB *, db_pgno_t));
int __qam_fremove __P((DB *, db_pgno_t));
int __qam_sync __P((DB *, u_int32_t));
int __qam_gen_filelist __P(( DB *, QUEUE_FILELIST **));
int __qam_extent_names __P((DB_ENV *, char *, char ***));
void __qam_exid __P((DB *, u_int8_t *, u_int32_t));
int __qam_db_create __P((DB *));
int __qam_db_close __P((DB *));
int __db_prqueue __P((DB *, FILE *, u_int32_t));
int __qam_remove __P((DB *, DB_TXN *, const char *, const char *, DB_LSN *));
int __qam_rename __P((DB *, DB_TXN *, const char *, const char *, const char *));
int __qam_open __P((DB *, DB_TXN *, const char *, db_pgno_t, int, u_int32_t));
int __qam_metachk __P((DB *, const char *, QMETA *));
int __qam_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
int __qam_incfirst_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_mvptr_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_del_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_delext_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_add_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __qam_stat __P((DB *, void *, u_int32_t));
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));
#if defined(__cplusplus)
}
#endif
#endif /* !_qam_ext_h_ */
/* 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_dbenv_create __P((DB_ENV *));
int __rep_process_message __P((DB_ENV *, DBT *, DBT *, int *));
int __rep_process_txn __P((DB_ENV *, DBT *));
int __rep_region_init __P((DB_ENV *));
int __rep_region_destroy __P((DB_ENV *));
int __rep_dbenv_close __P((DB_ENV *));
int __rep_preclose __P((DB_ENV *, int));
int __rep_check_alloc __P((DB_ENV *, TXN_RECS *, int));
int __rep_send_message __P((DB_ENV *, int, u_int32_t, DB_LSN *, const DBT *, u_int32_t));
int __rep_new_master __P((DB_ENV *, REP_CONTROL *, int));
int __rep_lockpgno_init __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __rep_unlockpages __P((DB_ENV *, u_int32_t));
int __rep_lockpages __P((DB_ENV *, int (**)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t, DB_LSN *, DB_LSN *, TXN_RECS *, u_int32_t));
int __rep_is_client __P((DB_ENV *));
int __rep_send_vote __P((DB_ENV *, DB_LSN *, int, int, int));
int __rep_grow_sites __P((DB_ENV *dbenv, int nsites));
void __rep_print_message __P((DB_ENV *, int, REP_CONTROL *, char *));
#if defined(__cplusplus)
}
#endif
#endif /* !_rep_ext_h_ */
This diff is collapsed.
/* DO NOT EDIT: automatically built by dist/s_rpc. */
#define DB_RPC_SERVERPROG ((unsigned long)(351457))
#define DB_RPC_SERVERVERS ((unsigned long)(4001))
/* 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_cachesize_proc __P((long, u_int32_t, u_int32_t, u_int32_t, __env_cachesize_reply *));
void __env_close_proc __P((long, u_int32_t, __env_close_reply *));
void __env_create_proc __P((u_int32_t, __env_create_reply *));
void __env_dbremove_proc __P((long, long, char *, char *, u_int32_t, __env_dbremove_reply *));
void __env_dbrename_proc __P((long, long, char *, char *, char *, u_int32_t, __env_dbrename_reply *));
void __env_encrypt_proc __P((long, char *, u_int32_t, __env_encrypt_reply *));
void __env_flags_proc __P((long, u_int32_t, u_int32_t, __env_flags_reply *));
void __env_open_proc __P((long, char *, u_int32_t, u_int32_t, __env_open_reply *));
void __env_remove_proc __P((long, char *, u_int32_t, __env_remove_reply *));
void __txn_abort_proc __P((long, __txn_abort_reply *));
void __txn_begin_proc __P((long, long, u_int32_t, __txn_begin_reply *));
void __txn_commit_proc __P((long, u_int32_t, __txn_commit_reply *));
void __txn_discard_proc __P((long, u_int32_t, __txn_discard_reply *));
void __txn_prepare_proc __P((long, u_int8_t *, __txn_prepare_reply *));
void __txn_recover_proc __P((long, u_int32_t, u_int32_t, __txn_recover_reply *, int *));
void __db_bt_maxkey_proc __P((long, u_int32_t, __db_bt_maxkey_reply *));
void __db_associate_proc __P((long, long, long, u_int32_t, __db_associate_reply *));
void __db_bt_minkey_proc __P((long, u_int32_t, __db_bt_minkey_reply *));
void __db_close_proc __P((long, u_int32_t, __db_close_reply *));
void __db_create_proc __P((long, u_int32_t, __db_create_reply *));
void __db_del_proc __P((long, long, u_int32_t, u_int32_t, u_int32_t, u_int32_t, void *, u_int32_t, u_int32_t, __db_del_reply *));
void __db_encrypt_proc __P((long, char *, u_int32_t, __db_encrypt_reply *));
void __db_extentsize_proc __P((long, u_int32_t, __db_extentsize_reply *));
void __db_flags_proc __P((long, u_int32_t, __db_flags_reply *));
void __db_get_proc __P((long, long, 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_h_ffactor_proc __P((long, u_int32_t, __db_h_ffactor_reply *));
void __db_h_nelem_proc __P((long, u_int32_t, __db_h_nelem_reply *));
void __db_key_range_proc __P((long, long, 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_lorder_proc __P((long, u_int32_t, __db_lorder_reply *));
void __db_open_proc __P((long, long, char *, char *, u_int32_t, u_int32_t, u_int32_t, __db_open_reply *));
void __db_pagesize_proc __P((long, u_int32_t, __db_pagesize_reply *));
void __db_pget_proc __P((long, long, 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((long, long, 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_re_delim_proc __P((long, u_int32_t, __db_re_delim_reply *));
void __db_re_len_proc __P((long, u_int32_t, __db_re_len_reply *));
void __db_re_pad_proc __P((long, u_int32_t, __db_re_pad_reply *));
void __db_remove_proc __P((long, char *, char *, u_int32_t, __db_remove_reply *));
void __db_rename_proc __P((long, char *, char *, char *, u_int32_t, __db_rename_reply *));
void __db_stat_proc __P((long, u_int32_t, __db_stat_reply *, int *));
void __db_sync_proc __P((long, u_int32_t, __db_sync_reply *));
void __db_truncate_proc __P((long, long, u_int32_t, __db_truncate_reply *));
void __db_cursor_proc __P((long, long, u_int32_t, __db_cursor_reply *));
void __db_join_proc __P((long, u_int32_t *, u_int32_t, u_int32_t, __db_join_reply *));
void __dbc_close_proc __P((long, __dbc_close_reply *));
void __dbc_count_proc __P((long, u_int32_t, __dbc_count_reply *));
void __dbc_del_proc __P((long, u_int32_t, __dbc_del_reply *));
void __dbc_dup_proc __P((long, u_int32_t, __dbc_dup_reply *));
void __dbc_get_proc __P((long, 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((long, 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((long, 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 __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 __dbenv_close_int __P((long, u_int32_t, int));
home_entry *get_home __P((char *));
__env_cachesize_reply *__db_env_cachesize_4001 __P((__env_cachesize_msg *, struct svc_req *));
__env_close_reply *__db_env_close_4001 __P((__env_close_msg *, struct svc_req *));
__env_create_reply *__db_env_create_4001 __P((__env_create_msg *, struct svc_req *));
__env_dbremove_reply *__db_env_dbremove_4001 __P((__env_dbremove_msg *, struct svc_req *));
__env_dbrename_reply *__db_env_dbrename_4001 __P((__env_dbrename_msg *, struct svc_req *));
__env_encrypt_reply *__db_env_encrypt_4001 __P((__env_encrypt_msg *, struct svc_req *));
__env_flags_reply *__db_env_flags_4001 __P((__env_flags_msg *, struct svc_req *));
__env_open_reply *__db_env_open_4001 __P((__env_open_msg *, struct svc_req *));
__env_remove_reply *__db_env_remove_4001 __P((__env_remove_msg *, struct svc_req *));
__txn_abort_reply *__db_txn_abort_4001 __P((__txn_abort_msg *, struct svc_req *));
__txn_begin_reply *__db_txn_begin_4001 __P((__txn_begin_msg *, struct svc_req *));
__txn_commit_reply *__db_txn_commit_4001 __P((__txn_commit_msg *, struct svc_req *));
__txn_discard_reply *__db_txn_discard_4001 __P((__txn_discard_msg *, struct svc_req *));
__txn_prepare_reply *__db_txn_prepare_4001 __P((__txn_prepare_msg *, struct svc_req *));
__txn_recover_reply *__db_txn_recover_4001 __P((__txn_recover_msg *, struct svc_req *));
__db_associate_reply *__db_db_associate_4001 __P((__db_associate_msg *, struct svc_req *));
__db_bt_maxkey_reply *__db_db_bt_maxkey_4001 __P((__db_bt_maxkey_msg *, struct svc_req *));
__db_bt_minkey_reply *__db_db_bt_minkey_4001 __P((__db_bt_minkey_msg *, struct svc_req *));
__db_close_reply *__db_db_close_4001 __P((__db_close_msg *, struct svc_req *));
__db_create_reply *__db_db_create_4001 __P((__db_create_msg *, struct svc_req *));
__db_del_reply *__db_db_del_4001 __P((__db_del_msg *, struct svc_req *));
__db_encrypt_reply *__db_db_encrypt_4001 __P((__db_encrypt_msg *, struct svc_req *));
__db_extentsize_reply *__db_db_extentsize_4001 __P((__db_extentsize_msg *, struct svc_req *));
__db_flags_reply *__db_db_flags_4001 __P((__db_flags_msg *, struct svc_req *));
__db_get_reply *__db_db_get_4001 __P((__db_get_msg *, struct svc_req *));
__db_h_ffactor_reply *__db_db_h_ffactor_4001 __P((__db_h_ffactor_msg *, struct svc_req *));
__db_h_nelem_reply *__db_db_h_nelem_4001 __P((__db_h_nelem_msg *, struct svc_req *));
__db_key_range_reply *__db_db_key_range_4001 __P((__db_key_range_msg *, struct svc_req *));
__db_lorder_reply *__db_db_lorder_4001 __P((__db_lorder_msg *, struct svc_req *));
__db_open_reply *__db_db_open_4001 __P((__db_open_msg *, struct svc_req *));
__db_pagesize_reply *__db_db_pagesize_4001 __P((__db_pagesize_msg *, struct svc_req *));
__db_pget_reply *__db_db_pget_4001 __P((__db_pget_msg *, struct svc_req *));
__db_put_reply *__db_db_put_4001 __P((__db_put_msg *, struct svc_req *));
__db_re_delim_reply *__db_db_re_delim_4001 __P((__db_re_delim_msg *, struct svc_req *));
__db_re_len_reply *__db_db_re_len_4001 __P((__db_re_len_msg *, struct svc_req *));
__db_re_pad_reply *__db_db_re_pad_4001 __P((__db_re_pad_msg *, struct svc_req *));
__db_remove_reply *__db_db_remove_4001 __P((__db_remove_msg *, struct svc_req *));
__db_rename_reply *__db_db_rename_4001 __P((__db_rename_msg *, struct svc_req *));
__db_stat_reply *__db_db_stat_4001 __P((__db_stat_msg *, struct svc_req *));
__db_sync_reply *__db_db_sync_4001 __P((__db_sync_msg *, struct svc_req *));
__db_truncate_reply *__db_db_truncate_4001 __P((__db_truncate_msg *, struct svc_req *));
__db_cursor_reply *__db_db_cursor_4001 __P((__db_cursor_msg *, struct svc_req *));
__db_join_reply *__db_db_join_4001 __P((__db_join_msg *, struct svc_req *));
__dbc_close_reply *__db_dbc_close_4001 __P((__dbc_close_msg *, struct svc_req *));
__dbc_count_reply *__db_dbc_count_4001 __P((__dbc_count_msg *, struct svc_req *));
__dbc_del_reply *__db_dbc_del_4001 __P((__dbc_del_msg *, struct svc_req *));
__dbc_dup_reply *__db_dbc_dup_4001 __P((__dbc_dup_msg *, struct svc_req *));
__dbc_get_reply *__db_dbc_get_4001 __P((__dbc_get_msg *, struct svc_req *));
__dbc_pget_reply *__db_dbc_pget_4001 __P((__dbc_pget_msg *, struct svc_req *));
__dbc_put_reply *__db_dbc_put_4001 __P((__dbc_put_msg *, struct svc_req *));
#if defined(__cplusplus)
}
#endif
#endif /* !_rpc_server_ext_h_ */
/* 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 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_EnvVerbose __P((Tcl_Interp *, DB_ENV *, Tcl_Obj *, Tcl_Obj *));
int tcl_EnvAttr __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
int tcl_EnvTest __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *));
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 *, int, void *, int));
int _SetListElemInt __P((Tcl_Interp *, Tcl_Obj *, void *, int));
int _SetListRecnoElem __P((Tcl_Interp *, Tcl_Obj *, db_recno_t, u_char *, int));
int _Set3DBTList __P((Tcl_Interp *, Tcl_Obj *, DBT *, int, DBT *, int, DBT *));
int _SetMultiList __P((Tcl_Interp *, Tcl_Obj *, DBT *, DBT*, int, int));
int _GetGlobPrefix __P((char *, char **));
int _ReturnSetup __P((Tcl_Interp *, int, int, char *));
int _ErrorSetup __P((Tcl_Interp *, int, char *));
void _ErrorFunc __P((CONST char *, char *));
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, void (*)(u_int32_t, void *, void (*)(u_int32_t, const FN *, void *))));
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*));
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_RepElect __P((Tcl_Interp *, int, Tcl_Obj * CONST *, DB_ENV *));
int tcl_RepFlush __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_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 *));
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_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*));
int tcl_Mutex __P((Tcl_Interp *, int, Tcl_Obj * CONST*, DB_ENV *, DBTCL_INFO *));
#if defined(__cplusplus)
}
#endif
#endif /* !_tcl_ext_h_ */
/* 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 __P((DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t));
int __txn_xa_begin __P((DB_ENV *, DB_TXN *));
int __txn_compensate_begin __P((DB_ENV *, DB_TXN **txnp));
int __txn_commit __P((DB_TXN *, u_int32_t));
int __txn_abort __P((DB_TXN *));
int __txn_discard __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_checkpoint __P((DB_ENV *, u_int32_t, u_int32_t, u_int32_t));
int __txn_getckp __P((DB_ENV *, DB_LSN *));
int __txn_activekids __P((DB_ENV *, u_int32_t, DB_TXN *));
int __txn_force_abort __P((DB_ENV *, u_int8_t *));
int __txn_preclose __P((DB_ENV *));
int __txn_reset __P((DB_ENV *));
int __txn_regop_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, int32_t));
int __txn_regop_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_regop_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_regop_read __P((DB_ENV *, void *, __txn_regop_args **));
int __txn_ckp_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, DB_LSN *, DB_LSN *, int32_t));
int __txn_ckp_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_read __P((DB_ENV *, void *, __txn_ckp_args **));
int __txn_child_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, DB_LSN *));
int __txn_child_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_child_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_child_read __P((DB_ENV *, void *, __txn_child_args **));
int __txn_xa_regop_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, const DBT *, int32_t, u_int32_t, u_int32_t, DB_LSN *));
int __txn_xa_regop_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_xa_regop_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_xa_regop_read __P((DB_ENV *, void *, __txn_xa_regop_args **));
int __txn_recycle_log __P((DB_ENV *, DB_TXN *, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
int __txn_recycle_getpgnos __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_recycle_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_recycle_read __P((DB_ENV *, void *, __txn_recycle_args **));
int __txn_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __txn_init_getpgnos __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
int __txn_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
void __txn_dbenv_create __P((DB_ENV *));
int __txn_regop_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_xa_regop_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_ckp_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_child_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
int __txn_restore_txn __P((DB_ENV *, DB_LSN *, __txn_xa_regop_args *));
int __txn_recycle_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
void __txn_continue __P((DB_ENV *, DB_TXN *, TXN_DETAIL *, size_t));
int __txn_map_gid __P((DB_ENV *, u_int8_t *, TXN_DETAIL **, size_t *));
int __txn_recover __P((DB_ENV *, DB_PREPLIST *, long, long *, u_int32_t));
int __txn_get_prepared __P((DB_ENV *, XID *, DB_PREPLIST *, long, long *, u_int32_t));
int __txn_open __P((DB_ENV *));
int __txn_dbenv_refresh __P((DB_ENV *));
void __txn_region_destroy __P((DB_ENV *, REGINFO *));
int __txn_id_set __P((DB_ENV *, u_int32_t, u_int32_t));
int __txn_stat __P((DB_ENV *, DB_TXN_STAT **, u_int32_t));
int __txn_remevent __P((DB_ENV *, DB_TXN *, const char *, u_int8_t*));
int __txn_lockevent __P((DB_ENV *, DB_TXN *, DB *, DB_LOCK *, u_int32_t));
void __txn_remlock __P((DB_ENV *, DB_TXN *, DB_LOCK *, u_int32_t));
int __txn_doevents __P((DB_ENV *, DB_TXN *, int, int));
#if defined(__cplusplus)
}
#endif
#endif /* !_txn_ext_h_ */
/* DO NOT EDIT: automatically built by dist/s_include. */
#ifndef _xa_ext_h_
#define _xa_ext_h_
#if defined(__cplusplus)
extern "C" {
#endif
int __db_xa_create __P((DB *));
int __db_rmid_to_env __P((int rmid, DB_ENV **envp));
int __db_xid_to_txn __P((DB_ENV *, XID *, size_t *));
int __db_map_rmid __P((int, DB_ENV *));
int __db_unmap_rmid __P((int));
int __db_map_xid __P((DB_ENV *, XID *, size_t));
void __db_unmap_xid __P((DB_ENV *, XID *, size_t));
#if defined(__cplusplus)
}
#endif
#endif /* !_xa_ext_h_ */
......@@ -9,3 +9,12 @@ DB_VERSION_UNIQUE_NAME=`printf "_%d%03d" $DB_VERSION_MAJOR $DB_VERSION_MINOR`
DB_RELEASE_DATE=`date "+%B %e, %Y"`
DB_VERSION_STRING="Sleepycat Software: Berkeley DB $DB_VERSION: ($DB_RELEASE_DATE)"
# this file is included by all s_* scripts, so it's the way to apply
# hacks :)
# bitkeeper doesn't like somebody to mess with permissions!
chmod()
{
#echo "chmod $1 $2"
}
......@@ -3,6 +3,8 @@
# Remove crypto from the DB source tree.
. ./RELEASE
d=..
t=/tmp/__db_a
......
......@@ -38,7 +38,7 @@ cmp $t $f > /dev/null 2>&1 ||
(echo "Building $f" && rm -f $f && cp $t $f && chmod 444 $f)
# Build Db.java.
f=../java/src/com/sleepycat/db/Db.java
f=../java/src/com/sleepycat/db/Db.java.in
sed '/BEGIN-JAVA-SPECIAL-CONSTANTS/q' < $f > $t
(echo " $msgjava" &&
for i in `egrep '^DB_.*C$' pubdef.in | awk '{print $1}'`; do \
......
......@@ -4,6 +4,8 @@
d=..
echo 'Updating Berkeley DB source tree permissions...'
. ./RELEASE
run()
{
echo " $1 ($2)"
......
......@@ -3,6 +3,8 @@
#
# Build the automatically generated logging/recovery files.
. ./RELEASE
tmp=/tmp/__db_a
loglist=/tmp/__db_b
source=/tmp/__db_c
......
......@@ -25,14 +25,12 @@ server_file=../rpc_server/c/gen_db_server.c
stmpl_file=./template/db_server_proc
xdr_file=../rpc_server/db_server.x
#
# NOTE: We do NOT want to remove proc_file. It is what we apply $sed_file
# to, but we do not want to remove it, it does not get built in place.
rm -f $client_file \
$ctmpl_file \
$header_file \
$rpcclnt_file \
$rpcsvc_file \
$proc_file \
$rpcxdr_file \
$sed_file \
$server_file \
......@@ -92,8 +90,7 @@ ENDOFSEDTEXT
sed -f $t $rpcsvc_file > ${rpcsvc_file}.new
mv ${rpcsvc_file}.new $rpcsvc_file
sed -f $sed_file $proc_file > ${proc_file}.new
mv ${proc_file}.new $proc_file
sed -f $sed_file ${proc_file}.in > ${proc_file}
# Run rpcgen files through sed to add HAVE_RPC ifdef and appropriate
# includes.
......
......@@ -2,6 +2,7 @@
# $Id: s_symlink,v 1.28 2002/08/18 21:15:45 bostic Exp $
echo 'Creating Berkeley DB source tree symbolic links...'
. ./RELEASE
build()
{
......
......@@ -3,6 +3,8 @@
#
# Build tags files.
. ./RELEASE
files="../dbinc/*.h \
../dbinc/*.in \
../btree/*.[ch] \
......
/* Do not edit: automatically built by gen_rec.awk. */
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <db.h>
#include "ex_apprec.h"
/*
* PUBLIC: int ex_apprec_mkdir_log __P((DB_ENV *, DB_TXN *, DB_LSN *,
* PUBLIC: u_int32_t, const DBT *));
*/
int
ex_apprec_mkdir_log(dbenv, txnid, ret_lsnp, flags,
dirname)
DB_ENV *dbenv;
DB_TXN *txnid;
DB_LSN *ret_lsnp;
u_int32_t flags;
const DBT *dirname;
{
DBT logrec;
DB_LSN *lsnp, null_lsn;
u_int32_t zero;
u_int32_t npad, rectype, txn_num;
int ret;
u_int8_t *bp;
rectype = DB_ex_apprec_mkdir;
npad = 0;
if (txnid == NULL) {
txn_num = 0;
null_lsn.file = 0;
null_lsn.offset = 0;
lsnp = &null_lsn;
} else {
txn_num = txnid->txnid;
lsnp = &txnid->last_lsn;
}
logrec.size = sizeof(rectype) + sizeof(txn_num) + sizeof(DB_LSN)
+ sizeof(u_int32_t) + (dirname == NULL ? 0 : dirname->size);
if ((logrec.data = malloc(logrec.size)) == NULL)
return (ENOMEM);
if (npad > 0)
memset((u_int8_t *)logrec.data + logrec.size - npad, 0, npad);
bp = logrec.data;
memcpy(bp, &rectype, sizeof(rectype));
bp += sizeof(rectype);
memcpy(bp, &txn_num, sizeof(txn_num));
bp += sizeof(txn_num);
memcpy(bp, lsnp, sizeof(DB_LSN));
bp += sizeof(DB_LSN);
if (dirname == NULL) {
zero = 0;
memcpy(bp, &zero, sizeof(u_int32_t));
bp += sizeof(u_int32_t);
} else {
memcpy(bp, &dirname->size, sizeof(dirname->size));
bp += sizeof(dirname->size);
memcpy(bp, dirname->data, dirname->size);
bp += dirname->size;
}
ret = dbenv->log_put(dbenv,
ret_lsnp, (DBT *)&logrec, flags);
if (txnid != NULL && ret == 0)
txnid->last_lsn = *ret_lsnp;
#ifdef LOG_DIAGNOSTIC
if (ret != 0)
(void)ex_apprec_mkdir_print(dbenv,
(DBT *)&logrec, ret_lsnp, NULL, NULL);
#endif
free(logrec.data);
return (ret);
}
/*
* PUBLIC: int ex_apprec_mkdir_print __P((DB_ENV *, DBT *, DB_LSN *,
* PUBLIC: db_recops, void *));
*/
int
ex_apprec_mkdir_print(dbenv, dbtp, lsnp, notused2, notused3)
DB_ENV *dbenv;
DBT *dbtp;
DB_LSN *lsnp;
db_recops notused2;
void *notused3;
{
ex_apprec_mkdir_args *argp;
u_int32_t i;
int ch;
int ret;
notused2 = DB_TXN_ABORT;
notused3 = NULL;
if ((ret = ex_apprec_mkdir_read(dbenv, dbtp->data, &argp)) != 0)
return (ret);
(void)printf(
"[%lu][%lu]ex_apprec_mkdir: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
(u_long)lsnp->file,
(u_long)lsnp->offset,
(u_long)argp->type,
(u_long)argp->txnid->txnid,
(u_long)argp->prev_lsn.file,
(u_long)argp->prev_lsn.offset);
(void)printf("\tdirname: ");
for (i = 0; i < argp->dirname.size; i++) {
ch = ((u_int8_t *)argp->dirname.data)[i];
printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
}
(void)printf("\n");
(void)printf("\n");
free(argp);
return (0);
}
/*
* PUBLIC: int ex_apprec_mkdir_read __P((DB_ENV *, void *,
* PUBLIC: ex_apprec_mkdir_args **));
*/
int
ex_apprec_mkdir_read(dbenv, recbuf, argpp)
DB_ENV *dbenv;
void *recbuf;
ex_apprec_mkdir_args **argpp;
{
ex_apprec_mkdir_args *argp;
u_int8_t *bp;
/* Keep the compiler quiet. */
dbenv = NULL;
if ((argp = malloc(sizeof(ex_apprec_mkdir_args) + sizeof(DB_TXN))) == NULL)
return (ENOMEM);
argp->txnid = (DB_TXN *)&argp[1];
bp = recbuf;
memcpy(&argp->type, bp, sizeof(argp->type));
bp += sizeof(argp->type);
memcpy(&argp->txnid->txnid, bp, sizeof(argp->txnid->txnid));
bp += sizeof(argp->txnid->txnid);
memcpy(&argp->prev_lsn, bp, sizeof(DB_LSN));
bp += sizeof(DB_LSN);
memset(&argp->dirname, 0, sizeof(argp->dirname));
memcpy(&argp->dirname.size, bp, sizeof(u_int32_t));
bp += sizeof(u_int32_t);
argp->dirname.data = bp;
bp += argp->dirname.size;
*argpp = argp;
return (0);
}
/*
* PUBLIC: int ex_apprec_init_print __P((DB_ENV *, int (***)(DB_ENV *,
* PUBLIC: DBT *, DB_LSN *, db_recops, void *), size_t *));
*/
int
ex_apprec_init_print(dbenv, dtabp, dtabsizep)
DB_ENV *dbenv;
int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
size_t *dtabsizep;
{
int __db_add_recovery __P((DB_ENV *,
int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *),
size_t *,
int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), u_int32_t));
int ret;
if ((ret = __db_add_recovery(dbenv, dtabp, dtabsizep,
ex_apprec_mkdir_print, DB_ex_apprec_mkdir)) != 0)
return (ret);
return (0);
}
/* Do not edit: automatically built by gen_rec.awk. */
#ifndef ex_apprec_AUTO_H
#define ex_apprec_AUTO_H
#define DB_ex_apprec_mkdir 10000
typedef struct _ex_apprec_mkdir_args {
u_int32_t type;
DB_TXN *txnid;
DB_LSN prev_lsn;
DBT dirname;
} ex_apprec_mkdir_args;
#endif
#include "db_config.h"
#ifndef NO_SYSTEM_INCLUDES
#include <sys/types.h>
#include <string.h>
#endif
#include "db_int.h"
#include "dbinc/db_page.h"
#include "dbinc/ex_apprec.h"
#include "dbinc/log.h"
/*
* ex_apprec_mkdir_recover --
* Recovery function for mkdir.
*
* PUBLIC: int ex_apprec_mkdir_recover
* PUBLIC: __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
*/
int
ex_apprec_mkdir_recover(dbenv, dbtp, lsnp, op, info)
DB_ENV *dbenv;
DBT *dbtp;
DB_LSN *lsnp;
db_recops op;
void *info;
{
ex_apprec_mkdir_args *argp;
DB *file_dbp;
DBC *dbc;
DB_MPOOLFILE *mpf;
PAGE *pagep;
int cmp_n, cmp_p, modified, ret;
REC_PRINT(ex_apprec_mkdir_print);
REC_INTRO(ex_apprec_mkdir_read, 1);
if ((ret = mpf->get(mpf, &argp->pgno, 0, &pagep)) != 0)
if (DB_REDO(op)) {
if ((ret = mpf->get(mpf,
&argp->pgno, DB_MPOOL_CREATE, &pagep)) != 0)
goto out;
} else {
*lsnp = argp->prev_lsn;
ret = 0;
goto out;
}
modified = 0;
cmp_n = log_compare(lsnp, &LSN(pagep));
/*
* Use this when there is something like "pagelsn" in the argp
* structure. Sometimes, you might need to compare meta-data
* lsn's instead.
*
* cmp_p = log_compare(&LSN(pagep), argp->pagelsn);
*/
if (cmp_p == 0 && DB_REDO(op)) {
/* Need to redo update described. */
modified = 1;
} else if (cmp_n == 0 && !DB_REDO(op)) {
/* Need to undo update described. */
modified = 1;
}
if (ret = mpf->put(mpf, pagep, modified ? DB_MPOOL_DIRTY : 0))
goto out;
*lsnp = argp->prev_lsn;
ret = 0;
out: REC_CLOSE;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment