Lines Matching refs:numvals
142 ssize_t valsize, numvals;
185 for (numvals = 0; (iterret = scf_iter_next_value(iter, val)) == 1;
186 numvals++) {
188 if ((vallist = realloc(vallist, (numvals + 1) *
197 &vallist[numvals].pv_bool) == -1)
203 &vallist[numvals].pv_uint) == -1)
209 &vallist[numvals].pv_int) == -1)
215 &vallist[numvals].pv_time.t_sec,
216 &vallist[numvals].pv_time.t_nsec) == -1)
221 vallist[numvals].pv_str = NULL;
225 if ((vallist[numvals].pv_str = malloc(valsize+1)) ==
231 vallist[numvals].pv_str, valsize+1) == -1) {
232 free(vallist[numvals].pv_str);
245 vallist[numvals].pv_str = NULL;
249 if ((vallist[numvals].pv_str = malloc(valsize+1)) ==
255 vallist[numvals].pv_str, valsize+1) == -1) {
256 free(vallist[numvals].pv_str);
262 vallist[numvals].pv_opaque.o_value = NULL;
266 if ((vallist[numvals].pv_opaque.o_value =
271 vallist[numvals].pv_opaque.o_size = valsize;
273 vallist[numvals].pv_opaque.o_value,
275 free(vallist[numvals].pv_opaque.o_value);
296 ret->pr_numvalues = numvals;
322 for (i = 0; i < numvals; i++) {
328 for (i = 0; i < numvals; i++) {