Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

ex_apprec_autop.c

00001 /* Do not edit: automatically built by gen_rec.awk. */
00002 
00003 #include "db_config.h"
00004 
00005 #include <ctype.h>
00006 #include <errno.h>
00007 #include <stdlib.h>
00008 #include <string.h>
00009 
00010 #include <db.h>
00011 
00012 #include "ex_apprec.h"
00013 /*
00014  * PUBLIC: int ex_apprec_mkdir_print __P((DB_ENV *, DBT *, DB_LSN *,
00015  * PUBLIC:     db_recops, void *));
00016  */
00017 int
00018 ex_apprec_mkdir_print(dbenv, dbtp, lsnp, notused2, notused3)
00019         DB_ENV *dbenv;
00020         DBT *dbtp;
00021         DB_LSN *lsnp;
00022         db_recops notused2;
00023         void *notused3;
00024 {
00025         ex_apprec_mkdir_args *argp;
00026         u_int32_t i;
00027         int ch;
00028         int ret;
00029 
00030         notused2 = DB_TXN_PRINT;
00031         notused3 = NULL;
00032 
00033         if ((ret = ex_apprec_mkdir_read(dbenv, dbtp->data, &argp)) != 0)
00034                 return (ret);
00035         (void)printf(
00036             "[%lu][%lu]ex_apprec_mkdir%s: rec: %lu txnid %lx prevlsn [%lu][%lu]\n",
00037             (u_long)lsnp->file,
00038             (u_long)lsnp->offset,
00039             (argp->type & DB_debug_FLAG) ? "_debug" : "",
00040             (u_long)argp->type,
00041             (u_long)argp->txnid->txnid,
00042             (u_long)argp->prev_lsn.file,
00043             (u_long)argp->prev_lsn.offset);
00044         (void)printf("\tdirname: ");
00045         for (i = 0; i < argp->dirname.size; i++) {
00046                 ch = ((u_int8_t *)argp->dirname.data)[i];
00047                 printf(isprint(ch) || ch == 0x0a ? "%c" : "%#x ", ch);
00048         }
00049         (void)printf("\n");
00050         (void)printf("\n");
00051         free(argp);
00052         return (0);
00053 }
00054 
00055 /*
00056  * PUBLIC: int ex_apprec_init_print __P((DB_ENV *, int (***)(DB_ENV *,
00057  * PUBLIC:     DBT *, DB_LSN *, db_recops, void *), size_t *));
00058  */
00059 int
00060 ex_apprec_init_print(dbenv, dtabp, dtabsizep)
00061         DB_ENV *dbenv;
00062         int (***dtabp)__P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00063         size_t *dtabsizep;
00064 {
00065         int __db_add_recovery __P((DB_ENV *,
00066             int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *),
00067             size_t *,
00068             int (*)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), u_int32_t));
00069         int ret;
00070 
00071         if ((ret = __db_add_recovery(dbenv, dtabp, dtabsizep,
00072             ex_apprec_mkdir_print, DB_ex_apprec_mkdir)) != 0)
00073                 return (ret);
00074         return (0);
00075 }

Generated on Sun Dec 25 12:14:25 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2