state_t
typedef state_func_t (*state_t)(void);
get_runlevel(const state_t s)
if (s == (state_t)single_user)
if (s == (state_t)runcom)
if (s == (state_t)read_ttys)
if (s == (state_t)multi_user)
if (s == (state_t)clean_ttys)
if (s == (state_t)catatonia)
static void transition(state_t);
static state_t requested_transition = runcom;
static state_t current_state = death;
static char get_runlevel(const state_t);
static state_t requested_transition = single_user;
transition(state_t s)
s = (state_t)(*s)();
void print_state(state_t state, char *buf)
void print_state(state_t, char *);
state_t sc_state;
state_t oldstate;
state_t oldstate;
state_t oldstate;
static state_t
state_t old_state;
restore_state(state_t new_state)
static state_t state = S_STATE_INIT; /* the current state */
state_t oldstate;