Lines Matching refs:gkey
43 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
103 gval = fetch(gkey); in DBA_FETCH_FUNC()
118 gval = fetch(gkey); in DBA_UPDATE_FUNC()
127 return (store(gkey, gval) == -1 ? FAILURE : SUCCESS); in DBA_UPDATE_FUNC()
135 gval = fetch(gkey); in DBA_EXISTS_FUNC()
145 return(delete(gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
151 datum gkey; in DBA_FIRSTKEY_FUNC() local
154 gkey = firstkey(); in DBA_FIRSTKEY_FUNC()
155 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
156 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
157 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
158 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
167 datum gkey; in DBA_NEXTKEY_FUNC() local
172 gkey = nextkey(dba->nextkey); in DBA_NEXTKEY_FUNC()
173 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
174 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
175 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
176 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()