Lines Matching refs:gkey
35 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
99 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
115 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
124 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
132 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
137 DBT gkey; in DBA_FIRSTKEY_FUNC() local
141 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC()
144 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
145 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
146 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
153 DBT gkey; in DBA_NEXTKEY_FUNC() local
157 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
160 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()
161 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
162 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()