95 printf (
"Could not store \"%s\": %s\n",
#define NULL
NULL pointer (VOID *).
struct arbelprm_rc_send_wqe rc
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
#define COMMAND(name, exec)
int optind
Current option index.
Parse command-line options.
@ required_argument
Option requires an argument.
@ no_argument
Option does not take an argument.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
void unregister_image(struct image *image)
Unregister executable image.
static struct option_descriptor imgset_opts[]
"imgset" option list
static struct command_descriptor imgset_cmd
"imgset" command descriptor
static int imgset_exec(int argc, char **argv)
The "imgset" command.
int imgacquire(const char *name_uri, unsigned long timeout, int quiet, struct image **image)
Acquire an image.
int parse_flag(char *text __unused, int *flag)
Parse flag.
int parse_autovivified_setting(char *text, struct named_setting *setting)
Parse and autovivify setting name.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms).
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Command line option parsing.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
int store_setting(struct settings *settings, const struct setting *setting, const void *data, size_t len)
Store value of setting.
char * strerror(int errno)
Retrieve string representation of error number.
const void * data
Read-only data.
size_t len
Length of raw file image.
int quiet
Display only error messages.
int keep
Keep original image.
unsigned long timeout
Download timeout.
A command-line option descriptor.
int printf(const char *fmt,...)
Write a formatted string to the console.