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 = {
"blksync", /* name */
"blksync driver # sync the block driver", /* usage */
"files", /* topic */
rtems_shell_main_blksync, /* command */
NULL, /* alias */
NULL /* next */
.name = "blksync",
.usage = "blksync driver # sync the block driver",
.topic = "files",
.command = rtems_shell_main_blksync,
.alias = NULL,
.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 = {
"cat", /* name */
"cat n1 [n2 [n3...]] # show the ascii contents", /* usage */
"files", /* topic */
rtems_shell_main_cat , /* command */
NULL, /* alias */
NULL /* next */
.name = "cat",
.usage = "cat n1 [n2 [n3...]] # show the ascii contents",
.topic = "files",
.command = rtems_shell_main_cat ,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -92,10 +92,10 @@ static int rtems_shell_main_date(
}
rtems_shell_cmd_t rtems_shell_DATE_Command = {
"date", /* name */
"date [YYYY-MM-DD HH:MM:SS]", /* usage */
"misc", /* topic */
rtems_shell_main_date, /* command */
NULL, /* alias */
NULL /* next */
.name = "date",
.usage = "date [YYYY-MM-DD HH:MM:SS]",
.topic = "misc",
.command = rtems_shell_main_date,
.alias = NULL,
.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 = {
"dd", /* name */
"dd [OPERAND]...", /* usage */
"files", /* topic */
rtems_shell_main_dd, /* command */
NULL, /* alias */
NULL /* next */
.name = "dd",
.usage = "dd [OPERAND]...",
.topic = "files",
.command = rtems_shell_main_dd,
.alias = NULL,
.next = NULL
};

View File

@@ -51,10 +51,10 @@
#define OPTIONS "[-h]"
rtems_shell_cmd_t rtems_shell_DEBUGRFS_Command = {
"debugrfs", /* name */
"debugrfs " OPTIONS, /* usage */
"files", /* topic */
rtems_shell_debugrfs, /* command */
NULL, /* alias */
NULL /* next */
.name = "debugrfs",
.usage = "debugrfs " OPTIONS,
.topic = "files",
.command = rtems_shell_debugrfs,
.alias = NULL,
.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 =
{
"df", /* name */
"[-hB]\n"
" -h human-readable output\n"
" -B scale sizes by SIZE before printing them\n", /* usage */
"files", /* topic */
rtems_shell_main_df, /* command */
NULL, /* alias */
NULL /* next */
.name = "df",
.usage = "[-hB]\n"
" -h human-readable output\n"
" -B scale sizes by SIZE before printing them\n",
.topic = "files",
.command = rtems_shell_main_df,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

@@ -130,10 +130,10 @@ static int rtems_shell_main_echo(
}
rtems_shell_cmd_t rtems_shell_ECHO_Command = {
"echo", /* name */
"echo [args]", /* usage */
"misc", /* topic */
rtems_shell_main_echo, /* command */
NULL, /* alias */
NULL /* next */
.name = "echo",
.usage = "echo [args]",
.topic = "misc",
.command = rtems_shell_main_echo,
.alias = NULL,
.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 = {
"edit", /* name */
"edit [file ...]", /* usage */
"files", /* topic */
rtems_shell_main_edit, /* command */
NULL, /* alias */
NULL /* next */
.name = "edit",
.usage = "edit [file ...]",
.topic = "files",
.command = rtems_shell_main_edit,
.alias = NULL,
.next = NULL
};

View File

@@ -40,6 +40,6 @@
#include "internal.h"
rtems_shell_alias_t rtems_shell_EXIT_Alias = {
"logoff", /* command */
"exit" /* alias */
.name = "logoff",
.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 = {
"getenv", /* name */
"getenv [var]", /* usage */
"misc", /* topic */
rtems_shell_main_getenv, /* command */
NULL, /* alias */
NULL /* next */
.name = "getenv",
.usage = "getenv [var]",
.topic = "misc",
.command = rtems_shell_main_getenv,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

@@ -103,5 +103,5 @@ rtems_shell_cmd_t rtems_shell_I2CDETECT_Command = {
.name = "i2cdetect",
.usage = rtems_i2cdetect_shell_usage,
.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",
.usage = rtems_i2cset_shell_usage,
.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 = {
"id", /* name */
"show uid, gid, euid, and egid", /* usage */
"misc", /* topic */
rtems_shell_main_id, /* command */
NULL, /* alias */
NULL /* next */
.name = "id",
.usage = "show uid",
.topic = "misc",
.command = rtems_shell_main_id,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

@@ -771,11 +771,15 @@ mastercmp_listdir(const FTSENT **a, const FTSENT **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 = {
"ls", /* name */
"ls [dir] # list files in the directory", /* usage */
"files", /* topic */
rtems_shell_main_ls, /* command */
NULL, /* alias */
NULL /* next */
.name = "ls",
.usage = "ls [dir] # list files in the directory",
.topic = "files",
.command = rtems_shell_main_ls,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -145,10 +145,10 @@ static int rtems_shell_main_mount(
}
rtems_shell_cmd_t rtems_shell_MOUNT_Command = {
"mount", /* name */
"mount [-t type] [-r] [-L] [-o options] source target", /* usage */
"files", /* topic */
rtems_shell_main_mount, /* command */
NULL, /* alias */
NULL /* next */
.name = "mount",
.usage = "mount [-t type] [-r] [-L] [-o options] source target",
.topic = "files",
.command = rtems_shell_main_mount,
.alias = NULL,
.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]"
rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command = {
"mkdos", /* name */
"mkdos " OPTIONS " path # format disk", /* usage */
"files", /* topic */
rtems_shell_main_msdos_format, /* command */
NULL, /* alias */
NULL /* next */
.name = "mkdos",
.usage = "mkdos " OPTIONS " path # format disk",
.topic = "files",
.command = rtems_shell_main_msdos_format,
.alias = NULL,
.next = NULL
};
rtems_shell_cmd_t rtems_shell_MSDOSFMT_Alias = {
"msdosfmt", /* name */
NULL, /* usage */
"files", /* topic */
rtems_shell_main_msdos_format, /* command */
&rtems_shell_MSDOSFMT_Command, /* alias */
NULL /* next */
.name = "msdosfmt",
.usage = NULL,
.topic = "files",
.command = rtems_shell_main_msdos_format,
.alias = &rtems_shell_MSDOSFMT_Command,
.next = NULL
};

View File

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

View File

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

View File

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

View File

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

View File

@@ -704,10 +704,10 @@ usage_rm(rtems_shell_rm_globals* globals)
}
rtems_shell_cmd_t rtems_shell_RM_Command = {
"rm", /* name */
"[-f | -i] [-dIPRrvW] file ...", /* usage */
"files", /* topic */
rtems_shell_main_rm, /* command */
NULL, /* alias */
NULL /* next */
.name = "rm",
.usage = "[-f | -i] [-dIPRrvW] file ...",
.topic = "files",
.command = rtems_shell_main_rm,
.alias = NULL,
.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 = {
"rmdir", /* name */
"rmdir dir # remove directory", /* usage */
"files", /* topic */
rtems_shell_main_rmdir, /* command */
NULL, /* alias */
NULL /* next */
.name = "rmdir",
.usage = "rmdir dir # remove directory",
.topic = "files",
.command = rtems_shell_main_rmdir,
.alias = NULL,
.next = NULL
};

View File

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

View File

@@ -725,10 +725,10 @@ rtems_shell_main_rtrace (int argc, char* argv[])
}
rtems_shell_cmd_t rtems_shell_RTRACE_Command = {
"rtrace", /* name */
"rtrace [-l]", /* usage */
"misc", /* topic */
rtems_shell_main_rtrace, /* command */
NULL, /* alias */
NULL /* next */
.name = "rtrace",
.usage = "rtrace [-l]",
.topic = "misc",
.command = rtems_shell_main_rtrace,
.alias = NULL,
.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 = {
"setenv", /* name */
"setenv [var] [string]", /* usage */
"misc", /* topic */
rtems_shell_main_setenv, /* command */
NULL, /* alias */
NULL /* next */
.name = "setenv",
.usage = "setenv [var] [string]",
.topic = "misc",
.command = rtems_shell_main_setenv,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -84,10 +84,10 @@ static int rtems_shell_main_unmount(
}
rtems_shell_cmd_t rtems_shell_UNMOUNT_Command = {
"unmount", /* name */
"unmount path # unmount disk", /* usage */
"files", /* topic */
rtems_shell_main_unmount, /* command */
NULL, /* alias */
NULL /* next */
.name = "unmount",
.usage = "unmount path # unmount disk",
.topic = "files",
.command = rtems_shell_main_unmount,
.alias = NULL,
.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 = {
"unsetenv", /* name */
"unsetenv [var]", /* usage */
"misc", /* topic */
rtems_shell_main_unsetenv, /* command */
NULL, /* alias */
NULL /* next */
.name = "unsetenv",
.usage = "unsetenv [var]",
.topic = "misc",
.command = rtems_shell_main_unsetenv,
.alias = NULL,
.next = NULL
};

View File

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

View File

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

View File

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