Lines Matching refs:di_dbm

41     DBM *di_dbm;  member
49 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
66 if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) { in newdbmobject()
79 if ( dp->di_dbm ) in dbm_dealloc()
80 dbm_close(dp->di_dbm); in dbm_dealloc()
87 if (dp->di_dbm == NULL) { in dbm_length()
96 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
97 key = dbm_nextkey(dp->di_dbm)) in dbm_length()
115 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
120 if ( dbm_error(dp->di_dbm) ) { in dbm_subscript()
121 dbm_clearerr(dp->di_dbm); in dbm_subscript()
140 if (dp->di_dbm == NULL) { in dbm_ass_sub()
146 if ( dbm_delete(dp->di_dbm, krec) < 0 ) { in dbm_ass_sub()
147 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
165 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
166 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
172 if ( dbm_error(dp->di_dbm) ) { in dbm_ass_sub()
173 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
196 if (self->di_dbm) in _dbm_dbm_close_impl()
197 dbm_close(self->di_dbm); in _dbm_dbm_close_impl()
198 self->di_dbm = NULL; in _dbm_dbm_close_impl()
220 for (key = dbm_firstkey(self->di_dbm); key.dptr; in _dbm_dbm_keys_impl()
221 key = dbm_nextkey(self->di_dbm)) { in _dbm_dbm_keys_impl()
244 if ((dp)->di_dbm == NULL) { in dbm_contains()
265 val = dbm_fetch(dp->di_dbm, key); in dbm_contains()
303 val = dbm_fetch(self->di_dbm, dbm_key); in _dbm_dbm_get_impl()
334 val = dbm_fetch(self->di_dbm, dbm_key); in _dbm_dbm_setdefault_impl()
353 if (dbm_store(self->di_dbm, dbm_key, val, DBM_INSERT) < 0) { in _dbm_dbm_setdefault_impl()
354 dbm_clearerr(self->di_dbm); in _dbm_dbm_setdefault_impl()