Lines Matching refs:gkey
39 #define DBM_GKEY datum gkey; gkey.dptr = (char *) key; gkey.dsize = keylen
98 gval = fetch(gkey); in DBA_FETCH_FUNC()
113 gval = fetch(gkey); in DBA_UPDATE_FUNC()
122 return (store(gkey, gval) == -1 ? FAILURE : SUCCESS); in DBA_UPDATE_FUNC()
130 gval = fetch(gkey); in DBA_EXISTS_FUNC()
140 return(delete(gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC()
146 datum gkey; in DBA_FIRSTKEY_FUNC() local
149 gkey = firstkey(); in DBA_FIRSTKEY_FUNC()
150 if(gkey.dptr) { in DBA_FIRSTKEY_FUNC()
151 if(newlen) *newlen = gkey.dsize; in DBA_FIRSTKEY_FUNC()
152 key = estrndup(gkey.dptr, gkey.dsize); in DBA_FIRSTKEY_FUNC()
153 dba->nextkey = gkey; in DBA_FIRSTKEY_FUNC()
162 datum gkey; in DBA_NEXTKEY_FUNC() local
167 gkey = nextkey(dba->nextkey); in DBA_NEXTKEY_FUNC()
168 if(gkey.dptr) { in DBA_NEXTKEY_FUNC()
169 if(newlen) *newlen = gkey.dsize; in DBA_NEXTKEY_FUNC()
170 nkey = estrndup(gkey.dptr, gkey.dsize); in DBA_NEXTKEY_FUNC()
171 dba->nextkey = gkey; in DBA_NEXTKEY_FUNC()