Lines Matching refs:gval
99 DBT gval; in DBA_FETCH_FUNC() local
103 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC()
104 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
105 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
106 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
113 DBT gval; in DBA_UPDATE_FUNC() local
117 gval.data = (char *) val; in DBA_UPDATE_FUNC()
118 gval.size = vallen; in DBA_UPDATE_FUNC()
120 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
125 DBT gval; in DBA_EXISTS_FUNC() local
129 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
143 DBT gval; in DBA_FIRSTKEY_FUNC() local
147 memset(&gval, 0, sizeof(gval)); in DBA_FIRSTKEY_FUNC()
149 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
159 DBT gval; in DBA_NEXTKEY_FUNC() local
163 memset(&gval, 0, sizeof(gval)); in DBA_NEXTKEY_FUNC()
165 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()