#include <stddef.h>
#include <stdarg.h>
#include <ipxe/timer.h>
Go to the source code of this file.
◆ execl
#define execl |
( |
|
command, |
|
|
|
arg, |
|
|
|
... |
|
) |
| |
Value:( { \
char * const argv[] = { (arg), ## __VA_ARGS__ }; \
rc; \
} )
struct arbelprm_rc_send_wqe rc
int execv(const char *command, char *const argv[])
Execute command.
Execute command.
- Parameters
-
command | Command name |
arg | ... Argument list (starting with argv[0]) |
- Return values
-
This is a front end to execv().
Definition at line 20 of file unistd.h.
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ execv()
int execv |
( |
const char * |
command, |
|
|
char *const |
argv[] |
|
) |
| |
Execute command.
- Parameters
-
command | Command name |
argv | Argument list |
- Return values
-
Execute the named command. Unlike a traditional POSIX execv(), this function returns the exit status of the command.
Definition at line 60 of file exec.c.
66 for ( argc = 0 ; argv[argc] ; argc++ ) {}
91 rc =
cmd->exec ( argc, (
char ** ) argv );
#define EINVAL
Invalid argument.
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
#define ENOEXEC
Exec format error.
int errno
Global "last error" number.
#define for_each_table_entry(pointer, table)
Iterate through all entries within a linker table.
static void reset_getopt(void)
Reset getopt() internal state.
int strcmp(const char *first, const char *second)
Compare strings.
#define DBG(...)
Print a debugging message.
#define NULL
NULL pointer (VOID *)
struct bofm_section_header done
References cmd, COMMANDS, DBG, done, EINVAL, ENOEXEC, errno, for_each_table_entry, NULL, printf(), rc, reset_getopt(), and strcmp().
Referenced by system(), and time_exec().
◆ usleep()
Definition at line 29 of file unistd.h.
void udelay(unsigned long usecs)
Delay for a fixed number of microseconds.
References udelay().