Lines Matching refs:di_dbm
37 DBM *di_dbm; member
43 #define check_dbmobject_open(v) if ((v)->di_dbm == NULL) \
58 if ( (dp->di_dbm = dbm_open(file, flags, mode)) == 0 ) { in newdbmobject()
71 if ( dp->di_dbm ) in dbm_dealloc()
72 dbm_close(dp->di_dbm); in dbm_dealloc()
79 if (dp->di_dbm == NULL) { in dbm_length()
88 for ( key=dbm_firstkey(dp->di_dbm); key.dptr; in dbm_length()
89 key = dbm_nextkey(dp->di_dbm)) in dbm_length()
107 drec = dbm_fetch(dp->di_dbm, krec); in dbm_subscript()
113 if ( dbm_error(dp->di_dbm) ) { in dbm_subscript()
114 dbm_clearerr(dp->di_dbm); in dbm_subscript()
133 if (dp->di_dbm == NULL) { in dbm_ass_sub()
139 if ( dbm_delete(dp->di_dbm, krec) < 0 ) { in dbm_ass_sub()
140 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
152 if ( dbm_store(dp->di_dbm, krec, drec, DBM_REPLACE) < 0 ) { in dbm_ass_sub()
153 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
159 if ( dbm_error(dp->di_dbm) ) { in dbm_ass_sub()
160 dbm_clearerr(dp->di_dbm); in dbm_ass_sub()
180 if (dp->di_dbm == NULL) { in dbm_contains()
184 val = dbm_fetch(dp->di_dbm, key); in dbm_contains()
210 if (dp->di_dbm) in dbm__close()
211 dbm_close(dp->di_dbm); in dbm__close()
212 dp->di_dbm = NULL; in dbm__close()
228 for (key = dbm_firstkey(dp->di_dbm); key.dptr; in dbm_keys()
229 key = dbm_nextkey(dp->di_dbm)) { in dbm_keys()
257 val = dbm_fetch(dp->di_dbm, key); in dbm_has_key()
275 val = dbm_fetch(dp->di_dbm, key); in dbm_get()
298 val = dbm_fetch(dp->di_dbm, key); in dbm_setdefault()
310 if (dbm_store(dp->di_dbm, key, val, DBM_INSERT) < 0) { in dbm_setdefault()
311 dbm_clearerr(dp->di_dbm); in dbm_setdefault()