iPXE
|
Minimal command shell. More...
Go to the source code of this file.
Enumerations | |
enum | shell_stop_state { SHELL_CONTINUE = 0, SHELL_STOP_COMMAND = 1, SHELL_STOP_COMMAND_SEQUENCE = 2 } |
Shell stop states. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | shell_stop (int stop) |
Set shell stop state. More... | |
int | shell_stopped (int stop) |
Test and consume shell stop state. More... | |
int | shell (void) |
Start command shell. More... | |
Minimal command shell.
Definition in file shell.h.
enum shell_stop_state |
Shell stop states.
Definition at line 13 of file shell.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void shell_stop | ( | int | stop | ) |
Set shell stop state.
stop | Shell stop state |
Definition at line 217 of file exec.c.
References stop_state.
Referenced by exit_exec(), goto_exec(), and imgexec().
int shell_stopped | ( | int | stop | ) |
Test and consume shell stop state.
stop | Shell stop state to consume |
stopped | Shell had been stopped |
Definition at line 227 of file exec.c.
References stop_state.
Referenced by shell(), system(), and terminate_on_exit_or_failure().
int shell | ( | void | ) |
Start command shell.
Definition at line 84 of file shell.c.
References free, history_free(), memset(), NULL, rc, readline_history(), shell_prompt, SHELL_STOP_COMMAND_SEQUENCE, shell_stopped(), and system.
Referenced by interrupt(), ipxe(), and shell_exec().