Lines Matching defs:cur_env
13 static ENV_OBJ *cur_env; /* Current objects */
85 if (__os_calloc(NULL, 1, sizeof(*cur_env), &cur_env) ||
86 __os_strdup(NULL, argv[1], &cur_env->prefix))
88 TAILQ_INIT(&cur_env->dbq);
90 TAILQ_INSERT_TAIL(&env_tree, cur_env, q);
95 cur_env->home = ".";
103 if (__os_strdup(NULL, argv[1], &cur_env->home))
111 cur_env->gbytes = uv;
113 cur_env->bytes = uv;
115 cur_env->ncache = uv;
121 cur_env->private = 1;
138 if (__os_calloc(NULL, 1, sizeof(*cur_env), &cur_env))
140 TAILQ_INIT(&cur_env->dbq);
141 cur_env->standalone = 1;
143 TAILQ_INSERT_TAIL(&env_tree, cur_env, q);
149 TAILQ_INSERT_TAIL(&cur_env->dbq, cur_db, q);
224 cur_env->transaction = cur_db->transaction = 1;
262 cur_env->standalone ? PS_UNSET : PS_ENV_SET;
282 TAILQ_FOREACH(cur_env, &env_tree, q) {
284 cur_env->standalone ? "standalone" : cur_env->prefix);
286 if (cur_env->home != NULL)
287 printf("\thome: %s\n", cur_env->home);
288 if (cur_env->gbytes != 0 || cur_env->bytes != 0)
290 (u_long)cur_env->gbytes,
291 (u_long)cur_env->bytes,
292 (u_long)cur_env->ncache);
294 if (cur_env->private)
296 if (cur_env->transaction)
299 TAILQ_FOREACH(cur_db, &cur_env->dbq, q) {