Lines Matching refs:gval
162 DBT gval; local
167 memset(&gval, 0, sizeof(gval));
169 gval.flags |= DB_DBT_MALLOC;
171 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
172 if (newlen) *newlen = gval.size;
173 new = estrndup(gval.data, gval.size);
175 free(gval.data);
183 DBT gval; local
187 memset(&gval, 0, sizeof(gval));
188 gval.data = (char *) val;
189 gval.size = vallen;
191 if (!dba->dbp->put(dba->dbp, NULL, &gkey, &gval,
200 DBT gval; local
204 memset(&gval, 0, sizeof(gval));
207 gval.flags |= DB_DBT_MALLOC;
210 if (!dba->dbp->get(dba->dbp, NULL, &gkey, &gval, 0)) {
212 free(gval.data);
247 DBT gkey, gval; local
251 memset(&gval, 0, sizeof(gval));
255 gval.flags |= DB_DBT_MALLOC;
257 if (dba->cursor && dba->cursor->c_get(dba->cursor, &gkey, &gval, DB_NEXT) == 0) {
266 if (gval.data) {
267 free(gval.data);