56 static int ntp_exec (
int argc,
char **argv ) {
69 if ( (
rc =
ntp ( hostname ) ) != 0 ) {
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
int optind
Current option index.
struct command ntp_command __command
NTP command.
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Parse command-line options.
static struct command_descriptor ntp_cmd
"ntp" command descriptor
int ntp(const char *hostname)
Get time and date via NTP.
char * strerror(int errno)
Retrieve string representation of error number.
static struct option_descriptor ntp_opts[]
"ntp" option list
Command line option parsing.
static int ntp_exec(int argc, char **argv)
"ntp" command
const char * name
Name of the command.
A command-line option descriptor.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
static union @438 opts
"cert<xxx>" option list