Lines Matching defs:cur_state
446 #define cur_state (g_state->ist_runlevel)
726 /* cur_state should have been read in. */
738 cur_state = 0;
744 prev_state = prior_state = cur_state;
767 if (op_modes == NORMAL_MODES && cur_state != LVLa &&
768 cur_state != LVLb && cur_state != LVLc)
779 if (state_to_flags(cur_state) & LSEL_RUNLEVEL) {
780 char rl = state_to_name(cur_state);
796 cur_state = SINGLE_USER;
822 * Make sure that cur_state != prev_state so that
832 * equal to zero, we set prev_state equal to cur_state
836 prev_state = cur_state;
838 } else if (cur_state == LVLa || cur_state == LVLb ||
839 cur_state == LVLc) {
843 * cur_state to the previous state and do another scan
846 cur_state = prior_state;
848 prev_state = cur_state;
850 prev_state = cur_state;
855 if (may_need_audit && (cur_state == LVL3)) {
885 if (new_state != cur_state) {
890 prior_state = cur_state;
891 cur_state = new_state;
893 prev_state = cur_state;
894 if (cur_state >= 0)
895 prior_state = cur_state;
896 cur_state = new_state;
1003 change_level = (cur_state != prev_state ? TRUE : FALSE);
1031 * Is the cur_state SINGLE_USER or is this process
1036 if (cur_state == SINGLE_USER ||
1038 ((cmd.c_levels & state_to_mask(cur_state)) == 0 &&
1233 lvl_mask = state_to_mask(cur_state);
1295 cur_state == prev_state))
1338 if (process->p_flags & DEMANDREQUEST || cur_state == LVLa ||
1339 cur_state == LVLb || cur_state == LVLc)
2150 cur_state = SINGLE_USER;
2308 new_state = cur_state;
3845 /* Note: cur_state is encoded as a signal number */
3846 if (cur_state < 1 || cur_state == 9 || cur_state > 13)