Lines Matching refs:vallist
143 union scf_simple_prop_val *vallist = NULL, *vallist_backup = NULL;
187 vallist_backup = vallist;
188 if ((vallist = realloc(vallist, (numvals + 1) *
189 sizeof (*vallist))) == NULL) {
190 vallist = vallist_backup;
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);
295 ret->pr_vallist = vallist;
309 if (vallist == NULL)
323 free(vallist[i].pv_str);
329 free(vallist[i].pv_opaque.o_value);
337 free(vallist);