Lines Matching refs:gval
96 DBT gval; in DBA_FETCH_FUNC() local
100 memset(&gval, 0, sizeof(gval)); in DBA_FETCH_FUNC()
101 if (dba->dbp->get(dba->dbp, &gkey, &gval, 0) == RET_SUCCESS) { in DBA_FETCH_FUNC()
102 if (newlen) *newlen = gval.size; in DBA_FETCH_FUNC()
103 return estrndup(gval.data, gval.size); in DBA_FETCH_FUNC()
110 DBT gval; in DBA_UPDATE_FUNC() local
114 gval.data = (char *) val; in DBA_UPDATE_FUNC()
115 gval.size = vallen; in DBA_UPDATE_FUNC()
117 …return dba->dbp->put(dba->dbp, &gkey, &gval, mode == 1 ? R_NOOVERWRITE : 0) != RET_SUCCESS ? FAILU… in DBA_UPDATE_FUNC()
122 DBT gval; in DBA_EXISTS_FUNC() local
126 return dba->dbp->get(dba->dbp, &gkey, &gval, 0) != RET_SUCCESS ? FAILURE : SUCCESS; in DBA_EXISTS_FUNC()
140 DBT gval; in DBA_FIRSTKEY_FUNC() local
144 memset(&gval, 0, sizeof(gval)); in DBA_FIRSTKEY_FUNC()
146 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_FIRST) == RET_SUCCESS) { in DBA_FIRSTKEY_FUNC()
156 DBT gval; in DBA_NEXTKEY_FUNC() local
160 memset(&gval, 0, sizeof(gval)); in DBA_NEXTKEY_FUNC()
162 if (dba->dbp->seq(dba->dbp, &gkey, &gval, R_NEXT) == RET_SUCCESS) { in DBA_NEXTKEY_FUNC()