• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/db-4.7.25.NC/env/

Lines Matching defs:renv

34 	REGENV *renv;
50 loop: renv = NULL;
226 renv = infop->primary;
232 if (renv->majver != DB_VERSION_MAJOR ||
233 renv->minver != DB_VERSION_MINOR) {
234 if (renv->majver != 0 || renv->minver != 0) {
238 renv->majver, renv->minver);
244 if (renv->signature != signature) {
264 if (renv->panic && !F_ISSET(dbenv, DB_ENV_NOPANIC)) {
268 if (renv->magic != DB_REGION_MAGIC)
306 FLD_CLR(*init_flagsp, renv->init_flags);
313 *init_flagsp = renv->init_flags;
395 renv = infop->primary;
396 renv->magic = 0;
397 renv->panic = 0;
400 renv->majver = (u_int32_t)majver;
401 renv->minver = (u_int32_t)minver;
402 renv->patchver = (u_int32_t)patchver;
403 renv->signature = signature;
405 (void)time(&renv->timestamp);
406 __os_unique_id(env, &renv->envid);
412 renv->init_flags = (init_flagsp == NULL) ? 0 : *init_flagsp;
420 renv->region_cnt = nregions;
426 renv->region_off = R_OFFSET(infop, rp);
430 renv->cipher_off = renv->thread_off = renv->rep_off = INVALID_ROFF;
431 renv->flags = 0;
432 renv->op_timestamp = renv->rep_timestamp = 0;
433 renv->mtx_regenv = MUTEX_INVALID;
545 REGENV *renv;
549 renv = infop->primary;
559 renv->magic = DB_REGION_MAGIC;
575 REGENV *renv;
591 renv = infop->primary;
593 MUTEX_LOCK(env, renv->mtx_regenv);
607 if (renv->refcnt > 0 && !LF_ISSET(DB_FORCE) && !renv->panic)
610 renv->panic = 1;
616 MUTEX_UNLOCK(env, renv->mtx_regenv);
649 REGENV *renv;
654 renv = infop->primary;
659 env, MTX_ENV_REGION, 0, &renv->mtx_regenv)) != 0)
661 renv->refcnt = 1;
664 MUTEX_LOCK(env, renv->mtx_regenv);
665 ++renv->refcnt;
666 MUTEX_UNLOCK(env, renv->mtx_regenv);
683 REGENV *renv;
690 renv = infop->primary;
695 MUTEX_LOCK(env, renv->mtx_regenv);
696 if (renv->refcnt == 0)
700 --renv->refcnt;
701 MUTEX_UNLOCK(env, renv->mtx_regenv);
708 __mutex_free(env, &renv->mtx_regenv) : 0);
722 REGENV *renv;
728 renv = infop->primary;
756 if (renv->region_off != INVALID_ROFF)
758 infop, R_ADDR(infop, renv->region_off));
794 REGENV *renv;
821 renv = infop->primary;
826 renv->panic = 1;
835 for (rp = R_ADDR(infop, renv->region_off),
836 i = 0; i < renv->region_cnt; ++i, ++rp) {
1229 REGENV *renv;
1234 renv = env_infop->primary;
1250 for (rp = R_ADDR(env_infop, renv->region_off),
1251 i = 0; i < renv->region_cnt; ++i, ++rp) {
1272 if (i >= renv->region_cnt)