Lines Matching refs:val
1072 const char *pname, scf_type_t ty, scf_value_t *val)
1122 r = scf_entry_add_value(ent, val);
1548 scf_value_t *val;
1663 val = scf_value_create(h);
1664 if (val == NULL) {
1671 ret = scf_iter_next_value(iter, val);
1679 scf_value_destroy(val);
1692 ret = scf_value_get_count(val, &c);
1697 val);
1700 scf_value_destroy(val);
1706 scf_value_destroy(val);
1845 scf_value_t *val;
1961 val = scf_value_create(h);
1962 if (val == NULL) {
1969 ret = scf_iter_next_value(iter, val);
1978 scf_value_destroy(val);
1991 ret = scf_entry_add_value(t_cid, val);
1997 scf_value_destroy(val);
2059 val = scf_value_create(h);
2060 if (val == NULL) {
2066 scf_value_set_count(val, contract_id);
2067 ret = scf_entry_add_value(t_cid, val);
2154 size_t bufsz, scf_property_t *prop, scf_value_t *val)
2167 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
2173 szret = scf_value_get_astring(val, buf, bufsz);
2180 scf_property_t *prop, scf_value_t *val)
2188 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
2194 if (scf_value_get_boolean(val, b))
2546 scf_property_t *prop, scf_value_t *val, const char *cmdline,
2559 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_PROFILE, buf,
2560 buf_sz, prop, val) == 0))
2699 scf_property_t *prop, scf_value_t *val, struct method_context *ci,
2716 vbuf, vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2718 val) == 0))
2730 val) == 0 || get_astring_val(instpg, SCF_PROPERTY_GROUP, vbuf,
2731 vbuf_sz, prop, val) == 0)) {
2775 prop, val) == 0 || get_astring_val(instpg,
2776 SCF_PROPERTY_SUPP_GROUPS, vbuf, vbuf_sz, prop, val) == 0)) {
2810 prop, val) == 0 || get_astring_val(instpg, SCF_PROPERTY_PRIVILEGES,
2811 vbuf, vbuf_sz, prop, val) == 0)) {
2842 vbuf_sz, prop, val) == 0 || get_astring_val(instpg,
2843 SCF_PROPERTY_LIMIT_PRIVILEGES, vbuf, vbuf_sz, prop, val) == 0)) {
2877 struct method_context *mcp, scf_property_t *prop, scf_value_t *val)
2909 while ((ret = scf_iter_next_value(iter, val)) == 1) {
2910 ret = scf_value_get_as_string(val, mcp->vbuf, mcp->vbuf_sz);
2991 scf_value_t *val = NULL;
3037 (val = scf_value_create(h)) == NULL) {
3072 ret = get_environment(h, methpg, cip, prop, val);
3074 ret = get_environment(h, instpg, cip, prop, val);
3162 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3191 ret = scf_value_get_boolean(val, &use_profile);
3196 err = get_profile(pg, instpg, prop, val, cmdline,
3199 err = get_ids(pg, instpg, prop, val, cip, err);
3210 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3237 ret = scf_value_get_astring(val, cip->vbuf, cip->vbuf_sz);
3304 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3329 ret = scf_value_get_astring(val, cip->vbuf,
3371 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3397 ret = scf_value_get_astring(val, cip->vbuf,
3456 if (scf_property_get_value(prop, val) != SCF_SUCCESS) {
3484 ret = scf_value_get_astring(val, cip->vbuf,
3544 (void) scf_value_destroy(val);
3996 scf_value_t *val;
4008 val = scf_value_create(h);
4009 if (pg == NULL || prop == NULL || val == NULL)
4018 prop, val) != SCF_SUCCESS)
4029 scf_value_destroy(val);
4045 scf_value_t *val;
4052 val = scf_value_create(h);
4053 if (pg == NULL || prop == NULL || val == NULL)
4062 val) != SCF_SUCCESS)
4068 scf_value_destroy(val);
4134 scf_value_t *val;
4146 val = scf_value_create(h);
4147 if (pg == NULL || prop == NULL || val == NULL)
4159 prop, val) != SCF_SUCCESS)
4171 scf_value_destroy(val);