Lines Matching refs:gkey
37 #define DB1_GKEY DBT gkey; gkey.data = (char *) key; gkey.size = keylen
101 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
117 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
126 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
134 return dba->dbp->del(dba->dbp, &gkey, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_DELETE_FUNC()
139 DBT gkey; in DBA_FIRSTKEY_FUNC() local
143 memset(&gkey, 0, sizeof(gkey)); in DBA_FIRSTKEY_FUNC()
146 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
147 if (newlen) *newlen = gkey.size; in DBA_FIRSTKEY_FUNC()
148 return estrndup(gkey.data, gkey.size); in DBA_FIRSTKEY_FUNC()
155 DBT gkey; in DBA_NEXTKEY_FUNC() local
159 memset(&gkey, 0, sizeof(gkey)); in DBA_NEXTKEY_FUNC()
162 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()
163 if (newlen) *newlen = gkey.size; in DBA_NEXTKEY_FUNC()
164 return estrndup(gkey.data, gkey.size); in DBA_NEXTKEY_FUNC()