Lines Matching defs:state_name
1188 char state_name[MAX_SCF_STATE_STRING_SZ];
1195 get_restarter_string_prop(wip->inst, pname, state_name,
1196 sizeof (state_name));
1198 if (strcmp(state_name, SCF_STATE_STRING_ONLINE) == 0)
1200 else if (strcmp(state_name, SCF_STATE_STRING_DEGRADED) == 0)
1202 else if (strcmp(state_name, SCF_STATE_STRING_OFFLINE) == 0)
1204 else if (strcmp(state_name, SCF_STATE_STRING_MAINT) == 0)
1206 else if (strcmp(state_name, SCF_STATE_STRING_DISABLED) == 0)
1208 else if (strcmp(state_name, SCF_STATE_STRING_UNINIT) == 0)
1222 char state_name[MAX_SCF_STATE_STRING_SZ + 1];
1228 state_name, sizeof (state_name));
1231 if (state_name[0] == '\0') {
1232 state_name[0] = '-';
1233 state_name[1] = '\0';
1238 (void) strcat(state_name, "*");
1241 (void) strcpy(state_name, SCF_STATE_STRING_LEGACY);
1246 MAX_SCF_STATE_STRING_SZ + 1, state_name);
1302 char state_name[MAX_SCF_STATE_STRING_SZ];
1308 state_name, sizeof (state_name));
1309 tmp[0] = state_to_char(state_name);
1360 char state_name[MAX_SCF_STATE_STRING_SZ];
1364 state_name, sizeof (state_name));
1367 tmp[0] = state_to_char(state_name);
1418 char state_name[MAX_SCF_STATE_STRING_SZ];
1425 state_name, sizeof (state_name));
1427 (void) strcpy(state_name, SCF_STATE_STRING_LEGACY);
1429 (void) strcpy(sta, state_abbrev(state_name));
1443 char state_name[MAX_SCF_STATE_STRING_SZ];
1449 state_name, sizeof (state_name));
1451 (void) strcpy(state_name, SCF_STATE_STRING_NONE);
1453 if (strcmp(state_name, SCF_STATE_STRING_NONE) == 0)
1458 state_abbrev(state_name));