Lines Matching refs:val

327     scf_value_t **val)
333 assert(val != NULL);
340 *val = scf_value_create(h);
342 if (prop == NULL || *val == NULL) {
352 if (scf_property_get_value(prop, *val) == -1) {
361 scf_value_destroy(*val);
362 *val = NULL;
399 scf_value_t *val;
404 if (_read_single_value_from_pg(pg, prop_name, &val) == -1)
413 if (scf_value_get_astring(val, ret, rsize) < 0) {
420 scf_value_destroy(val);
491 scf_value_t *val;
494 if (_read_single_value_from_pg(pg, prop_name, &val) == -1)
497 if (scf_value_get_boolean(val, bool) < 0) {
502 scf_value_destroy(val);
535 scf_value_t *val;
565 val = scf_value_create(h);
568 if (prop == NULL || val == NULL || iter == NULL) {
584 while ((err = scf_iter_next_value(iter, val)) == 1) {
608 if ((r = scf_value_get_astring(val,
659 scf_value_destroy(val);
3529 * On error set scf_error() _NO_MEMORY, or _NOT_SET (val has not been set
3533 _scf_value_get_as_string(scf_value_t *val)
3540 } else if (scf_value_get_as_string(val, buf, sz) == -1) {
5109 _val_to_string(uint64_t val, int flag)
5121 (void) snprintf(buf, sz, "%" PRIu64, val);
5123 (void) snprintf(buf, sz, "%" PRIi64, (int64_t)val);
5507 scf_value_t *val)
5530 if ((value = _scf_value_get_as_string(val)) == NULL)
5536 val_type = scf_value_type(val);
5598 int64_t val, int64_t *min, int64_t *max)
5668 if ((value = _val_to_string((uint64_t)val, 1)) == NULL) {
6041 const char *val;
6062 val = _tmpl_error_items[i].get_val(err);
6064 (val == NULL) ? "" : val);
6094 scf_value_t *val = NULL;
6118 val = scf_value_create(h);
6119 if (iter == NULL || val == NULL) {
6137 while ((r = scf_iter_next_value(iter, val)) == 1)
6158 scf_value_destroy(val);
6183 scf_value_t *val = NULL;
6194 val = scf_value_create(h);
6195 if (iter == NULL || val == NULL) {
6198 scf_value_destroy(val);
6256 while ((r = scf_iter_next_value(iter, val)) == 1) {
6257 if (_value_in_constraint(pg, prop, pt, val, errs) == -1) {
6285 scf_value_destroy(val);
7084 scf_tmpl_error_value(const scf_tmpl_error_t *err, char **val)
7093 if (val != NULL)
7094 *val = (char *)err->te_actual;