Lines Matching refs:gkey
47 DBT gkey; \
48 memset(&gkey, 0, sizeof(gkey)); \
49 gkey.data = (char *) key; gkey.size = keylen
131 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_FETCH_FUNC()
148 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval, in DBA_UPDATE_FUNC()
162 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) { in DBA_EXISTS_FUNC()
173 return dba->dbp->del(dba->dbp, NULL, &gkey, 0) ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
196 DBT gkey, gval; in DBA_NEXTKEY_FUNC() local
199 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
202 if (dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) { in DBA_NEXTKEY_FUNC()
203 if (gkey.data) { in DBA_NEXTKEY_FUNC()
204 nkey = estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()
205 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()