Searched refs:dblp (Results 1 - 8 of 8) sorted by relevance
/illumos-gate/usr/src/cmd/sendmail/db/log/ |
H A D | log.c | 45 DB_LOG *dblp; local 59 if ((ret = __os_calloc(1, sizeof(DB_LOG), &dblp)) != 0) 62 if (path != NULL && (ret = __os_strdup(path, &dblp->dir)) != 0) 65 dblp->dbenv = dbenv; 66 dblp->lfd = -1; 67 ZERO_LSN(dblp->c_lsn); 68 dblp->c_fd = -1; 78 dblp->reginfo.dbenv = dbenv; 79 dblp->reginfo.appname = DB_APP_LOG; 81 dblp [all...] |
H A D | log_put.c | 42 log_put(dblp, lsn, dbt, flags) 43 DB_LOG *dblp; 50 LOG_PANIC_CHECK(dblp); 55 return (__db_ferr(dblp->dbenv, "log_put", 0)); 57 LOCK_LOGREGION(dblp); 58 ret = __log_put(dblp, lsn, dbt, flags); 59 UNLOCK_LOGREGION(dblp); 70 __log_put(dblp, lsn, dbt, flags) 71 DB_LOG *dblp; 83 lp = dblp [all...] |
H A D | log_get.c | 33 log_get(dblp, alsn, dbt, flags) 34 DB_LOG *dblp; 41 LOG_PANIC_CHECK(dblp); 47 return (__db_ferr(dblp->dbenv, "log_get", 1)); 49 if (F_ISSET(dblp, DB_AM_THREAD)) { 51 return (__db_ferr(dblp->dbenv, "log_get", 1)); 53 return (__db_ferr(dblp->dbenv, "threaded data", 1)); 56 LOCK_LOGREGION(dblp); 63 ret = __log_get(dblp, alsn, dbt, flags, 0); 73 ret = __log_get(dblp, als [all...] |
H A D | log_register.c | 30 log_register(dblp, dbp, name, type, idp) 31 DB_LOG *dblp; 50 LOG_PANIC_CHECK(dblp); 54 __db_err(dblp->dbenv, "log_register: unknown DB file type"); 59 if ((ret = __db_appname(dblp->dbenv, 63 LOCK_LOGREGION(dblp); 71 for (maxid = 0, fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname); 90 else if ((ret = __db_shalloc(dblp->addr, sizeof(FNAME), 0, &fnp)) != 0) 100 if ((ret = __db_shalloc(dblp->addr, len, 0, &namep)) != 0) 102 fnp->name_off = R_OFFSET(dblp, name [all...] |
H A D | log_archive.c | 40 log_archive(dblp, listp, flags, db_malloc) 41 DB_LOG *dblp; 55 LOG_PANIC_CHECK(dblp); 60 __db_fchk(dblp->dbenv, "log_archive", flags, OKFLAGS)) != 0) 63 __db_fcchk(dblp->dbenv, 82 return (__build_data(dblp, pref, listp, db_malloc)); 85 if (F_ISSET(dblp, DB_AM_THREAD)) 87 if ((ret = log_get(dblp, &stable_lsn, &rec, DB_LAST)) != 0) 89 if (F_ISSET(dblp, DB_AM_THREAD)) 94 if ((ret = __log_findckp(dblp, [all...] |
H A D | log_rec.c | 429 __log_lid_to_fname(dblp, lid, fnamep) 430 DB_LOG *dblp; 436 for (fnp = SH_TAILQ_FIRST(&dblp->lp->fq, __fname);
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | log.h | 30 #define LOCK_LOGTHREAD(dblp) \ 31 if (F_ISSET(dblp, DB_AM_THREAD)) \ 32 (void)__db_mutex_lock((dblp)->mutexp, -1) 33 #define UNLOCK_LOGTHREAD(dblp) \ 34 if (F_ISSET(dblp, DB_AM_THREAD)) \ 35 (void)__db_mutex_unlock((dblp)->mutexp, -1); 36 #define LOCK_LOGREGION(dblp) \ 37 (void)__db_mutex_lock(&((RLAYOUT *)(dblp)->lp)->lock, \ 38 (dblp)->reginfo.fd) 39 #define UNLOCK_LOGREGION(dblp) \ [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/txn/ |
H A D | txn.c | 743 DB_LOG *dblp; local 768 dblp = mgr->dbenv->lg_info; 769 LOCK_LOGREGION(dblp); 771 dblp->lp->stat.st_wc_mbytes * 1024 + 772 dblp->lp->stat.st_wc_bytes / 1024; 773 ckp_lsn = dblp->lp->lsn; 774 UNLOCK_LOGREGION(dblp); 788 dblp = mgr->dbenv->lg_info; 789 LOCK_LOGREGION(dblp); 790 ckp_lsn = dblp [all...] |
Completed in 66 milliseconds