Lines Matching refs:state
68 char *state = NULL; in query_smf_state() local
71 state = smf_get_state(NSCD_SMF_SVC_FMRI(srci)); in query_smf_state()
72 if (state == NULL) in query_smf_state()
76 (me, "%s -- %s\n", state, NSCD_SMF_SVC_FMRI(srci)); in query_smf_state()
84 if (strcmp(state, SCF_STATE_STRING_UNINIT) == 0) in query_smf_state()
86 else if (strcmp(state, SCF_STATE_STRING_MAINT) == 0) in query_smf_state()
88 else if (strcmp(state, SCF_STATE_STRING_OFFLINE) == 0) in query_smf_state()
90 else if (strcmp(state, SCF_STATE_STRING_DISABLED) == 0) in query_smf_state()
92 else if (strcmp(state, SCF_STATE_STRING_ONLINE) == 0) in query_smf_state()
94 else if (strcmp(state, SCF_STATE_STRING_DEGRADED) == 0) in query_smf_state()
100 free(state); in query_smf_state()