00001
00002 #ifndef _mp_ext_h_
00003 #define _mp_ext_h_
00004
00005 #if defined(__cplusplus)
00006 extern "C" {
00007 #endif
00008
00009 int __memp_alloc __P((DB_MPOOL *, REGINFO *, MPOOLFILE *, size_t, roff_t *, void *));
00010 #ifdef DIAGNOSTIC
00011 void __memp_check_order __P((DB_MPOOL_HASH *));
00012 #endif
00013 int __memp_bhwrite __P((DB_MPOOL *, DB_MPOOL_HASH *, MPOOLFILE *, BH *, int));
00014 int __memp_pgread __P((DB_MPOOLFILE *, db_mutex_t, BH *, int));
00015 int __memp_pg __P((DB_MPOOLFILE *, BH *, int));
00016 int __memp_bhfree __P((DB_MPOOL *, DB_MPOOL_HASH *, BH *, u_int32_t));
00017 int __memp_fget_pp __P((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *));
00018 int __memp_fget __P((DB_MPOOLFILE *, db_pgno_t *, u_int32_t, void *));
00019 int __memp_fcreate_pp __P((DB_ENV *, DB_MPOOLFILE **, u_int32_t));
00020 int __memp_fcreate __P((DB_ENV *, DB_MPOOLFILE **));
00021 int __memp_set_clear_len __P((DB_MPOOLFILE *, u_int32_t));
00022 int __memp_get_fileid __P((DB_MPOOLFILE *, u_int8_t *));
00023 int __memp_set_fileid __P((DB_MPOOLFILE *, u_int8_t *));
00024 int __memp_get_flags __P((DB_MPOOLFILE *, u_int32_t *));
00025 int __memp_set_flags __P((DB_MPOOLFILE *, u_int32_t, int));
00026 int __memp_get_ftype __P((DB_MPOOLFILE *, int *));
00027 int __memp_set_ftype __P((DB_MPOOLFILE *, int));
00028 int __memp_set_lsn_offset __P((DB_MPOOLFILE *, int32_t));
00029 int __memp_set_pgcookie __P((DB_MPOOLFILE *, DBT *));
00030 int __memp_last_pgno __P((DB_MPOOLFILE *, db_pgno_t *));
00031 char * __memp_fn __P((DB_MPOOLFILE *));
00032 char * __memp_fns __P((DB_MPOOL *, MPOOLFILE *));
00033 int __memp_fopen_pp __P((DB_MPOOLFILE *, const char *, u_int32_t, int, size_t));
00034 int __memp_fopen __P((DB_MPOOLFILE *, MPOOLFILE *, const char *, u_int32_t, int, size_t));
00035 int __memp_fclose_pp __P((DB_MPOOLFILE *, u_int32_t));
00036 int __memp_fclose __P((DB_MPOOLFILE *, u_int32_t));
00037 int __memp_mf_discard __P((DB_MPOOL *, MPOOLFILE *));
00038 int __memp_inmemlist __P((DB_ENV *, char ***, int *));
00039 int __memp_fput_pp __P((DB_MPOOLFILE *, void *, u_int32_t));
00040 int __memp_fput __P((DB_MPOOLFILE *, void *, u_int32_t));
00041 int __memp_fset_pp __P((DB_MPOOLFILE *, void *, u_int32_t));
00042 int __memp_fset __P((DB_MPOOLFILE *, void *, u_int32_t));
00043 void __memp_dbenv_create __P((DB_ENV *));
00044 int __memp_get_cachesize __P((DB_ENV *, u_int32_t *, u_int32_t *, int *));
00045 int __memp_set_cachesize __P((DB_ENV *, u_int32_t, u_int32_t, int));
00046 int __memp_get_mp_max_openfd __P((DB_ENV *, int *));
00047 int __memp_set_mp_max_openfd __P((DB_ENV *, int));
00048 int __memp_get_mp_max_write __P((DB_ENV *, int *, int *));
00049 int __memp_set_mp_max_write __P((DB_ENV *, int, int));
00050 int __memp_get_mp_mmapsize __P((DB_ENV *, size_t *));
00051 int __memp_set_mp_mmapsize __P((DB_ENV *, size_t));
00052 int __memp_nameop __P((DB_ENV *, u_int8_t *, const char *, const char *, const char *, int));
00053 int __memp_get_refcnt __P((DB_ENV *, u_int8_t *, u_int32_t *));
00054 int __memp_ftruncate __P((DB_MPOOLFILE *, db_pgno_t, u_int32_t));
00055 int __memp_alloc_freelist __P((DB_MPOOLFILE *, u_int32_t, db_pgno_t **));
00056 void __memp_free_freelist __P((DB_MPOOLFILE *));
00057 int __memp_get_freelist __P(( DB_MPOOLFILE *, u_int32_t *, db_pgno_t **));
00058 int __memp_extend_freelist __P(( DB_MPOOLFILE *, u_int32_t , db_pgno_t **));
00059 int __memp_open __P((DB_ENV *));
00060 u_int32_t __memp_region_mutex_count __P((DB_ENV *));
00061 int __memp_dbenv_refresh __P((DB_ENV *));
00062 int __memp_register_pp __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
00063 int __memp_register __P((DB_ENV *, int, int (*)(DB_ENV *, db_pgno_t, void *, DBT *), int (*)(DB_ENV *, db_pgno_t, void *, DBT *)));
00064 int __memp_stat_pp __P((DB_ENV *, DB_MPOOL_STAT **, DB_MPOOL_FSTAT ***, u_int32_t));
00065 int __memp_stat_print_pp __P((DB_ENV *, u_int32_t));
00066 int __memp_stat_print __P((DB_ENV *, u_int32_t));
00067 void __memp_stat_hash __P((REGINFO *, MPOOL *, u_int32_t *));
00068 int __memp_sync_pp __P((DB_ENV *, DB_LSN *));
00069 int __memp_sync __P((DB_ENV *, DB_LSN *));
00070 int __memp_fsync_pp __P((DB_MPOOLFILE *));
00071 int __memp_fsync __P((DB_MPOOLFILE *));
00072 int __mp_xxx_fh __P((DB_MPOOLFILE *, DB_FH **));
00073 int __memp_sync_int __P((DB_ENV *, DB_MPOOLFILE *, u_int32_t, db_sync_op, u_int32_t *));
00074 int __memp_mf_sync __P((DB_MPOOL *, MPOOLFILE *, int));
00075 int __memp_trickle_pp __P((DB_ENV *, int, int *));
00076
00077 #if defined(__cplusplus)
00078 }
00079 #endif
00080 #endif