sample_offsets_64_4_5.h 5.15 KB
Newer Older
Rich Prohaska's avatar
Rich Prohaska committed
1 2 3 4 5 6 7 8 9 10 11
/* BDB offsets on a 64-bit machine */
#define DB_VERSION_MAJOR_64 4
#define DB_VERSION_MINOR_64 5
#define DB_VERSION_STRING_64 "Berkeley DB Compatability Header 4.5"
struct fieldinfo db_btree_stat_fields64[] = {
  {"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_fields64[] = {
  {"void *app_private", 104, 8},
12
  {"void *api1_internal", 544, 8},
Rich Prohaska's avatar
Rich Prohaska committed
13
  {"int  (*close) (DB_ENV *, u_int32_t)", 616, 8},
14 15
  {"int  (*dbremove) (DB_ENV *, DB_TXN *, const char *, const char *, u_int32_t)", 624, 8},
  {"int  (*dbrename) (DB_ENV *, DB_TXN *, const char *, const char *, const char *, u_int32_t)", 632, 8},
Rich Prohaska's avatar
Rich Prohaska committed
16
  {"void (*err) (const DB_ENV *, int, const char *, ...)", 640, 8},
17 18
  {"int  (*get_cachesize) (DB_ENV *, u_int32_t *, u_int32_t *, int *)", 672, 8},
  {"int  (*get_flags) (DB_ENV *, u_int32_t *)", 712, 8},
19
  {"int  (*get_lg_max) (DB_ENV *, u_int32_t*)", 752, 8},
20
  {"int  (*get_lk_max_locks) (DB_ENV *, u_int32_t *)", 792, 8},
Rich Prohaska's avatar
Rich Prohaska committed
21 22 23 24 25
  {"int  (*log_archive) (DB_ENV *, char **[], u_int32_t)", 968, 8},
  {"int  (*log_flush) (DB_ENV *, const DB_LSN *)", 992, 8},
  {"int  (*open) (DB_ENV *, const char *, u_int32_t, int)", 1200, 8},
  {"int  (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 1424, 8},
  {"int  (*set_data_dir) (DB_ENV *, const char *)", 1432, 8},
26
  {"void (*set_errcall) (DB_ENV *, void (*)(const DB_ENV *, const char *, const char *))", 1448, 8},
27
  {"void (*set_errfile) (DB_ENV *, FILE*)", 1456, 8},
Rich Prohaska's avatar
Rich Prohaska committed
28 29 30 31 32 33
  {"void (*set_errpfx) (DB_ENV *, const char *)", 1464, 8},
  {"int  (*set_flags) (DB_ENV *, u_int32_t, int)", 1488, 8},
  {"int  (*set_lg_bsize) (DB_ENV *, u_int32_t)", 1512, 8},
  {"int  (*set_lg_dir) (DB_ENV *, const char *)", 1520, 8},
  {"int  (*set_lg_max) (DB_ENV *, u_int32_t)", 1536, 8},
  {"int  (*set_lk_detect) (DB_ENV *, u_int32_t)", 1560, 8},
34
  {"int  (*set_lk_max_locks) (DB_ENV *, u_int32_t)", 1576, 8},
Rich Prohaska's avatar
Rich Prohaska committed
35 36 37 38
  {"int  (*set_tmp_dir) (DB_ENV *, const char *)", 1696, 8},
  {"int  (*set_verbose) (DB_ENV *, u_int32_t, int)", 1720, 8},
  {"int  (*txn_begin) (DB_ENV *, DB_TXN *, DB_TXN **, u_int32_t)", 1736, 8},
  {"int  (*txn_checkpoint) (DB_ENV *, u_int32_t, u_int32_t, u_int32_t)", 1744, 8},
39
  {"int  (*txn_recover) (DB_ENV *, DB_PREPLIST preplist[/*count*/], long count, /*out*/ long *retp, u_int32_t flags)", 1752, 8},
Rich Prohaska's avatar
Rich Prohaska committed
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
  {"int  (*txn_stat) (DB_ENV *, DB_TXN_STAT **, u_int32_t)", 1760, 8},
  {0, 1800, 1800} /* size of whole struct */
};
struct fieldinfo db_key_range_fields64[] = {
  {"double less", 0, 8},
  {"double equal", 8, 8},
  {"double greater", 16, 8},
  {0, 1800, 1800} /* size of whole struct */
};
struct fieldinfo db_lsn_fields64[] = {
  {0, 8, 8} /* size of whole struct */
};
struct fieldinfo db_fields64[] = {
  {"void *app_private", 32, 8},
  {"DB_ENV *dbenv", 40, 8},
55
  {"void *api_internal", 440, 8},
Rich Prohaska's avatar
Rich Prohaska committed
56 57 58
  {"int (*close) (DB*, u_int32_t)", 488, 8},
  {"int (*cursor) (DB *, DB_TXN *, DBC **, u_int32_t)", 504, 8},
  {"int (*del) (DB *, DB_TXN *, DBT *, u_int32_t)", 512, 8},
Rich Prohaska's avatar
Rich Prohaska committed
59
  {"int (*fd) (DB *, int *)", 536, 8},
Rich Prohaska's avatar
Rich Prohaska committed
60
  {"int (*get) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)", 544, 8},
61 62
  {"int (*get_flags) (DB *, u_int32_t *)", 616, 8},
  {"int (*get_pagesize) (DB *, u_int32_t *)", 672, 8},
Rich Prohaska's avatar
Rich Prohaska committed
63 64 65 66 67
  {"int (*key_range) (DB *, DB_TXN *, DBT *, DB_KEY_RANGE *, u_int32_t)", 744, 8},
  {"int (*open) (DB *, DB_TXN *, const char *, const char *, DBTYPE, u_int32_t, int)", 752, 8},
  {"int (*put) (DB *, DB_TXN *, DBT *, DBT *, u_int32_t)", 768, 8},
  {"int (*remove) (DB *, const char *, const char *, u_int32_t)", 776, 8},
  {"int (*rename) (DB *, const char *, const char *, const char *, u_int32_t)", 784, 8},
68
  {"void (*set_errfile) (DB *, FILE*)", 864, 8},
Rich Prohaska's avatar
Rich Prohaska committed
69 70 71
  {"int (*set_flags) (DB *, u_int32_t)", 888, 8},
  {"int (*set_pagesize) (DB *, u_int32_t)", 944, 8},
  {"int (*stat) (DB *, void *, u_int32_t)", 1000, 8},
72
  {"int (*truncate) (DB *, DB_TXN *, u_int32_t *, u_int32_t)", 1024, 8},
Rich Prohaska's avatar
Rich Prohaska committed
73 74 75 76 77 78 79 80 81
  {"int (*verify) (DB *, const char *, const char *, FILE *, u_int32_t)", 1040, 8},
  {0, 1104, 1104} /* size of whole struct */
};
struct fieldinfo db_txn_active_fields64[] = {
  {"u_int32_t txnid", 0, 4},
  {"DB_LSN lsn", 24, 8},
  {0, 232, 232} /* size of whole struct */
};
struct fieldinfo db_txn_fields64[] = {
82
  {"DB_ENV *mgrp /*In TokuDB, mgrp is a DB_ENV not a DB_TXNMGR*/", 0, 8},
Yoni Fogel's avatar
Yoni Fogel committed
83
  {"DB_TXN *parent", 8, 8},
84
  {"void *api_internal", 160, 8},
Rich Prohaska's avatar
Rich Prohaska committed
85 86 87
  {"int (*abort) (DB_TXN *)", 184, 8},
  {"int (*commit) (DB_TXN*, u_int32_t)", 192, 8},
  {"u_int32_t (*id) (DB_TXN *)", 216, 8},
88
  {"int (*prepare) (DB_TXN*, u_int8_t gid[DB_GID_SIZE])", 224, 8},
Rich Prohaska's avatar
Rich Prohaska committed
89 90 91 92 93 94 95 96
  {0, 264, 264} /* size of whole struct */
};
struct fieldinfo db_txn_stat_fields64[] = {
  {"u_int32_t st_nactive", 36, 4},
  {"DB_TXN_ACTIVE *st_txnarray", 56, 8},
  {0, 80, 80} /* size of whole struct */
};
struct fieldinfo dbc_fields64[] = {
97
  {"DB *dbp", 0, 8},
Rich Prohaska's avatar
Rich Prohaska committed
98
  {"int (*c_close) (DBC *)", 304, 8},
99
  {"int (*c_count) (DBC *, db_recno_t *, u_int32_t)", 312, 8},
Rich Prohaska's avatar
Rich Prohaska committed
100 101 102 103 104 105 106 107 108 109 110
  {"int (*c_del) (DBC *, u_int32_t)", 320, 8},
  {"int (*c_get) (DBC *, DBT *, DBT *, u_int32_t)", 336, 8},
  {0, 424, 424} /* size of whole struct */
};
struct fieldinfo dbt_fields64[] = {
  {"void*data", 0, 8},
  {"u_int32_t size", 8, 4},
  {"u_int32_t ulen", 12, 4},
  {"u_int32_t flags", 32, 4},
  {0, 40, 40} /* size of whole struct */
};