Lines Matching refs:gkey
39 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
104 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
120 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
129 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
137 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
142 DBT gkey; in DBA_FIRSTKEY_FUNC() local
146 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC()
149 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
150 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
151 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
158 DBT gkey; in DBA_NEXTKEY_FUNC() local
162 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
165 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()
166 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
167 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()