Lines Matching refs:reginfo
81 lt->reginfo.dbenv = dbenv;
82 lt->reginfo.appname = DB_APP_NONE;
84 lt->reginfo.path = NULL;
86 if ((ret = __os_strdup(path, <->reginfo.path)) != 0)
88 lt->reginfo.file = DB_DEFAULT_LOCK_FILE;
89 lt->reginfo.mode = mode;
90 lt->reginfo.size =
92 lt->reginfo.dbflags = flags;
93 lt->reginfo.addr = NULL;
94 lt->reginfo.fd = -1;
95 lt->reginfo.flags = regflags;
97 if ((ret = __db_rattach(<->reginfo)) != 0)
101 lt->region = lt->reginfo.addr;
104 if (F_ISSET(<->reginfo, REGION_CREATED)) {
143 err: if (lt->reginfo.addr != NULL) {
145 (void)__db_rdetach(<->reginfo);
146 if (F_ISSET(<->reginfo, REGION_CREATED))
150 if (lt->reginfo.path != NULL)
151 __os_freestr(lt->reginfo.path);
275 if ((ret = __db_rdetach(<->reginfo)) != 0)
278 if (lt->reginfo.path != NULL)
279 __os_freestr(lt->reginfo.path);
291 REGINFO reginfo;
294 memset(®info, 0, sizeof(reginfo));
295 reginfo.dbenv = dbenv;
296 reginfo.appname = DB_APP_NONE;
297 if (path != NULL && (ret = __os_strdup(path, ®info.path)) != 0)
299 reginfo.file = DB_DEFAULT_LOCK_FILE;
300 ret = __db_runlink(®info, force);
301 if (reginfo.path != NULL)
302 __os_freestr(reginfo.path);
319 if (lt->reginfo.size == lt->region->hdr.size)
323 if ((ret = __db_rreattach(<->reginfo, lt->region->hdr.size)) != 0)
327 lt->region = lt->reginfo.addr;
426 if ((ret = __db_rgrow(<->reginfo, oldsize + incr)) != 0)
428 lt->region = lt->reginfo.addr;