Lines Matching refs:env
18 __os_open(env, name, page_size, flags, mode, fhpp)
19 ENV *env;
34 dbenv = env == NULL ? NULL : env->dbenv;
40 __db_msg(env, "fileops: open %s", name);
46 if ((ret = __db_fchk(env, "__os_open", flags, OKFLAGS)) != 0)
49 TO_TSTRING(env, name, tname, ret);
61 if ((ret = __os_calloc(env, 1, sizeof(DB_FH), &fhp)) != 0)
63 if ((ret = __os_strdup(env, name, &fhp->name)) != 0)
65 if (env != NULL) {
66 MUTEX_LOCK(env, env->mtx_env);
67 TAILQ_INSERT_TAIL(&env->fdlist, fhp, q);
68 MUTEX_UNLOCK(env, env->mtx_env);
217 __os_yield(env, nrepeat * 2, 0);
222 FREE_STRING(env, tname);
230 err: FREE_STRING(env, tname);
232 (void)__os_closehandle(env, fhp);