/titanic_41/usr/src/cmd/sendmail/db/db/ |
H A D | db_appinit.c | 73 db_appinit(db_home, db_config, dbenv, flags) in db_appinit() argument 76 DB_ENV *dbenv; 87 if (dbenv == NULL) 103 if ((ret = __db_fchk(dbenv, "db_appinit", flags, OKFLAGS)) != 0) 112 F_SET(dbenv, DB_ENV_THREAD); 115 if ((ret = __db_home(dbenv, db_home, flags)) != 0) 120 if ((ret = __db_parse(dbenv, *p)) != 0) 131 if (dbenv->db_home != NULL) { 133 if (strlen(dbenv->db_home) + 138 (void)strcpy(buf, dbenv->db_home); [all …]
|
H A D | db_err.c | 49 __db_fchk(dbenv, name, flags, ok_flags) in __db_fchk() argument 50 DB_ENV *dbenv; in __db_fchk() 54 return (flags & ~ok_flags ? __db_ferr(dbenv, name, 0) : 0); 65 __db_fcchk(dbenv, name, flags, flag1, flag2) in __db_fcchk() argument 66 DB_ENV *dbenv; in __db_fcchk() 71 (flags & flag2) ? __db_ferr(dbenv, name, 1) : 0); 81 __db_ferr(dbenv, name, iscombo) in __db_ferr() argument 82 const DB_ENV *dbenv; in __db_ferr() 86 __db_err(dbenv, "illegal flag %sspecified to %s", 103 __db_err(const DB_ENV *dbenv, const char *fmt, ...) in __db_err() argument [all …]
|
H A D | db_iface.c | 46 return (__db_rdonly(dbp->dbenv, "c_del")); 53 return (__db_ferr(dbp->dbenv, "DBcursor->c_del", 0)); 111 err: return (__db_ferr(dbp->dbenv, "DBcursor->c_get", 0)); 122 return (__db_keyempty(dbp->dbenv)); 152 return (__db_rdonly(dbp->dbenv, "c_put")); 179 err: return (__db_ferr(dbp->dbenv, "DBcursor->c_put", 0)); 190 return (__db_keyempty(dbp->dbenv)); 213 return (__db_ferr(dbp->dbenv, "DB->close", 0)); 233 return (__db_rdonly(dbp->dbenv, "delete")); 240 return (__db_ferr(dbp->dbenv, "DB->del", 0)); [all …]
|
H A D | db_apprec.c | 41 __db_apprec(dbenv, flags) in __db_apprec() argument 42 DB_ENV *dbenv; in __db_apprec() 54 lp = dbenv->lg_info; 110 __db_err(dbenv, "First log record not found"); 115 __db_err(dbenv, "Invalid checkpoint record at [%ld][%ld]\n", 132 if (dbenv->tx_recover != NULL) 133 ret = dbenv->tx_recover(lp, 168 if (dbenv->db_verbose) 169 __db_err(lp->dbenv, "Recovery starting from [%lu][%lu]", 175 if (dbenv->tx_recover != NULL) [all …]
|
H A D | db.c | 80 __db_err(dbenv, \ 92 db_open(fname, type, flags, mode, dbenv, dbinfo, dbpp) in db_open() argument 97 DB_ENV *dbenv; 120 if ((ret = __db_fchk(dbenv, "db_open", flags, OKFLAGS)) != 0) 123 if (dbenv != NULL) { 128 if (LF_ISSET(DB_THREAD) && !F_ISSET(dbenv, DB_ENV_THREAD)) { 129 __db_err(dbenv, 138 if (dbenv->mp_info != NULL && 140 __db_err(dbenv, 149 dbp->dbenv = dbenv; [all …]
|
H A D | db_byteorder.c | 45 __db_byteorder(dbenv, lorder) in __db_byteorder() argument 46 DB_ENV *dbenv; in __db_byteorder() 65 __db_err(dbenv,
|
/titanic_41/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_open.c | 31 memp_open(path, flags, mode, dbenv, retp) in memp_open() argument 35 DB_ENV *dbenv; 48 if ((ret = __db_fchk(dbenv, "memp_open", flags, OKFLAGS)) != 0) 52 cachesize = dbenv == NULL ? 0 : dbenv->mp_size; 60 dbmp->dbenv = dbenv; 64 (dbenv == NULL && path == NULL) || LF_ISSET(DB_MPOOL_PRIVATE); 156 __memp_panic(dbenv) in __memp_panic() argument 157 DB_ENV *dbenv; in __memp_panic() 159 if (dbenv->mp_info != NULL) 160 dbenv->mp_info->mp->rlayout.panic = 1; [all …]
|
H A D | mp_fopen.c | 49 if ((ret = __db_fchk(dbmp->dbenv, 55 __db_err(dbmp->dbenv, "memp_fopen: pagesize not specified"); 83 DB_ENV *dbenv; local 93 dbenv = dbmp->dbenv; 132 __db_err(dbenv, 140 if ((ret = __db_appname(dbenv, 146 __db_err(dbenv, "%s: %s", rpath, strerror(ret)); 165 __db_err(dbenv, "%s: %s", rpath, strerror(ret)); 171 __db_err(dbenv, 191 if ((ret = __os_fileid(dbenv, rpath, 0, idbuf)) != 0) [all …]
|
H A D | mp_fset.c | 47 return (__db_ferr(dbmp->dbenv, "memp_fset", 1)); 49 if ((ret = __db_fchk(dbmp->dbenv, "memp_fset", flags, 52 if ((ret = __db_fcchk(dbmp->dbenv, "memp_fset", 57 __db_err(dbmp->dbenv,
|
H A D | mp_fput.c | 47 if ((ret = __db_fchk(dbmp->dbenv, "memp_fput", flags, 50 if ((ret = __db_fcchk(dbmp->dbenv, "memp_fput", 55 __db_err(dbmp->dbenv, 66 __db_err(dbmp->dbenv, 106 __db_err(dbmp->dbenv, "%s: page %lu: unpinned page returned",
|
H A D | mp_bh.c | 199 __db_err(dbmp->dbenv, 262 DB_ENV *dbenv; local 274 dbenv = dbmp->dbenv; 316 lg_info = dbenv->lg_info; 340 if (dbmfp->fd == -1 && ((ret = __db_appname(dbenv, 344 __db_err(dbenv, 359 __db_panic(dbenv, ret); 433 syserr: __db_err(dbenv, "%s: %s failed for page %lu", 507 __db_err(dbmp->dbenv, "%s: %s failed for page %lu", 575 if ((ret = __db_appname(dbmp->dbenv, DB_APP_DATA,
|
H A D | mp_sync.c | 39 DB_ENV *dbenv; local 46 dbenv = dbmp->dbenv; 49 if (dbenv->lg_info == NULL) { 50 __db_err(dbenv, "memp_sync: requires logging"); 211 __db_err(dbenv, "%s: unable to flush page: %lu", 507 __db_err(dbmp->dbenv, "%s: unable to flush page: %lu",
|
/titanic_41/usr/src/cmd/sendmail/db/lock/ |
H A D | lock_deadlock.c | 67 DB_ENV *dbenv; local 76 __db_fchk(lt->dbenv, "lock_detect", flags, DB_LOCK_CONFLICT)) != 0) 80 dbenv = lt->dbenv; 84 do_pass = dbenv->lk_info->region->need_dd != 0; 92 if ((ret = __dd_build(dbenv, &bitmap, &nlockers, &idmap)) != 0) 98 if (dbenv->db_verbose != 0) 99 __dd_debug(dbenv, idmap, bitmap, nlockers); 119 __db_err(dbenv, 152 __db_err(dbenv, 171 if (dbenv->db_verbose != 0 && killid != BAD_KILLID) [all …]
|
H A D | lock_region.c | 40 lock_open(path, flags, mode, dbenv, ltp) in lock_open() argument 44 DB_ENV *dbenv; 57 if ((ret = __db_fchk(dbenv, "lock_open", flags, OKFLAGS)) != 0) 63 lt->dbenv = dbenv; 69 if (dbenv != NULL) { 70 if (dbenv->lk_modes != 0) { 71 lock_modes = dbenv->lk_modes; 74 if (dbenv->lk_max != 0) { 75 maxlocks = dbenv->lk_max; 81 lt->reginfo.dbenv = dbenv; [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/txn/ |
H A D | txn.c | 115 txn_open(path, flags, mode, dbenv, mgrpp) in txn_open() argument 119 DB_ENV *dbenv; 127 if (dbenv == NULL) 134 if ((ret = __db_fchk(dbenv, "txn_open", flags, OKFLAGS)) != 0) 137 maxtxns = dbenv->tx_max != 0 ? dbenv->tx_max : 20; 145 tmgrp->dbenv = dbenv; 147 dbenv->tx_recover == NULL ? __db_dispatch : dbenv->tx_recover; 152 tmgrp->reginfo.dbenv = dbenv; 165 tmgrp->reginfo.flags = dbenv->tx_max == 0 ? REGION_SIZEDEF : 0; 180 __db_err(dbenv, "txn_open: Bad magic number"); [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/os/ |
H A D | os_tmpdir.c | 40 __os_tmpdir(dbenv, flags) in __os_tmpdir() argument 41 DB_ENV *dbenv; in __os_tmpdir() 73 __db_err(dbenv, "illegal TMPDIR environment variable"); 78 __db_err(dbenv, "illegal TEMP environment variable"); 83 __db_err(dbenv, "illegal TMP environment variable"); 89 __db_err(dbenv, 114 return (__os_strdup(p, &dbenv->db_tmp_dir));
|
H A D | os_fid.c | 33 __os_fileid(dbenv, fname, timestamp, fidp) in __os_fileid() argument 34 DB_ENV *dbenv; in __os_fileid() 54 __db_err(dbenv, "%s: %s", fname, strerror(errno));
|
/titanic_41/usr/src/cmd/sendmail/db/log/ |
H A D | log.c | 38 log_open(path, flags, mode, dbenv, lpp) in log_open() argument 42 DB_ENV *dbenv; 55 if ((ret = __db_fchk(dbenv, "log_open", flags, OKFLAGS)) != 0) 65 dblp->dbenv = dbenv; 78 dblp->reginfo.dbenv = dbenv; 106 lp->persist.lg_max = dbenv == NULL ? 0 : dbenv->lg_max; 147 (void)log_unlink(path, 1, dbenv); 165 __log_panic(dbenv) in __log_panic() argument 166 DB_ENV *dbenv; in __log_panic() 168 if (dbenv->lg_info != NULL) [all …]
|
H A D | log_findckp.c | 66 verbose = lp->dbenv != NULL && lp->dbenv->db_verbose != 0; 98 __db_err(lp->dbenv, "Checkpoint at: [%lu][%lu]", 100 __db_err(lp->dbenv, "Checkpoint LSN: [%lu][%lu]", 103 __db_err(lp->dbenv, "Previous checkpoint: [%lu][%lu]",
|
H A D | log_get.c | 47 return (__db_ferr(dblp->dbenv, "log_get", 1)); 51 return (__db_ferr(dblp->dbenv, "log_get", 1)); 53 return (__db_ferr(dblp->dbenv, "threaded data", 1)); 113 __db_err(dblp->dbenv, 299 __db_err(dblp->dbenv, "log_get: checksum mismatch"); 320 __db_err(dblp->dbenv, "log_get: %s", strerror(ret)); 322 __db_err(dblp->dbenv,
|
H A D | log_auto.c | 206 __log_init_print(dbenv) in __log_init_print() argument 207 DB_ENV *dbenv; in __log_init_print() 211 if ((ret = __db_add_recovery(dbenv, 221 __log_init_recover(dbenv) in __log_init_recover() argument 222 DB_ENV *dbenv; in __log_init_recover() 226 if ((ret = __db_add_recovery(dbenv,
|
/titanic_41/usr/src/cmd/sendmail/db/xa/ |
H A D | xa_db.c | 55 DB_ENV *dbenv; local 76 (ret = __db_rmid_to_env(rp->rmid, &dbenv, 1)) != 0) 79 dbenv = TAILQ_FIRST(&DB_GLOBAL(db_envq)); 81 type, flags, mode, dbenv, dbinfo, &real_dbp)) != 0) 95 dbp->dbenv = dbenv; 146 txn = dbp->dbenv->xa_txn; 182 return (__db_eopnotsup(real_dbp->dbenv)); 195 txn = dbp->dbenv->xa_txn; 211 txn = dbp->dbenv->xa_txn; 227 txn = dbp->dbenv->xa_txn;
|
H A D | xa_map.c | 107 __db_xid_to_txn(dbenv, xid, offp) in __db_xid_to_txn() argument 108 DB_ENV *dbenv; in __db_xid_to_txn() 120 tmr = dbenv->tx_info->region; 122 LOCK_TXNREGION(dbenv->tx_info); 128 UNLOCK_TXNREGION(dbenv->tx_info);
|
/titanic_41/usr/src/cmd/sendmail/db/include/ |
H A D | hash.h | 97 (void)lock_put((D)->dbenv->lk_info, (COPY)->lock); \ 101 (void)lock_put((D)->dbenv->lk_info, (ORIG)->lock); \ 113 (R) = lock_get((D)->dbenv->lk_info, (I)->dbc->locker, \ 120 (void)lock_put((D)->dbenv->lk_info, (I)->hlock); \ 132 (void)lock_put((D)->dbenv->lk_info, (I)->hlock); \ 142 if (((R) = lock_get((D)->dbenv->lk_info, \ 145 (R) = lock_put((D)->dbenv->lk_info, (I)->hlock);\
|
/titanic_41/usr/src/cmd/sendmail/db/btree/ |
H A D | bt_page.c | 108 if ((ret = __bam_pg_alloc_log(dbp->dbenv->lg_info, dbc->txn, 186 if ((ret = __bam_pg_free_log(dbp->dbenv->lg_info, 248 lock_vec(dbp->dbenv->lk_info, dbc->locker, 0, &req, 1, NULL); 295 ret = lock_vec(dbp->dbenv->lk_info, 298 ret = lock_tvec(dbp->dbenv->lk_info, 309 ret = lock_get(dbp->dbenv->lk_info, 312 ret = lock_tget(dbp->dbenv->lk_info,
|