Lines Matching defs:dbe
76 DB_ENTRY *dbe;
127 dbe = &logp->dbentry[argp->id];
128 if (dbe->dbp != NULL && --dbe->refcount == 0) {
129 ret = dbe->dbp->close(dbe->dbp, 0);
130 if (dbe->name != NULL) {
131 __os_freestr(dbe->name);
132 dbe->name = NULL;
175 DB_ENTRY *dbe;
188 dbe = &lp->dbentry[argp->id];
190 dbe = NULL;
192 if (dbe != NULL && (dbe->deleted == 1 || dbe->dbp != NULL) &&
193 dbe->name != NULL && argp->name.data != NULL &&
194 strncmp(argp->name.data, dbe->name, argp->name.size) == 0) {
196 dbe->refcount++;
202 if (dbe != NULL && dbe->dbp != NULL) {
203 (void)dbe->dbp->close(dbe->dbp, 0);
204 if (dbe->name != NULL)
205 __os_freestr(dbe->name);
206 dbe->name = NULL;