Lines Matching refs:gval
94 DBT gval; in DBA_FETCH_FUNC() local
98 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC()
99 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
100 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
101 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
108 DBT gval; in DBA_UPDATE_FUNC() local
112 gval.data = (char *) val; in DBA_UPDATE_FUNC()
113 gval.size = vallen; in DBA_UPDATE_FUNC()
115 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
120 DBT gval; in DBA_EXISTS_FUNC() local
124 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
138 DBT gval; in DBA_FIRSTKEY_FUNC() local
142 memset(&gval, 0, sizeof(gval)); in DBA_FIRSTKEY_FUNC()
144 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
154 DBT gval; in DBA_NEXTKEY_FUNC() local
158 memset(&gval, 0, sizeof(gval)); in DBA_NEXTKEY_FUNC()
160 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()