|
iPXE
|
Minimal command shell. More...
#include <stdint.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <getopt.h>#include <readline/readline.h>#include <ipxe/command.h>#include <ipxe/parseopt.h>#include <ipxe/shell.h>#include <config/branding.h>Go to the source code of this file.
Data Structures | |
| struct | shell_options |
| "shell" options More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static int | help_exec (int argc __unused, char **argv __unused) |
| "help" command | |
| COMMAND (help, help_exec) | |
| "help" command | |
| int | shell (void) |
| Start command shell. | |
| static int | shell_exec (int argc, char **argv) |
| "shell" command | |
| COMMAND (shell, shell_exec) | |
| "shell" command | |
Variables | |
| static const char | shell_prompt [] = PRODUCT_SHORT_NAME "> " |
| The shell prompt string. | |
| static struct option_descriptor | shell_opts [] = {} |
| "shell" option list | |
| static struct command_descriptor | shell_cmd |
| "shell" command descriptor | |
Minimal command shell.
Definition in file shell.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
static |
"help" command
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 54 of file shell.c.
References __unused, COMMANDS, for_each_table_entry, command::name, and printf().
Referenced by COMMAND().
| COMMAND | ( | help | , |
| help_exec | ) |
"help" command
References help_exec().
| int shell | ( | void | ) |
Start command shell.
Definition at line 82 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 COMMAND(), interrupt(), ipxe(), PROVIDE_REQUIRING_SYMBOL(), and shell_exec().
|
static |
"shell" command
| argc | Argument count |
| argv | Argument list |
| rc | Return status code |
Definition at line 122 of file shell.c.
References opts, parse_options(), rc, shell(), and shell_cmd.
Referenced by COMMAND().
| COMMAND | ( | shell | , |
| shell_exec | ) |
"shell" command
References shell(), and shell_exec().
|
static |
|
static |
|
static |
"shell" command descriptor
Definition at line 112 of file shell.c.
Referenced by shell_exec().