Lines Matching +defs:val +defs:state
101 read_astring_prop(scf_propertygroup_t *pg, scf_value_t *val,
117 if (scf_property_get_value(prop, val) != 0) {
132 if (scf_value_get_astring(val, value, value_sz) <= 0) {
188 scf_value_t *val;
190 if ((val = scf_value_create(h)) == NULL)
193 r = scf_iter_next_value(iter, val);
201 if (scf_value_get_astring(val, fmri, len) <= 0) {
207 scf_value_destroy(val);
243 * or is in maintenance state).
248 char state[MAX_SCF_STATE_STRING_SZ];
256 * if we can't read a service's state, we have to assume it is
259 if (inst_get_state(inst, state, NULL, NULL) != 0)
266 if (optional && strcmp(state, SCF_STATE_STRING_OFFLINE) == 0)
269 if (strcmp(state, SCF_STATE_STRING_MAINT) == 0) {
271 * Enabled services in maintenance state satisfy
283 if (strcmp(state, SCF_STATE_STRING_ONLINE) == 0 ||
284 strcmp(state, SCF_STATE_STRING_DEGRADED) == 0)
444 * Examines the state and health of an instance's restarter and
457 scf_value_t *val;
468 (val = scf_value_create(h)) == NULL ||
479 r = get_astring_prop(pg, SCF_PROPERTY_RESTARTER, prop, val, value,
487 * instance's state, but that's not going to happen if
529 if ((grouping = read_astring_prop(pg, val, prop,
533 if ((type = read_astring_prop(pg, val, prop,
580 scf_value_destroy(val);