Lines Matching refs:gkey
35 #define NDBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
83 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC()
99 if(!dbm_store(info->dbf, gkey, gval, mode == 1 ? DBM_INSERT : DBM_REPLACE)) in DBA_UPDATE_FUNC()
108 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC()
118 return(dbm_delete(info->dbf, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
123 datum gkey; in DBA_FIRSTKEY_FUNC() local
126 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC()
127 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
128 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
129 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
136 datum gkey; in DBA_NEXTKEY_FUNC() local
139 gkey = dbm_nextkey(info->dbf); in DBA_NEXTKEY_FUNC()
140 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
141 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
142 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()