/* BDB offsets on a 32-bit machine */ #define DB_VERSION_MAJOR_32 4 #define DB_VERSION_MINOR_32 1 #define DB_VERSION_STRING_32 "Berkeley DB Compatability Header 4.1" struct fieldinfo db_btree_stat_fields32[] = { {"u_int32_t bt_nkeys", 12, 4}, {"u_int32_t bt_ndata", 16, 4}, {0, 80, 80} /* size of whole struct */ }; struct fieldinfo db_env_fields32[] = { {"void *app_private", 36, 4}, {"int (*close) (DB_ENV *, u_int32_t)", 244, 4}, {"void (*err) (const DB_ENV *, int, const char *, ...)", 256, 4}, {"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 264, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 272, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 288, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 296, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 304, 4}, {"int (*set_tmp_dir) (DB_ENV *, const char *)", 324, 4}, {"int (*set_verbose) (DB_ENV *, u_int32_t, int)", 328, 4}, {"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 336, 4}, {"int (*set_lg_dir) (DB_ENV *, const char *)", 340, 4}, {"int (*set_lg_max) (DB_ENV *, u_int32_t)", 344, 4}, {"int (*log_archive) (DB_ENV *, char **[], u_int32_t)", 352, 4}, {"int (*log_flush) (DB_ENV *, const DB_LSN *)", 364, 4}, {"int (*set_lk_detect) (DB_ENV *, u_int32_t)", 384, 4}, {"int (*set_lk_max) (DB_ENV *, u_int32_t)", 388, 4}, {"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 452, 4}, {"int (*txn_begin) (DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t)", 540, 4}, {"int (*txn_checkpoint) (DB_ENV *, u_int32_t, u_int32_t, u_int32_t)", 544, 4}, {"int (*txn_stat) (DB_ENV *, DB_TXN_STAT **, u_int32_t)", 556, 4}, {0, 576, 576} /* size of whole struct */ }; struct fieldinfo db_key_range_fields32[] = { {"double less", 0, 8}, {"double equal", 8, 8}, {"double greater", 16, 8}, {0, 576, 576} /* size of whole struct */ }; struct fieldinfo db_lsn_fields32[] = { {0, 8, 8} /* size of whole struct */ }; struct fieldinfo db_fields32[] = { {"void *app_private", 16, 4}, {"DB_ENV *dbenv", 20, 4}, {"int (*associate) (DB*, DB_TXN*, DB*, int(*)(DB*, const DBT*, const DBT*, DBT*), u_int32_t)", 256, 4}, {"int (*close) (DB*, u_int32_t)", 260, 4}, {"int (*cursor) (DB *, DB_TXN *, DBC **, u_int32_t)", 264, 4}, {"int (*del) (DB *, DB_TXN *, DBT *, u_int32_t)", 268, 4}, {"int (*get) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)", 284, 4}, {"int (*pget) (DB *, DB_TXN *, DBT *, DBT *, DBT *, u_int32_t)", 288, 4}, {"int (*key_range) (DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)", 304, 4}, {"int (*open) (DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)", 308, 4}, {"int (*put) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)", 312, 4}, {"int (*remove) (DB *, const char *, const char *, u_int32_t)", 316, 4}, {"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 320, 4}, {"int (*set_dup_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 344, 4}, {"int (*set_flags) (DB *, u_int32_t)", 368, 4}, {"int (*set_pagesize) (DB *, u_int32_t)", 376, 4}, {"int (*stat) (DB *, void *, u_int32_t)", 384, 4}, {"int (*verify) (DB *, const char *, const char *, FILE *, u_int32_t)", 396, 4}, {"int (*set_bt_compare) (DB *, int (*)(DB *, const DBT *, const DBT *))", 400, 4}, {0, 472, 472} /* size of whole struct */ }; struct fieldinfo db_txn_active_fields32[] = { {"u_int32_t txnid", 0, 4}, {"DB_LSN lsn", 8, 8}, {0, 16, 16} /* size of whole struct */ }; struct fieldinfo db_txn_fields32[] = { {"int (*abort) (DB_TXN *)", 76, 4}, {"int (*commit) (DB_TXN*, u_int32_t)", 80, 4}, {"u_int32_t (*id) (DB_TXN *)", 88, 4}, {0, 104, 104} /* size of whole struct */ }; struct fieldinfo db_txn_stat_fields32[] = { {"u_int32_t st_nactive", 32, 4}, {"DB_TXN_ACTIVE *st_txnarray", 44, 4}, {0, 60, 60} /* size of whole struct */ }; struct fieldinfo dbc_fields32[] = { {"int (*c_close) (DBC *)", 188, 4}, {"int (*c_del) (DBC *, u_int32_t)", 196, 4}, {"int (*c_get) (DBC *, DBT *, DBT *, u_int32_t)", 204, 4}, {"int (*c_pget) (DBC *, DBT *, DBT *, DBT *, u_int32_t)", 208, 4}, {"int (*c_put) (DBC *, DBT *, DBT *, u_int32_t)", 212, 4}, {0, 252, 252} /* size of whole struct */ }; struct fieldinfo dbt_fields32[] = { {"void*data", 0, 4}, {"u_int32_t size", 4, 4}, {"u_int32_t ulen", 8, 4}, {"u_int32_t flags", 20, 4}, {0, 24, 24} /* size of whole struct */ };