Lines Matching refs:reginfo
79 lt->reginfo.dbenv = dbenv;
80 lt->reginfo.appname = DB_APP_NONE;
82 lt->reginfo.path = NULL;
84 if ((ret = __os_strdup(path, <->reginfo.path)) != 0)
86 lt->reginfo.file = DB_DEFAULT_LOCK_FILE;
87 lt->reginfo.mode = mode;
88 lt->reginfo.size =
90 lt->reginfo.dbflags = flags;
91 lt->reginfo.addr = NULL;
92 lt->reginfo.fd = -1;
93 lt->reginfo.flags = regflags;
95 if ((ret = __db_rattach(<->reginfo)) != 0)
99 lt->region = lt->reginfo.addr;
102 if (F_ISSET(<->reginfo, REGION_CREATED)) {
141 err: if (lt->reginfo.addr != NULL) {
143 (void)__db_rdetach(<->reginfo);
144 if (F_ISSET(<->reginfo, REGION_CREATED))
148 if (lt->reginfo.path != NULL)
149 __os_freestr(lt->reginfo.path);
273 if ((ret = __db_rdetach(<->reginfo)) != 0)
276 if (lt->reginfo.path != NULL)
277 __os_freestr(lt->reginfo.path);
289 REGINFO reginfo; local
292 memset(®info, 0, sizeof(reginfo));
293 reginfo.dbenv = dbenv;
294 reginfo.appname = DB_APP_NONE;
295 if (path != NULL && (ret = __os_strdup(path, ®info.path)) != 0)
297 reginfo.file = DB_DEFAULT_LOCK_FILE;
298 ret = __db_runlink(®info, force);
299 if (reginfo.path != NULL)
300 __os_freestr(reginfo.path);
317 if (lt->reginfo.size == lt->region->hdr.size)
321 if ((ret = __db_rreattach(<->reginfo, lt->region->hdr.size)) != 0)
325 lt->region = lt->reginfo.addr;
424 if ((ret = __db_rgrow(<->reginfo, oldsize + incr)) != 0)
426 lt->region = lt->reginfo.addr;