Lines Matching +defs:val +defs:items

328     scf_value_t **val)
334 assert(val != NULL);
341 *val = scf_value_create(h);
343 if (prop == NULL || *val == NULL) {
353 if (scf_property_get_value(prop, *val) == -1) {
362 scf_value_destroy(*val);
363 *val = NULL;
400 scf_value_t *val;
405 if (_read_single_value_from_pg(pg, prop_name, &val) == -1)
414 if (scf_value_get_astring(val, ret, rsize) < 0) {
421 scf_value_destroy(val);
492 scf_value_t *val;
495 if (_read_single_value_from_pg(pg, prop_name, &val) == -1)
498 if (scf_value_get_boolean(val, bool) < 0) {
503 scf_value_destroy(val);
536 scf_value_t *val;
566 val = scf_value_create(h);
569 if (prop == NULL || val == NULL || iter == NULL) {
585 while ((err = scf_iter_next_value(iter, val)) == 1) {
609 if ((r = scf_value_get_astring(val,
660 scf_value_destroy(val);
3434 * On error set scf_error() _NO_MEMORY, or _NOT_SET (val has not been set
3438 _scf_value_get_as_string(scf_value_t *val)
3445 } else if (scf_value_get_as_string(val, buf, sz) == -1) {
4098 char **items = NULL;
4118 items = vals->values.v_astring;
4122 items = vals->values.v_ustring;
4126 items = vals->values.v_opaque;
4137 if (items != NULL)
4138 free(items[i]);
4143 free(items);
4339 * Changes to both the validation logic and the error types and items must
4816 * if new items (lines) are added to the templates error messages,
4998 _val_to_string(uint64_t val, int flag)
5010 (void) snprintf(buf, sz, "%" PRIu64, val);
5012 (void) snprintf(buf, sz, "%" PRIi64, (int64_t)val);
5396 scf_value_t *val)
5419 if ((value = _scf_value_get_as_string(val)) == NULL)
5425 val_type = scf_value_type(val);
5487 int64_t val, int64_t *min, int64_t *max)
5557 if ((value = _val_to_string((uint64_t)val, 1)) == NULL) {
5930 const char *val;
5951 val = _tmpl_error_items[i].get_val(err);
5953 (val == NULL) ? "" : val);
5983 scf_value_t *val = NULL;
6007 val = scf_value_create(h);
6008 if (iter == NULL || val == NULL) {
6026 while ((r = scf_iter_next_value(iter, val)) == 1)
6047 scf_value_destroy(val);
6072 scf_value_t *val = NULL;
6083 val = scf_value_create(h);
6084 if (iter == NULL || val == NULL) {
6087 scf_value_destroy(val);
6145 while ((r = scf_iter_next_value(iter, val)) == 1) {
6146 if (_value_in_constraint(pg, prop, pt, val, errs) == -1) {
6174 scf_value_destroy(val);
6975 scf_tmpl_error_value(const scf_tmpl_error_t *err, char **val)
6984 if (val != NULL)
6985 *val = (char *)err->te_actual;