Commit 81bbb474 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Add set_errfile to samples. Addresses #72.

git-svn-id: file:///svn/tokudb@1250 c7de825b-a66e-492c-adef-691d508d4ae1
parent c788805f
...@@ -81,6 +81,7 @@ void sample_db_env_offsets (void) { ...@@ -81,6 +81,7 @@ void sample_db_env_offsets (void) {
STRUCT_SETUP(DB_ENV, set_cachesize, "int (*%s) (DB_ENV *, u_int32_t, u_int32_t, int)"); STRUCT_SETUP(DB_ENV, set_cachesize, "int (*%s) (DB_ENV *, u_int32_t, u_int32_t, int)");
STRUCT_SETUP(DB_ENV, set_data_dir, "int (*%s) (DB_ENV *, const char *)"); STRUCT_SETUP(DB_ENV, set_data_dir, "int (*%s) (DB_ENV *, const char *)");
STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(const char *, char *))"); STRUCT_SETUP(DB_ENV, set_errcall, "void (*%s) (DB_ENV *, void (*)(const char *, char *))");
STRUCT_SETUP(DB_ENV, set_errfile, "FILE*%s");
STRUCT_SETUP(DB_ENV, set_errpfx, "void (*%s) (DB_ENV *, const char *)"); STRUCT_SETUP(DB_ENV, set_errpfx, "void (*%s) (DB_ENV *, const char *)");
STRUCT_SETUP(DB_ENV, set_flags, "int (*%s) (DB_ENV *, u_int32_t, int)"); STRUCT_SETUP(DB_ENV, set_flags, "int (*%s) (DB_ENV *, u_int32_t, int)");
STRUCT_SETUP(DB_ENV, set_lg_bsize, "int (*%s) (DB_ENV *, u_int32_t)"); STRUCT_SETUP(DB_ENV, set_lg_bsize, "int (*%s) (DB_ENV *, u_int32_t)");
......
...@@ -15,6 +15,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -15,6 +15,7 @@ struct fieldinfo db_env_fields32[] = {
{"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 264, 4}, {"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 264, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 272, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 272, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 288, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 288, 4},
{"FILE*set_errfile", 292, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 296, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 296, 4},
{"int (*set_flags) (DB_ENV *, u_int32_t, int)", 304, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 304, 4},
{"int (*set_tmp_dir) (DB_ENV *, const char *)", 324, 4}, {"int (*set_tmp_dir) (DB_ENV *, const char *)", 324, 4},
......
...@@ -15,6 +15,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -15,6 +15,7 @@ struct fieldinfo db_env_fields32[] = {
{"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 296, 4}, {"int (*open) (DB_ENV *, const char *, u_int32_t, int)", 296, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 336, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 336, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 348, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 348, 4},
{"FILE*set_errfile", 356, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 364, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 364, 4},
{"int (*get_flags) (DB_ENV *, u_int32_t *)", 372, 4}, {"int (*get_flags) (DB_ENV *, u_int32_t *)", 372, 4},
{"int (*set_flags) (DB_ENV *, u_int32_t, int)", 376, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 376, 4},
......
...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = {
{"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 716, 4}, {"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 716, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 720, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 720, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 728, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 728, 4},
{"FILE*set_errfile", 732, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 736, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 736, 4},
{"int (*set_flags) (DB_ENV *, u_int32_t, int)", 744, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 744, 4},
{"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 756, 4}, {"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 756, 4},
......
...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = {
{"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 776, 4}, {"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 776, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 780, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 780, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 788, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 788, 4},
{"FILE*set_errfile", 792, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 796, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 796, 4},
{"int (*set_flags) (DB_ENV *, u_int32_t, int)", 808, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 808, 4},
{"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 820, 4}, {"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 820, 4},
......
...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = { ...@@ -20,6 +20,7 @@ struct fieldinfo db_env_fields32[] = {
{"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 816, 4}, {"int (*set_cachesize) (DB_ENV *, u_int32_t, u_int32_t, int)", 816, 4},
{"int (*set_data_dir) (DB_ENV *, const char *)", 824, 4}, {"int (*set_data_dir) (DB_ENV *, const char *)", 824, 4},
{"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 832, 4}, {"void (*set_errcall) (DB_ENV *, void (*)(const char *, char *))", 832, 4},
{"FILE*set_errfile", 836, 4},
{"void (*set_errpfx) (DB_ENV *, const char *)", 840, 4}, {"void (*set_errpfx) (DB_ENV *, const char *)", 840, 4},
{"int (*set_flags) (DB_ENV *, u_int32_t, int)", 852, 4}, {"int (*set_flags) (DB_ENV *, u_int32_t, int)", 852, 4},
{"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 864, 4}, {"int (*set_lg_bsize) (DB_ENV *, u_int32_t)", 864, 4},
......
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