cpukit/.../shell: Address missing field initializer warnings

Address missing field initializer warnings.

These were all rtems_shell_cmd_t or rtems_shell_alias_t declarations
with initialization.  The initialization was changed to using named
fields.

Updates #5325.
This commit is contained in:
Joel Sherrill
2025-10-14 12:22:36 -05:00
parent 6269686dfb
commit f519633d0d
56 changed files with 351 additions and 341 deletions

View File

@@ -88,10 +88,10 @@ static int rtems_shell_main_blksync(
} }
rtems_shell_cmd_t rtems_shell_BLKSYNC_Command = { rtems_shell_cmd_t rtems_shell_BLKSYNC_Command = {
"blksync", /* name */ .name = "blksync",
"blksync driver # sync the block driver", /* usage */ .usage = "blksync driver # sync the block driver",
"files", /* topic */ .topic = "files",
rtems_shell_main_blksync, /* command */ .command = rtems_shell_main_blksync,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -70,10 +70,10 @@ static int rtems_shell_main_cat(int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_CAT_Command = { rtems_shell_cmd_t rtems_shell_CAT_Command = {
"cat", /* name */ .name = "cat",
"cat n1 [n2 [n3...]] # show the ascii contents", /* usage */ .usage = "cat n1 [n2 [n3...]] # show the ascii contents",
"files", /* topic */ .topic = "files",
rtems_shell_main_cat , /* command */ .command = rtems_shell_main_cat ,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -40,6 +40,6 @@
#include "internal.h" #include "internal.h"
rtems_shell_alias_t rtems_shell_CD_Alias = { rtems_shell_alias_t rtems_shell_CD_Alias = {
"chdir", /* command */ .name = "chdir",
"cd" /* alias */ .alias = "cd"
}; };

View File

@@ -64,10 +64,10 @@ static int rtems_shell_main_chdir(
} }
rtems_shell_cmd_t rtems_shell_CHDIR_Command = { rtems_shell_cmd_t rtems_shell_CHDIR_Command = {
"chdir", /* name */ .name = "chdir",
"chdir [dir] # change the current directory", /* usage */ .usage = "chdir [dir] # change the current directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_chdir, /* command */ .command = rtems_shell_main_chdir,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -83,10 +83,10 @@ static int rtems_shell_main_chmod(
} }
rtems_shell_cmd_t rtems_shell_CHMOD_Command = { rtems_shell_cmd_t rtems_shell_CHMOD_Command = {
"chmod", /* name */ .name = "chmod",
"chmod 0777 n1 n2... # change filemode", /* usage */ .usage = "chmod 0777 n1 n2... # change filemode",
"files", /* topic */ .topic = "files",
rtems_shell_main_chmod, /* command */ .command = rtems_shell_main_chmod,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -63,10 +63,10 @@ static int rtems_shell_main_chroot(
} }
rtems_shell_cmd_t rtems_shell_CHROOT_Command = { rtems_shell_cmd_t rtems_shell_CHROOT_Command = {
"chroot", /* name */ .name = "chroot",
"chroot [dir] # change the root directory", /* usage */ .usage = "chroot [dir] # change the root directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_chroot, /* command */ .command = rtems_shell_main_chroot,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -581,12 +581,16 @@ mastercmp(const FTSENT **a, const FTSENT **b)
return (0); return (0);
} }
/*
* This command internally defines a macro with the same name.
*/
#undef usage
rtems_shell_cmd_t rtems_shell_CP_Command = { rtems_shell_cmd_t rtems_shell_CP_Command = {
"cp", /* name */ .name = "cp",
"cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target", /* usage */ .usage = "cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target",
"files", /* topic */ .topic = "files",
rtems_shell_main_cp, /* command */ .command = rtems_shell_main_cp,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -76,10 +76,10 @@ static int rtems_shell_main_cpuuse(
} }
rtems_shell_cmd_t rtems_shell_CPUUSE_Command = { rtems_shell_cmd_t rtems_shell_CPUUSE_Command = {
"cpuuse", /* name */ .name = "cpuuse",
"[-r] print or reset per thread cpu usage", /* usage */ .usage = "[-r] print or reset per thread cpu usage",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_cpuuse, /* command */ .command = rtems_shell_main_cpuuse,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -92,10 +92,10 @@ static int rtems_shell_main_date(
} }
rtems_shell_cmd_t rtems_shell_DATE_Command = { rtems_shell_cmd_t rtems_shell_DATE_Command = {
"date", /* name */ .name = "date",
"date [YYYY-MM-DD HH:MM:SS]", /* usage */ .usage = "date [YYYY-MM-DD HH:MM:SS]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_date, /* command */ .command = rtems_shell_main_date,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -577,10 +577,10 @@ dd_out(rtems_shell_dd_globals* globals, int force)
} }
rtems_shell_cmd_t rtems_shell_DD_Command = { rtems_shell_cmd_t rtems_shell_DD_Command = {
"dd", /* name */ .name = "dd",
"dd [OPERAND]...", /* usage */ .usage = "dd [OPERAND]...",
"files", /* topic */ .topic = "files",
rtems_shell_main_dd, /* command */ .command = rtems_shell_main_dd,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -51,10 +51,10 @@
#define OPTIONS "[-h]" #define OPTIONS "[-h]"
rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command = { rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command = {
"debugrfs", /* name */ .name = "debugrfs",
"debugrfs " OPTIONS, /* usage */ .usage = "debugrfs " OPTIONS,
"files", /* topic */ .topic = "files",
rtems_shell_debugrfs, /* command */ .command = rtems_shell_debugrfs,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -153,12 +153,12 @@ static int rtems_shell_main_df(int argc, char **argv)
rtems_shell_cmd_t rtems_shell_DF_Command = rtems_shell_cmd_t rtems_shell_DF_Command =
{ {
"df", /* name */ .name = "df",
"[-hB]\n" .usage = "[-hB]\n"
" -h human-readable output\n" " -h human-readable output\n"
" -B scale sizes by SIZE before printing them\n", /* usage */ " -B scale sizes by SIZE before printing them\n",
"files", /* topic */ .topic = "files",
rtems_shell_main_df, /* command */ .command = rtems_shell_main_df,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -40,6 +40,6 @@
#include "internal.h" #include "internal.h"
rtems_shell_alias_t rtems_shell_DIR_Alias = { rtems_shell_alias_t rtems_shell_DIR_Alias = {
"ls", /* command */ .name = "ls",
"dir" /* alias */ .alias = "dir"
}; };

View File

@@ -459,10 +459,10 @@ static int rtems_shell_main_drvmgr(
} }
rtems_shell_cmd_t rtems_shell_DRVMGR_Command = { rtems_shell_cmd_t rtems_shell_DRVMGR_Command = {
"drvmgr", /* name */ .name = "drvmgr",
drvmgr_usage_str, /* usage */ .usage = drvmgr_usage_str,
"system", /* topic */ .topic = "system",
rtems_shell_main_drvmgr, /* command */ .command = rtems_shell_main_drvmgr,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -130,10 +130,10 @@ static int rtems_shell_main_echo(
} }
rtems_shell_cmd_t rtems_shell_ECHO_Command = { rtems_shell_cmd_t rtems_shell_ECHO_Command = {
"echo", /* name */ .name = "echo",
"echo [args]", /* usage */ .usage = "echo [args]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_echo, /* command */ .command = rtems_shell_main_echo,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -2259,10 +2259,10 @@ static int rtems_shell_main_edit(int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_EDIT_Command = { rtems_shell_cmd_t rtems_shell_EDIT_Command = {
"edit", /* name */ .name = "edit",
"edit [file ...]", /* usage */ .usage = "edit [file ...]",
"files", /* topic */ .topic = "files",
rtems_shell_main_edit, /* command */ .command = rtems_shell_main_edit,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -40,6 +40,6 @@
#include "internal.h" #include "internal.h"
rtems_shell_alias_t rtems_shell_EXIT_Alias = { rtems_shell_alias_t rtems_shell_EXIT_Alias = {
"logoff", /* command */ .name = "logoff",
"exit" /* alias */ .alias = "exit"
}; };

View File

@@ -69,10 +69,10 @@ static int rtems_shell_main_getenv(int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_GETENV_Command = { rtems_shell_cmd_t rtems_shell_GETENV_Command = {
"getenv", /* name */ .name = "getenv",
"getenv [var]", /* usage */ .usage = "getenv [var]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_getenv, /* command */ .command = rtems_shell_main_getenv,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -52,10 +52,10 @@ static int rtems_shell_main_shutdown(
} }
rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command = { rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command = {
"shutdown", /* name */ .name = "shutdown",
"shutdown", /* usage */ .usage = "shutdown",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_shutdown, /* command */ .command = rtems_shell_main_shutdown,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -158,13 +158,18 @@ main_hexdump(rtems_shell_hexdump_globals* globals, int argc, char *argv[])
return exitval; return exitval;
} }
/*
* This command internally defines a macro with the same name.
*/
#undef next
#undef usage
rtems_shell_cmd_t rtems_shell_HEXDUMP_Command = { rtems_shell_cmd_t rtems_shell_HEXDUMP_Command = {
"hexdump", /* name */ .name = "hexdump",
"hexdump [-bcCdovx] [-e fmt] [-f fmt_file] [-n length]\n" /* usage */ .usage = "hexdump [-bcCdovx] [-e fmt] [-f fmt_file] [-n length]\n"
" [-s skip] [file ...]", " [-s skip] [file ...]",
"files", /* topic */ .topic = "files",
rtems_shell_main_hexdump, /* command */ .command = rtems_shell_main_hexdump,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -103,5 +103,5 @@ rtems_shell_cmd_t rtems_shell_I2CDETECT_Command = {
.name = "i2cdetect", .name = "i2cdetect",
.usage = rtems_i2cdetect_shell_usage, .usage = rtems_i2cdetect_shell_usage,
.topic = "misc", .topic = "misc",
.command = rtems_i2cdetect_shell_main, .command = rtems_i2cdetect_shell_main
}; };

View File

@@ -120,5 +120,5 @@ rtems_shell_cmd_t rtems_shell_I2CSET_Command = {
.name = "i2cset", .name = "i2cset",
.usage = rtems_i2cset_shell_usage, .usage = rtems_i2cset_shell_usage,
.topic = "misc", .topic = "misc",
.command = rtems_i2cset_shell_main, .command = rtems_i2cset_shell_main
}; };

View File

@@ -76,10 +76,10 @@ static int rtems_shell_main_id(
} }
rtems_shell_cmd_t rtems_shell_ID_Command = { rtems_shell_cmd_t rtems_shell_ID_Command = {
"id", /* name */ .name = "id",
"show uid, gid, euid, and egid", /* usage */ .usage = "show uid",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_id, /* command */ .command = rtems_shell_main_id,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -302,10 +302,10 @@ usage(rtems_shell_ln_globals* globals)
} }
rtems_shell_cmd_t rtems_shell_LN_Command = { rtems_shell_cmd_t rtems_shell_LN_Command = {
"ln", /* name */ .name = "ln",
"ln ln [-fhinsv] source_file [target_file]", /* usage */ .usage = "ln ln [-fhinsv] source_file [target_file]",
"files", /* topic */ .topic = "files",
rtems_shell_main_ln, /* command */ .command = rtems_shell_main_ln,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -57,10 +57,10 @@ static int rtems_shell_main_logoff(
} }
rtems_shell_cmd_t rtems_shell_LOGOFF_Command = { rtems_shell_cmd_t rtems_shell_LOGOFF_Command = {
"logoff", /* name */ .name = "logoff",
"logoff from the system", /* usage */ .usage = "logoff from the system",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_logoff, /* command */ .command = rtems_shell_main_logoff,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -771,11 +771,15 @@ mastercmp_listdir(const FTSENT **a, const FTSENT **b)
return (sortfcn(*a, *b)); return (sortfcn(*a, *b));
} }
/*
* This command internally defines a macro with the same name.
*/
#undef usage
rtems_shell_cmd_t rtems_shell_LS_Command = { rtems_shell_cmd_t rtems_shell_LS_Command = {
"ls", /* name */ .name = "ls",
"ls [dir] # list files in the directory", /* usage */ .usage = "ls [dir] # list files in the directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_ls, /* command */ .command = rtems_shell_main_ls,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -66,11 +66,11 @@ static int rtems_shell_main_malloc_info(
} }
rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command = { rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command = {
"malloc", /* name */ .name = "malloc",
"malloc [walk]", /* usage */ .usage = "malloc [walk]",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_malloc_info, /* command */ .command = rtems_shell_main_malloc_info,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -127,10 +127,10 @@ static int rtems_shell_main_md5(
} }
rtems_shell_cmd_t rtems_shell_MD5_Command = { rtems_shell_cmd_t rtems_shell_MD5_Command = {
"md5", /* name */ .name = "md5",
"md5 [file ...]", /* usage */ .usage = "md5 [file ...]",
"files", /* topic */ .topic = "files",
rtems_shell_main_md5, /* command */ .command = rtems_shell_main_md5,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -224,33 +224,30 @@ void mdumpC(void* addr, int m)
printf("%c", isprint(pb[n]) ? pb[n] : '.'); printf("%c", isprint(pb[n]) ? pb[n] : '.');
} }
rtems_shell_cmd_t rtems_shell_MDUMP_Command = { rtems_shell_cmd_t rtems_shell_MDUMP_Command = {
"mdump", /* name */ .name = "mdump",
"mdump [address [length [size]]]", /* usage */ .usage = "mdump [address [length [size]]]",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_mdump, /* command */ .command = rtems_shell_main_mdump,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };
rtems_shell_cmd_t rtems_shell_WDUMP_Command = { rtems_shell_cmd_t rtems_shell_WDUMP_Command = {
"wdump", /* name */ .name = "wdump",
"wdump [address [length]]", /* usage */ .usage = "wdump [address [length]]",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_wdump, /* command */ .command = rtems_shell_main_wdump,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };
rtems_shell_cmd_t rtems_shell_LDUMP_Command = { rtems_shell_cmd_t rtems_shell_LDUMP_Command = {
"ldump", /* name */ .name = "ldump",
"ldump [address [length]]", /* usage */ .usage = "ldump [address [length]]",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_ldump, /* command */ .command = rtems_shell_main_ldump,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -91,10 +91,10 @@ static const char rtems_medit_shell_usage[] =
"\tValues must not exceed 255 or 0xff\n"; "\tValues must not exceed 255 or 0xff\n";
rtems_shell_cmd_t rtems_shell_MEDIT_Command = { rtems_shell_cmd_t rtems_shell_MEDIT_Command = {
"medit", /* name */ .name = "medit",
rtems_medit_shell_usage, /* usage */ .usage = rtems_medit_shell_usage,
"mem", /* topic */ .topic = "mem",
rtems_shell_main_medit, /* command */ .command = rtems_shell_main_medit,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -87,10 +87,10 @@ static int rtems_shell_main_mfill(
} }
rtems_shell_cmd_t rtems_shell_MFILL_Command = { rtems_shell_cmd_t rtems_shell_MFILL_Command = {
"mfill", /* name */ .name = "mfill",
"mfill address size value", /* usage */ .usage = "mfill address size value",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_mfill, /* command */ .command = rtems_shell_main_mfill,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -65,10 +65,10 @@ static int rtems_shell_main_mkdir(
} }
rtems_shell_cmd_t rtems_shell_MKDIR_Command = { rtems_shell_cmd_t rtems_shell_MKDIR_Command = {
"mkdir", /* name */ .name = "mkdir",
"mkdir dir # make a directory", /* usage */ .usage = "mkdir dir # make a directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_mkdir, /* command */ .command = rtems_shell_main_mkdir,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -454,10 +454,10 @@ major_from_name(const char *name, mode_t mode)
#endif #endif
rtems_shell_cmd_t rtems_shell_MKNOD_Command = { rtems_shell_cmd_t rtems_shell_MKNOD_Command = {
"mknod", /* name */ .name = "mknod",
"mknod mknod [-rR] [-F fmt] [-m mode] name [c | b] minor", /* usage */ .usage = "mknod mknod [-rR] [-F fmt] [-m mode] name [c | b] minor",
"files", /* topic */ .topic = "files",
rtems_shell_main_mknod, /* command */ .command = rtems_shell_main_mknod,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -51,10 +51,10 @@
#define OPTIONS "[-v] [-s blksz] [-b grpblk] [-i grpinode] [-I] [-o %inode]" #define OPTIONS "[-v] [-s blksz] [-b grpblk] [-i grpinode] [-I] [-o %inode]"
rtems_shell_cmd_t rtems_shell_MKRFS_Command = { rtems_shell_cmd_t rtems_shell_MKRFS_Command = {
"mkrfs", /* name */ .name = "mkrfs",
"mkrfs " OPTIONS " dev", /* usage */ .usage = "mkrfs " OPTIONS " dev",
"files", /* topic */ .topic = "files",
rtems_shell_rfs_format, /* command */ .command = rtems_shell_rfs_format,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -87,10 +87,10 @@ static int rtems_shell_main_mmove(
} }
rtems_shell_cmd_t rtems_shell_MMOVE_Command = { rtems_shell_cmd_t rtems_shell_MMOVE_Command = {
"mmove", /* name */ .name = "mmove",
"mmove dst src length", /* usage */ .usage = "mmove dst src length",
"mem", /* topic */ .topic = "mem",
rtems_shell_main_mmove, /* command */ .command = rtems_shell_main_mmove,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -145,10 +145,10 @@ static int rtems_shell_main_mount(
} }
rtems_shell_cmd_t rtems_shell_MOUNT_Command = { rtems_shell_cmd_t rtems_shell_MOUNT_Command = {
"mount", /* name */ .name = "mount",
"mount [-t type] [-r] [-L] [-o options] source target", /* usage */ .usage = "mount [-t type] [-r] [-L] [-o options] source target",
"files", /* topic */ .topic = "files",
rtems_shell_main_mount, /* command */ .command = rtems_shell_main_mount,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -169,19 +169,19 @@ static int rtems_shell_main_msdos_format(
#define OPTIONS "[-V label] [-s sectors/cluster] [-r size] [-v]" #define OPTIONS "[-V label] [-s sectors/cluster] [-r size] [-v]"
rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command = { rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command = {
"mkdos", /* name */ .name = "mkdos",
"mkdos " OPTIONS " path # format disk", /* usage */ .usage = "mkdos " OPTIONS " path # format disk",
"files", /* topic */ .topic = "files",
rtems_shell_main_msdos_format, /* command */ .command = rtems_shell_main_msdos_format,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };
rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias = { rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias = {
"msdosfmt", /* name */ .name = "msdosfmt",
NULL, /* usage */ .usage = NULL,
"files", /* topic */ .topic = "files",
rtems_shell_main_msdos_format, /* command */ .command = rtems_shell_main_msdos_format,
&rtems_shell_MSDOSFMT_Command, /* alias */ .alias = &rtems_shell_MSDOSFMT_Command,
NULL /* next */ .next = NULL
}; };

View File

@@ -486,10 +486,10 @@ usage_mv(rtems_shell_mv_globals* globals)
} }
rtems_shell_cmd_t rtems_shell_MV_Command = { rtems_shell_cmd_t rtems_shell_MV_Command = {
"mv", /* name */ .name = "mv",
"[-fiv] source target ...", /* usage */ .usage = "[-fiv] source target ...",
"files", /* topic */ .topic = "files",
rtems_shell_main_mv, /* command */ .command = rtems_shell_main_mv,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -557,10 +557,10 @@ static int rtems_shell_main_pci(
} }
rtems_shell_cmd_t rtems_shell_PCI_Command = { rtems_shell_cmd_t rtems_shell_PCI_Command = {
"pci", /* name */ .name = "pci",
pci_usage_str, /* usage */ .usage = pci_usage_str,
"system", /* topic */ .topic = "system",
rtems_shell_main_pci, /* command */ .command = rtems_shell_main_pci,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -77,10 +77,10 @@ static int rtems_shell_main_perioduse(
} }
rtems_shell_cmd_t rtems_shell_PERIODUSE_Command = { rtems_shell_cmd_t rtems_shell_PERIODUSE_Command = {
"perioduse", /* name */ .name = "perioduse",
"[-r] print or reset per period usage", /* usage */ .usage = "[-r] print or reset per period usage",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_perioduse, /* command */ .command = rtems_shell_main_perioduse,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -55,10 +55,10 @@ static int rtems_shell_main_pwd(
} }
rtems_shell_cmd_t rtems_shell_PWD_Command = { rtems_shell_cmd_t rtems_shell_PWD_Command = {
"pwd", /* name */ .name = "pwd",
"pwd # print work directory", /* usage */ .usage = "pwd # print work directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_pwd, /* command */ .command = rtems_shell_main_pwd,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -704,10 +704,10 @@ usage_rm(rtems_shell_rm_globals* globals)
} }
rtems_shell_cmd_t rtems_shell_RM_Command = { rtems_shell_cmd_t rtems_shell_RM_Command = {
"rm", /* name */ .name = "rm",
"[-f | -i] [-dIPRrvW] file ...", /* usage */ .usage = "[-f | -i] [-dIPRrvW] file ...",
"files", /* topic */ .topic = "files",
rtems_shell_main_rm, /* command */ .command = rtems_shell_main_rm,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -61,10 +61,10 @@ static int rtems_shell_main_rmdir (int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_RMDIR_Command = { rtems_shell_cmd_t rtems_shell_RMDIR_Command = {
"rmdir", /* name */ .name = "rmdir",
"rmdir dir # remove directory", /* usage */ .usage = "rmdir dir # remove directory",
"files", /* topic */ .topic = "files",
rtems_shell_main_rmdir, /* command */ .command = rtems_shell_main_rmdir,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -144,13 +144,13 @@ static int rtems_shell_main_rtems(
"rtems <command> (eg. help)" "rtems <command> (eg. help)"
rtems_shell_cmd_t rtems_shell_RTEMS_Command = { rtems_shell_cmd_t rtems_shell_RTEMS_Command = {
"rtems", /* name */ .name = "rtems",
HELP_LINE, /* usage */ .usage = HELP_LINE,
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_rtems, /* command */ .command = rtems_shell_main_rtems,
NULL, /* alias */ .alias = NULL,
NULL, /* next */ .next = NULL,
0500, /* mode */ .mode = 0500,
0, /* uid */ .uid = 0,
0 /* gid */ .gid = 0
}; };

View File

@@ -725,10 +725,10 @@ rtems_shell_main_rtrace (int argc, char* argv[])
} }
rtems_shell_cmd_t rtems_shell_RTRACE_Command = { rtems_shell_cmd_t rtems_shell_RTRACE_Command = {
"rtrace", /* name */ .name = "rtrace",
"rtrace [-l]", /* usage */ .usage = "rtrace [-l]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_rtrace, /* command */ .command = rtems_shell_main_rtrace,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -92,10 +92,10 @@ static int rtems_shell_main_setenv(int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_SETENV_Command = { rtems_shell_cmd_t rtems_shell_SETENV_Command = {
"setenv", /* name */ .name = "setenv",
"setenv [var] [string]", /* usage */ .usage = "setenv [var] [string]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_setenv, /* command */ .command = rtems_shell_main_setenv,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -85,10 +85,10 @@ static int rtems_shell_main_sleep(
} }
rtems_shell_cmd_t rtems_shell_SLEEP_Command = { rtems_shell_cmd_t rtems_shell_SLEEP_Command = {
"sleep", /* name */ .name = "sleep",
"sleep seconds [nanoseconds]", /* usage */ .usage = "sleep seconds [nanoseconds]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_sleep, /* command */ .command = rtems_shell_main_sleep,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -57,10 +57,10 @@ static int rtems_shell_main_stackuse(
} }
rtems_shell_cmd_t rtems_shell_STACKUSE_Command = { rtems_shell_cmd_t rtems_shell_STACKUSE_Command = {
"stackuse", /* name */ .name = "stackuse",
"print per thread stack usage", /* usage */ .usage = "print per thread stack usage",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_stackuse, /* command */ .command = rtems_shell_main_stackuse,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -76,10 +76,10 @@ static int rtems_shell_main_top(
} }
rtems_shell_cmd_t rtems_shell_TOP_Command = { rtems_shell_cmd_t rtems_shell_TOP_Command = {
"top", /* name */ .name = "top",
"[-r] print or reset per thread cpu usage", /* usage */ .usage = "[-r] print or reset per thread cpu usage",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_top, /* command */ .command = rtems_shell_main_top,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -54,10 +54,10 @@ static int rtems_shell_main_tty(
} }
rtems_shell_cmd_t rtems_shell_TTY_Command = { rtems_shell_cmd_t rtems_shell_TTY_Command = {
"tty", /* name */ .name = "tty",
"show ttyname", /* usage */ .usage = "show ttyname",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_tty, /* command */ .command = rtems_shell_main_tty,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -72,10 +72,10 @@ static int rtems_shell_main_umask(
} }
rtems_shell_cmd_t rtems_shell_UMASK_Command = { rtems_shell_cmd_t rtems_shell_UMASK_Command = {
"umask", /* name */ .name = "umask",
"umask [new_umask]", /* usage */ .usage = "umask [new_umask]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_umask, /* command */ .command = rtems_shell_main_umask,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -84,10 +84,10 @@ static int rtems_shell_main_unmount(
} }
rtems_shell_cmd_t rtems_shell_UNMOUNT_Command = { rtems_shell_cmd_t rtems_shell_UNMOUNT_Command = {
"unmount", /* name */ .name = "unmount",
"unmount path # unmount disk", /* usage */ .usage = "unmount path # unmount disk",
"files", /* topic */ .topic = "files",
rtems_shell_main_unmount, /* command */ .command = rtems_shell_main_unmount,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -63,10 +63,10 @@ static int rtems_shell_main_unsetenv(int argc, char *argv[])
} }
rtems_shell_cmd_t rtems_shell_UNSETENV_Command = { rtems_shell_cmd_t rtems_shell_UNSETENV_Command = {
"unsetenv", /* name */ .name = "unsetenv",
"unsetenv [var]", /* usage */ .usage = "unsetenv [var]",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_unsetenv, /* command */ .command = rtems_shell_main_unsetenv,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -58,10 +58,10 @@ static int rtems_shell_main_whoami(
} }
rtems_shell_cmd_t rtems_shell_WHOAMI_Command = { rtems_shell_cmd_t rtems_shell_WHOAMI_Command = {
"whoami", /* name */ .name = "whoami",
"show current user", /* usage */ .usage = "show current user",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_whoami, /* command */ .command = rtems_shell_main_whoami,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -69,10 +69,10 @@ static int rtems_shell_main_wkspace_info(
} }
rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command = { rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command = {
"wkspace", /* name */ .name = "wkspace",
"Report on RTEMS Executive Workspace", /* usage */ .usage = "Report on RTEMS Executive Workspace",
"rtems", /* topic */ .topic = "rtems",
rtems_shell_main_wkspace_info, /* command */ .command = rtems_shell_main_wkspace_info,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };

View File

@@ -243,12 +243,12 @@ static int rtems_shell_main_joel(
} }
rtems_shell_cmd_t rtems_shell_JOEL_Command = { rtems_shell_cmd_t rtems_shell_JOEL_Command = {
"joel", /* name */ .name = "joel",
"joel [args] SCRIPT", /* usage */ .usage = "joel [args] SCRIPT",
"misc", /* topic */ .topic = "misc",
rtems_shell_main_joel, /* command */ .command = rtems_shell_main_joel,
NULL, /* alias */ .alias = NULL,
NULL /* next */ .next = NULL
}; };
/* /*