Lines Matching refs:di_dbm

40     DBM *di_dbm;  member
48 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
64 if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) { in newdbmobject()
77 if ( dp->di_dbm ) in dbm_dealloc()
78 dbm_close(dp->di_dbm); in dbm_dealloc()
85 if (dp->di_dbm == NULL) { in dbm_length()
94 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
95 key = dbm_nextkey(dp->di_dbm)) in dbm_length()
113 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
118 if ( dbm_error(dp->di_dbm) ) { in dbm_subscript()
119 dbm_clearerr(dp->di_dbm); in dbm_subscript()
138 if (dp->di_dbm == NULL) { in dbm_ass_sub()
144 if ( dbm_delete(dp->di_dbm, krec) < 0 ) { in dbm_ass_sub()
145 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
156 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
157 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
163 if ( dbm_error(dp->di_dbm) ) { in dbm_ass_sub()
164 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
187 if (self->di_dbm) in _dbm_dbm_close_impl()
188 dbm_close(self->di_dbm); in _dbm_dbm_close_impl()
189 self->di_dbm = NULL; in _dbm_dbm_close_impl()
211 for (key = dbm_firstkey(self->di_dbm); key.dptr; in _dbm_dbm_keys_impl()
212 key = dbm_nextkey(self->di_dbm)) { in _dbm_dbm_keys_impl()
235 if ((dp)->di_dbm == NULL) { in dbm_contains()
256 val = dbm_fetch(dp->di_dbm, key); in dbm_contains()
294 val = dbm_fetch(self->di_dbm, dbm_key); in _dbm_dbm_get_impl()
325 val = dbm_fetch(self->di_dbm, dbm_key); in _dbm_dbm_setdefault_impl()
344 if (dbm_store(self->di_dbm, dbm_key, val, DBM_INSERT) < 0) { in _dbm_dbm_setdefault_impl()
345 dbm_clearerr(self->di_dbm); in _dbm_dbm_setdefault_impl()