Lines Matching refs:gval
157 DBT gval; local
162 memset(&gval, 0, sizeof(gval));
164 gval.flags |= DB_DBT_MALLOC;
166 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
167 if (newlen) *newlen = gval.size;
168 new = estrndup(gval.data, gval.size);
170 free(gval.data);
178 DBT gval; local
182 memset(&gval, 0, sizeof(gval));
183 gval.data = (char *) val;
184 gval.size = vallen;
186 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
195 DBT gval; local
199 memset(&gval, 0, sizeof(gval));
202 gval.flags |= DB_DBT_MALLOC;
205 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
207 free(gval.data);
242 DBT gkey, gval; local
246 memset(&gval, 0, sizeof(gval));
250 gval.flags |= DB_DBT_MALLOC;
252 if (dba->cursor && dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
261 if (gval.data) {
262 free(gval.data);