Lines Matching refs:gval
163 DBT gval; local
168 memset(&gval, 0, sizeof(gval));
170 gval.flags |= DB_DBT_MALLOC;
172 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
173 if (newlen) *newlen = gval.size;
174 new = estrndup(gval.data, gval.size);
176 free(gval.data);
184 DBT gval; local
188 memset(&gval, 0, sizeof(gval));
189 gval.data = (char *) val;
190 gval.size = vallen;
192 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
201 DBT gval; local
205 memset(&gval, 0, sizeof(gval));
208 gval.flags |= DB_DBT_MALLOC;
211 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
213 free(gval.data);
248 DBT gkey, gval; local
252 memset(&gval, 0, sizeof(gval));
256 gval.flags |= DB_DBT_MALLOC;
258 if (dba->cursor && dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
267 if (gval.data) {
268 free(gval.data);