Lines Matching defs:state

62  *   as well as other mutable state, init(1M) regularly updates a state file
184 * common mapping between level-name (like 'S'), signal number (state),
475 static const char * const init_state_file = INIT_STATE_DIR "/init.state";
477 INIT_STATE_DIR "/init-next.state";
500 static int lvlq_received; /* Explicit request to examine state */
501 static int op_modes = BOOT_MODES; /* Current state of "init" */
667 * Initialize state (and set "booting").
706 * so that it can be brought up in the state it was in when the
735 * It's fine to boot up with state as zero, because
736 * startd will later tell us the real state.
791 * should be alive in the current state. If inittab does not
843 * cur_state to the previous state and do another scan
1519 int c, lastc, state;
1598 state = FAILURE;
1606 for (proceed = TRUE, ptr = shcmd, state = ID, lastc = '\0';
1609 /* If we're not in the FAILURE state and haven't */
1613 if (state != FAILURE && state != COMMAND) {
1623 if (state == COMMENT) {
1638 if (state == ID && c == '#' && ptr == shcmd) {
1639 state = COMMENT;
1649 switch (state) {
1657 state = FAILURE;
1661 state = LEVELS;
1675 state = FAILURE;
1680 if (state != FAILURE) {
1681 state = ACTION;
1725 * set state to FAILURE.
1728 state = FAILURE;
1730 state = COMMAND;
1757 state = FAILURE;
1774 if (state == COMMAND) {
1815 * lvlname_to_state(): convert the character name of a state to its level
1833 state_to_name(int state)
1837 if (lvls[i].lvl_state == state)
1847 state_to_mask(int state)
1851 if (lvls[i].lvl_state == state)
1878 state_to_flags(int state)
1882 if (lvls[i].lvl_state == state)
2660 account(short state, struct PROC_TABLE *process, char *program)
2691 u->ut_type = state;
2717 if (oldu->ut_type == USER_PROCESS && state == DEAD_PROCESS) {
2727 switch (state) {
3881 * Initialize our state.
3973 /* Something went wrong, so allocate new state. */
3991 /* Overwrite the bad state file. */
3996 "Error accessing persistent state file `%s'. "
4000 "Persistent state file `%s' is invalid and was "
4007 * Write g_state out to the state file.
4064 console(B_TRUE, "Couldn't write persistent state "
4067 console(B_TRUE, "Couldn't move persistent state "
4563 * state changes won't be attributed to the person who booted the