Lines Matching refs:gval
159 DBT gval; local
164 memset(&gval, 0, sizeof(gval));
166 gval.flags |= DB_DBT_MALLOC;
168 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
169 if (newlen) *newlen = gval.size;
170 new = estrndup(gval.data, gval.size);
172 free(gval.data);
180 DBT gval; local
184 memset(&gval, 0, sizeof(gval));
185 gval.data = (char *) val;
186 gval.size = vallen;
188 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
197 DBT gval; local
201 memset(&gval, 0, sizeof(gval));
204 gval.flags |= DB_DBT_MALLOC;
207 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
209 free(gval.data);
244 DBT gkey, gval; local
248 memset(&gval, 0, sizeof(gval));
252 gval.flags |= DB_DBT_MALLOC;
254 if (dba->cursor && dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
263 if (gval.data) {
264 free(gval.data);