diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 22:39:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-17 22:39:29 +0000 |
commit | 55216fafdf7660a9bbdf08bb0b3ca8dfa67e698f (patch) | |
tree | 8277427cf8e8ad7608ae146c98d67d49b0a96ddf /cpukit | |
parent | 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-55216fafdf7660a9bbdf08bb0b3ca8dfa67e698f.tar.bz2 |
2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/main_alias.c, libmisc/shell/main_blksync.c,
libmisc/shell/main_cat.c, libmisc/shell/main_cd.c,
libmisc/shell/main_chdir.c, libmisc/shell/main_chmod.c,
libmisc/shell/main_chroot.c, libmisc/shell/main_cpuuse.c,
libmisc/shell/main_date.c, libmisc/shell/main_dir.c,
libmisc/shell/main_exit.c, libmisc/shell/main_help.c,
libmisc/shell/main_id.c, libmisc/shell/main_logoff.c,
libmisc/shell/main_ls.c, libmisc/shell/main_mallocinfo.c,
libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c,
libmisc/shell/main_mfill.c, libmisc/shell/main_mkdir.c,
libmisc/shell/main_mmove.c, libmisc/shell/main_mount.c,
libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c,
libmisc/shell/main_mount_nfs.c, libmisc/shell/main_mount_tftp.c,
libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c,
libmisc/shell/main_pwd.c, libmisc/shell/main_rm.c,
libmisc/shell/main_rmdir.c, libmisc/shell/main_stackuse.c,
libmisc/shell/main_tty.c, libmisc/shell/main_umask.c,
libmisc/shell/main_unmount.c, libmisc/shell/main_whoami.c,
libmisc/shell/shell_cmdset.c, libmisc/shell/shellconfig.h: Change
rtems_Shell_ to rtems_shell_.
Diffstat (limited to 'cpukit')
39 files changed, 141 insertions, 118 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d553c289c8..9c1776faef 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,28 @@ 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> + * libmisc/shell/main_alias.c, libmisc/shell/main_blksync.c, + libmisc/shell/main_cat.c, libmisc/shell/main_cd.c, + libmisc/shell/main_chdir.c, libmisc/shell/main_chmod.c, + libmisc/shell/main_chroot.c, libmisc/shell/main_cpuuse.c, + libmisc/shell/main_date.c, libmisc/shell/main_dir.c, + libmisc/shell/main_exit.c, libmisc/shell/main_help.c, + libmisc/shell/main_id.c, libmisc/shell/main_logoff.c, + libmisc/shell/main_ls.c, libmisc/shell/main_mallocinfo.c, + libmisc/shell/main_mdump.c, libmisc/shell/main_medit.c, + libmisc/shell/main_mfill.c, libmisc/shell/main_mkdir.c, + libmisc/shell/main_mmove.c, libmisc/shell/main_mount.c, + libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, + libmisc/shell/main_mount_nfs.c, libmisc/shell/main_mount_tftp.c, + libmisc/shell/main_msdosfmt.c, libmisc/shell/main_mwdump.c, + libmisc/shell/main_pwd.c, libmisc/shell/main_rm.c, + libmisc/shell/main_rmdir.c, libmisc/shell/main_stackuse.c, + libmisc/shell/main_tty.c, libmisc/shell/main_umask.c, + libmisc/shell/main_unmount.c, libmisc/shell/main_whoami.c, + libmisc/shell/shell_cmdset.c, libmisc/shell/shellconfig.h: Change + rtems_Shell_ to rtems_shell_. + +2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com> + * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Add malloc command with info and dump as replacement for older command. Fix what looked like a typo for mount sub-commands. diff --git a/cpukit/libmisc/shell/main_alias.c b/cpukit/libmisc/shell/main_alias.c index 292daf89c5..cb07475a71 100644 --- a/cpukit/libmisc/shell/main_alias.c +++ b/cpukit/libmisc/shell/main_alias.c @@ -35,7 +35,7 @@ int rtems_shell_rtems_main_alias(int argc, char **argv) return 0; } -rtems_shell_cmd_t rtems_Shell_ALIAS_Command = { +rtems_shell_cmd_t rtems_shell_ALIAS_Command = { "alias", /* name */ "alias old new", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_blksync.c b/cpukit/libmisc/shell/main_blksync.c index eade795fad..c59760c2b6 100644 --- a/cpukit/libmisc/shell/main_blksync.c +++ b/cpukit/libmisc/shell/main_blksync.c @@ -70,7 +70,7 @@ int rtems_shell_main_blksync(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_BLKSYNC_Command = { +rtems_shell_cmd_t rtems_shell_BLKSYNC_Command = { "blksync", /* name */ "blksync driver # sync the block driver", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_cat.c b/cpukit/libmisc/shell/main_cat.c index 3913986744..9fe322d408 100644 --- a/cpukit/libmisc/shell/main_cat.c +++ b/cpukit/libmisc/shell/main_cat.c @@ -45,7 +45,7 @@ int rtems_shell_main_cat(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_CAT_Command = { +rtems_shell_cmd_t rtems_shell_CAT_Command = { "cat", /* name */ "cat n1 [n2 [n3...]] # show the ascii contents", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_cd.c b/cpukit/libmisc/shell/main_cd.c index 561d6258ea..e3ed35fa63 100644 --- a/cpukit/libmisc/shell/main_cd.c +++ b/cpukit/libmisc/shell/main_cd.c @@ -20,7 +20,7 @@ #include <rtems/shell.h> #include "internal.h" -rtems_shell_alias_t rtems_Shell_CD_Alias = { +rtems_shell_alias_t rtems_shell_CD_Alias = { "chdir", /* command */ "cd" /* alias */ }; diff --git a/cpukit/libmisc/shell/main_chdir.c b/cpukit/libmisc/shell/main_chdir.c index 0cddb9a415..a1299ed553 100644 --- a/cpukit/libmisc/shell/main_chdir.c +++ b/cpukit/libmisc/shell/main_chdir.c @@ -40,7 +40,7 @@ int rtems_shell_main_chdir (int argc, char *argv[]) { return 0; } -rtems_shell_cmd_t rtems_Shell_CHDIR_Command = { +rtems_shell_cmd_t rtems_shell_CHDIR_Command = { "chdir", /* name */ "chdir [dir] # change the current directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index 4785b49a6e..044e48389a 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_chmod.c @@ -42,7 +42,7 @@ int rtems_shell_main_chmod(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_CHMOD_Command = { +rtems_shell_cmd_t rtems_shell_CHMOD_Command = { "chmod", /* name */ "chmod 0777 n1 n2... # change filemode", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_chroot.c b/cpukit/libmisc/shell/main_chroot.c index a4febbedbe..e3740393b5 100644 --- a/cpukit/libmisc/shell/main_chroot.c +++ b/cpukit/libmisc/shell/main_chroot.c @@ -39,7 +39,7 @@ int rtems_shell_main_chroot(int argc,char * argv[]) { return 0; } -rtems_shell_cmd_t rtems_Shell_CHROOT_Command = { +rtems_shell_cmd_t rtems_shell_CHROOT_Command = { "chroot", /* name */ "chroot [dir] # change the root directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_cpuuse.c b/cpukit/libmisc/shell/main_cpuuse.c index 69dc5a2b5f..2ca92812c7 100644 --- a/cpukit/libmisc/shell/main_cpuuse.c +++ b/cpukit/libmisc/shell/main_cpuuse.c @@ -32,7 +32,7 @@ int rtems_shell_main_cpuuse(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_CPUUSE_Command = { +rtems_shell_cmd_t rtems_shell_CPUUSE_Command = { "cpuuse", /* name */ "[-r] print or reset per thread cpu usage", /* usage */ "rtems", /* topic */ diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c index 7d2fc34317..b3180eecd8 100644 --- a/cpukit/libmisc/shell/main_date.c +++ b/cpukit/libmisc/shell/main_date.c @@ -34,7 +34,7 @@ int rtems_shell_main_date(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_DATE_Command = { +rtems_shell_cmd_t rtems_shell_DATE_Command = { "date", /* name */ "date", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_dir.c b/cpukit/libmisc/shell/main_dir.c index f987cea1b7..473ab13f80 100644 --- a/cpukit/libmisc/shell/main_dir.c +++ b/cpukit/libmisc/shell/main_dir.c @@ -20,7 +20,7 @@ #include <rtems/shell.h> #include "internal.h" -rtems_shell_alias_t rtems_Shell_DIR_Alias = { +rtems_shell_alias_t rtems_shell_DIR_Alias = { "ls", /* command */ "dir" /* alias */ }; diff --git a/cpukit/libmisc/shell/main_exit.c b/cpukit/libmisc/shell/main_exit.c index 8860729f7a..4d996cde10 100644 --- a/cpukit/libmisc/shell/main_exit.c +++ b/cpukit/libmisc/shell/main_exit.c @@ -20,7 +20,7 @@ #include <rtems/shell.h> #include "internal.h" -rtems_shell_alias_t rtems_Shell_EXIT_Alias = { +rtems_shell_alias_t rtems_shell_EXIT_Alias = { "logoff", /* command */ "exit" /* alias */ }; diff --git a/cpukit/libmisc/shell/main_help.c b/cpukit/libmisc/shell/main_help.c index 299fbf6149..6aba4c5fc3 100644 --- a/cpukit/libmisc/shell/main_help.c +++ b/cpukit/libmisc/shell/main_help.c @@ -139,7 +139,7 @@ int rtems_shell_help( return 0; } -rtems_shell_cmd_t rtems_Shell_HELP_Command = { +rtems_shell_cmd_t rtems_shell_HELP_Command = { "help", /* name */ "help [topic] # list of usage of commands", /* usage */ "help", /* topic */ diff --git a/cpukit/libmisc/shell/main_id.c b/cpukit/libmisc/shell/main_id.c index 0c4828a838..994c706d47 100644 --- a/cpukit/libmisc/shell/main_id.c +++ b/cpukit/libmisc/shell/main_id.c @@ -54,7 +54,7 @@ int rtems_shell_main_id(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_ID_Command = { +rtems_shell_cmd_t rtems_shell_ID_Command = { "id", /* name */ "show uid, gid, euid, and egid", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_logoff.c b/cpukit/libmisc/shell/main_logoff.c index 5072fb7939..ea4681a160 100644 --- a/cpukit/libmisc/shell/main_logoff.c +++ b/cpukit/libmisc/shell/main_logoff.c @@ -32,7 +32,7 @@ int rtems_shell_main_logoff(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_LOGOFF_Command = { +rtems_shell_cmd_t rtems_shell_LOGOFF_Command = { "logoff", /* name */ "logoff from the system", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_ls.c b/cpukit/libmisc/shell/main_ls.c index 9ca3a6e3f3..51dfd160e7 100644 --- a/cpukit/libmisc/shell/main_ls.c +++ b/cpukit/libmisc/shell/main_ls.c @@ -98,7 +98,7 @@ int rtems_shell_main_ls(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_LS_Command = { +rtems_shell_cmd_t rtems_shell_LS_Command = { "ls", /* name */ "ls [dir] # list files in the directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_mallocinfo.c b/cpukit/libmisc/shell/main_mallocinfo.c index a7dd4f858f..689a022073 100644 --- a/cpukit/libmisc/shell/main_mallocinfo.c +++ b/cpukit/libmisc/shell/main_mallocinfo.c @@ -61,7 +61,7 @@ int rtems_shell_main_malloc_info( return -1; } -rtems_shell_cmd_t rtems_Shell_MALLOC_INFO_Command = { +rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command = { "malloc", /* name */ "[info|dump]", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_mdump.c b/cpukit/libmisc/shell/main_mdump.c index bc7cd816f8..408dcfe26d 100644 --- a/cpukit/libmisc/shell/main_mdump.c +++ b/cpukit/libmisc/shell/main_mdump.c @@ -59,7 +59,7 @@ int rtems_shell_main_mdump(int argc,char * argv[]) { return 0; } -rtems_shell_cmd_t rtems_Shell_MDUMP_Command = { +rtems_shell_cmd_t rtems_shell_MDUMP_Command = { "mdump", /* name */ "mdump [addr [size]]", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_medit.c b/cpukit/libmisc/shell/main_medit.c index da58fa630b..b3c59f91bd 100644 --- a/cpukit/libmisc/shell/main_medit.c +++ b/cpukit/libmisc/shell/main_medit.c @@ -46,7 +46,7 @@ int rtems_shell_main_medit(int argc,char * argv[]) { return rtems_shell_main_mdump(0,NULL); } -rtems_shell_cmd_t rtems_Shell_MEDIT_Command = { +rtems_shell_cmd_t rtems_shell_MEDIT_Command = { "medit", /* name */ "medit addr value [value ...]", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_mfill.c b/cpukit/libmisc/shell/main_mfill.c index 5d61450e28..6dd5aa6396 100644 --- a/cpukit/libmisc/shell/main_mfill.c +++ b/cpukit/libmisc/shell/main_mfill.c @@ -45,7 +45,7 @@ int rtems_shell_main_mfill(int argc,char * argv[]) { return rtems_shell_main_mdump(0,NULL); } -rtems_shell_cmd_t rtems_Shell_MFILL_Command = { +rtems_shell_cmd_t rtems_shell_MFILL_Command = { "mfill", /* name */ "mfill addr size value", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_mkdir.c b/cpukit/libmisc/shell/main_mkdir.c index 1d42ed103b..510ffe0e6b 100644 --- a/cpukit/libmisc/shell/main_mkdir.c +++ b/cpukit/libmisc/shell/main_mkdir.c @@ -41,7 +41,7 @@ int rtems_shell_main_mkdir(int argc, char *argv[]) { return errno; } -rtems_shell_cmd_t rtems_Shell_MKDIR_Command = { +rtems_shell_cmd_t rtems_shell_MKDIR_Command = { "mkdir", /* name */ "mkdir dir # make a directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_mmove.c b/cpukit/libmisc/shell/main_mmove.c index 2cc88b8a24..6c8e6574ea 100644 --- a/cpukit/libmisc/shell/main_mmove.c +++ b/cpukit/libmisc/shell/main_mmove.c @@ -45,7 +45,7 @@ int rtems_shell_main_mmove(int argc,char * argv[]) { return rtems_shell_main_mdump(0,NULL); } -rtems_shell_cmd_t rtems_Shell_MMOVE_Command = { +rtems_shell_cmd_t rtems_shell_MMOVE_Command = { "mmove", /* name */ "mmove dst src size", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_mount.c b/cpukit/libmisc/shell/main_mount.c index 05cfdffd6b..b09b8ea5eb 100644 --- a/cpukit/libmisc/shell/main_mount.c +++ b/cpukit/libmisc/shell/main_mount.c @@ -72,7 +72,7 @@ int rtems_shell_main_mount(int argc, char *argv[]) return 1; } - for (a = rtems_Shell_Mount_filesystems; *a; a++) + for (a = rtems_shell_Mount_filesystems; *a; a++) { if (strcmp (argv[arg], (*a)->name) == 0) { @@ -89,7 +89,7 @@ int rtems_shell_main_mount(int argc, char *argv[]) { rtems_shell_filesystems_t** a; fprintf (stdout, "File systems: "); - for (a = rtems_Shell_Mount_filesystems; *a; a++) + for (a = rtems_shell_Mount_filesystems; *a; a++) if (*a) fprintf (stdout, "%s ", (*a)->name); fprintf (stdout, "\n"); @@ -145,7 +145,7 @@ int rtems_shell_main_mount(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_MOUNT_Command = { +rtems_shell_cmd_t rtems_shell_MOUNT_Command = { "mount", /* name */ "mount [-t fstype] [-r] [-L] device path # mount disk", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_mount_ftp.c b/cpukit/libmisc/shell/main_mount_ftp.c index 079f6e9996..a30e9bd18b 100644 --- a/cpukit/libmisc/shell/main_mount_ftp.c +++ b/cpukit/libmisc/shell/main_mount_ftp.c @@ -29,7 +29,7 @@ #include <rtems/ftpfs.h> -rtems_shell_filesystems_t rtems_Shell_Mount_FTP = { +rtems_shell_filesystems_t rtems_shell_Mount_FTP = { name: "ftp", driver_needed: 1, fs_ops: &rtems_ftp_ops, diff --git a/cpukit/libmisc/shell/main_mount_msdos.c b/cpukit/libmisc/shell/main_mount_msdos.c index 973a352722..67c87d984a 100644 --- a/cpukit/libmisc/shell/main_mount_msdos.c +++ b/cpukit/libmisc/shell/main_mount_msdos.c @@ -27,7 +27,7 @@ #include <rtems/fsmount.h> #include "internal.h" -rtems_shell_filesystems_t rtems_Shell_Mount_MSDOS = { +rtems_shell_filesystems_t rtems_shell_Mount_MSDOS = { name: "msdos", driver_needed: 1, fs_ops: &msdos_ops, diff --git a/cpukit/libmisc/shell/main_mount_nfs.c b/cpukit/libmisc/shell/main_mount_nfs.c index c07191e0d9..39b2218864 100644 --- a/cpukit/libmisc/shell/main_mount_nfs.c +++ b/cpukit/libmisc/shell/main_mount_nfs.c @@ -55,7 +55,7 @@ rtems_shell_nfs_mounter (const char* device, return ret; } -rtems_shell_filesystems_t rtems_Shell_Mount_NFS = { +rtems_shell_filesystems_t rtems_shell_Mount_NFS = { name: "ftp", driver_needed: 1, fs_ops: NULL, diff --git a/cpukit/libmisc/shell/main_mount_tftp.c b/cpukit/libmisc/shell/main_mount_tftp.c index 37454a2021..1efeb7b229 100644 --- a/cpukit/libmisc/shell/main_mount_tftp.c +++ b/cpukit/libmisc/shell/main_mount_tftp.c @@ -29,7 +29,7 @@ #include <rtems/ftpfs.h> #include <rtems/tftp.h> -rtems_shell_filesystems_t rtems_Shell_Mount_TFTP = { +rtems_shell_filesystems_t rtems_shell_Mount_TFTP = { name: "tftp", driver_needed: 0, fs_ops: &rtems_tftp_ops, diff --git a/cpukit/libmisc/shell/main_msdosfmt.c b/cpukit/libmisc/shell/main_msdosfmt.c index 9f7f83a7df..24d978e07a 100644 --- a/cpukit/libmisc/shell/main_msdosfmt.c +++ b/cpukit/libmisc/shell/main_msdosfmt.c @@ -133,7 +133,7 @@ int rtems_shell_main_msdos_format(int argc, char *argv[]) #define OPTIONS "[-v label] [-r size] [-t any/12/16/32]" -rtems_shell_cmd_t rtems_Shell_MSDOSFMT_Command = { +rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command = { "msdosfmt", /* name */ "msdosfmt " OPTIONS " path # format disk", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_mwdump.c b/cpukit/libmisc/shell/main_mwdump.c index 1faa5b9e96..9cdc9cff76 100644 --- a/cpukit/libmisc/shell/main_mwdump.c +++ b/cpukit/libmisc/shell/main_mwdump.c @@ -55,7 +55,7 @@ int rtems_shell_main_mwdump(int argc,char * argv[]) { return 0; } -rtems_shell_cmd_t rtems_Shell_WDUMP_Command = { +rtems_shell_cmd_t rtems_shell_WDUMP_Command = { "wdump", /* name */ "wdump [addr [size]]", /* usage */ "mem", /* topic */ diff --git a/cpukit/libmisc/shell/main_pwd.c b/cpukit/libmisc/shell/main_pwd.c index c2caa4d4ad..6b9a743b2f 100644 --- a/cpukit/libmisc/shell/main_pwd.c +++ b/cpukit/libmisc/shell/main_pwd.c @@ -31,7 +31,7 @@ int rtems_shell_main_pwd (int argc, char *argv[]) { return 0; } -rtems_shell_cmd_t rtems_Shell_PWD_Command = { +rtems_shell_cmd_t rtems_shell_PWD_Command = { "pwd", /* name */ "pwd # print work directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_rm.c b/cpukit/libmisc/shell/main_rm.c index 682917d0aa..19b3d0693c 100644 --- a/cpukit/libmisc/shell/main_rm.c +++ b/cpukit/libmisc/shell/main_rm.c @@ -40,7 +40,7 @@ int rtems_shell_main_rm(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_RM_Command = { +rtems_shell_cmd_t rtems_shell_RM_Command = { "rm", /* name */ "rm n1 [n2 [n3...]] # remove files", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_rmdir.c b/cpukit/libmisc/shell/main_rmdir.c index d2ffe25d8f..b7069df4cc 100644 --- a/cpukit/libmisc/shell/main_rmdir.c +++ b/cpukit/libmisc/shell/main_rmdir.c @@ -39,7 +39,7 @@ int rtems_shell_main_rmdir (int argc, char *argv[]) return errno; } -rtems_shell_cmd_t rtems_Shell_RMDIR_Command = { +rtems_shell_cmd_t rtems_shell_RMDIR_Command = { "rmdir", /* name */ "rmdir dir # remove directory", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_stackuse.c b/cpukit/libmisc/shell/main_stackuse.c index 4b1aa14419..43d8fa74d7 100644 --- a/cpukit/libmisc/shell/main_stackuse.c +++ b/cpukit/libmisc/shell/main_stackuse.c @@ -31,7 +31,7 @@ int rtems_shell_main_stackuse(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_STACKUSE_Command = { +rtems_shell_cmd_t rtems_shell_STACKUSE_Command = { "stackuse", /* name */ "print per thread stack usage", /* usage */ "rtems", /* topic */ diff --git a/cpukit/libmisc/shell/main_tty.c b/cpukit/libmisc/shell/main_tty.c index 3836c00f31..37e2509f01 100644 --- a/cpukit/libmisc/shell/main_tty.c +++ b/cpukit/libmisc/shell/main_tty.c @@ -32,7 +32,7 @@ int rtems_shell_main_tty(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_TTY_Command = { +rtems_shell_cmd_t rtems_shell_TTY_Command = { "tty", /* name */ "show ttyname", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_umask.c b/cpukit/libmisc/shell/main_umask.c index 9bda1187bd..37c23605a3 100644 --- a/cpukit/libmisc/shell/main_umask.c +++ b/cpukit/libmisc/shell/main_umask.c @@ -42,7 +42,7 @@ int rtems_shell_main_umask(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_UMASK_Command = { +rtems_shell_cmd_t rtems_shell_UMASK_Command = { "umask", /* name */ "umask [new_umask]", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/main_unmount.c b/cpukit/libmisc/shell/main_unmount.c index ab06adb421..f191610275 100644 --- a/cpukit/libmisc/shell/main_unmount.c +++ b/cpukit/libmisc/shell/main_unmount.c @@ -65,7 +65,7 @@ int rtems_shell_main_unmount(int argc, char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_UNMOUNT_Command = { +rtems_shell_cmd_t rtems_shell_UNMOUNT_Command = { "unmount", /* name */ "unmount path # unmount disk", /* usage */ "files", /* topic */ diff --git a/cpukit/libmisc/shell/main_whoami.c b/cpukit/libmisc/shell/main_whoami.c index ec1c8e8cfa..289cd15cc8 100644 --- a/cpukit/libmisc/shell/main_whoami.c +++ b/cpukit/libmisc/shell/main_whoami.c @@ -36,7 +36,7 @@ int rtems_shell_main_whoami(int argc,char *argv[]) return 0; } -rtems_shell_cmd_t rtems_Shell_WHOAMI_Command = { +rtems_shell_cmd_t rtems_shell_WHOAMI_Command = { "whoami", /* name */ "show current user", /* usage */ "misc", /* topic */ diff --git a/cpukit/libmisc/shell/shell_cmdset.c b/cpukit/libmisc/shell/shell_cmdset.c index a549d257d1..124296de0c 100644 --- a/cpukit/libmisc/shell/shell_cmdset.c +++ b/cpukit/libmisc/shell/shell_cmdset.c @@ -174,11 +174,11 @@ void rtems_shell_initialize_command_set(void) rtems_shell_cmd_t **c; rtems_shell_alias_t **a; - for ( c = rtems_Shell_Initial_commands ; *c ; c++ ) { + for ( c = rtems_shell_Initial_commands ; *c ; c++ ) { rtems_shell_add_cmd_struct( *c ); } - for ( a = rtems_Shell_Initial_aliases ; *a ; a++ ) { + for ( a = rtems_shell_Initial_aliases ; *a ; a++ ) { rtems_shell_alias_cmd( (*a)->name, (*a)->alias ); } diff --git a/cpukit/libmisc/shell/shellconfig.h b/cpukit/libmisc/shell/shellconfig.h index 5c113be7f2..0309b1d573 100644 --- a/cpukit/libmisc/shell/shellconfig.h +++ b/cpukit/libmisc/shell/shellconfig.h @@ -19,60 +19,60 @@ /* * Externs for all command definition structures */ -extern rtems_shell_cmd_t rtems_Shell_HELP_Command; -extern rtems_shell_cmd_t rtems_Shell_ALIAS_Command; -extern rtems_shell_cmd_t rtems_Shell_LOGOFF_Command; +extern rtems_shell_cmd_t rtems_shell_HELP_Command; +extern rtems_shell_cmd_t rtems_shell_ALIAS_Command; +extern rtems_shell_cmd_t rtems_shell_LOGOFF_Command; -extern rtems_shell_cmd_t rtems_Shell_MDUMP_Command; -extern rtems_shell_cmd_t rtems_Shell_WDUMP_Command; -extern rtems_shell_cmd_t rtems_Shell_MEDIT_Command; -extern rtems_shell_cmd_t rtems_Shell_MFILL_Command; -extern rtems_shell_cmd_t rtems_Shell_MMOVE_Command; +extern rtems_shell_cmd_t rtems_shell_MDUMP_Command; +extern rtems_shell_cmd_t rtems_shell_WDUMP_Command; +extern rtems_shell_cmd_t rtems_shell_MEDIT_Command; +extern rtems_shell_cmd_t rtems_shell_MFILL_Command; +extern rtems_shell_cmd_t rtems_shell_MMOVE_Command; -extern rtems_shell_cmd_t rtems_Shell_DATE_Command; -extern rtems_shell_cmd_t rtems_Shell_ID_Command; -extern rtems_shell_cmd_t rtems_Shell_TTY_Command; -extern rtems_shell_cmd_t rtems_Shell_WHOAMI_Command; +extern rtems_shell_cmd_t rtems_shell_DATE_Command; +extern rtems_shell_cmd_t rtems_shell_ID_Command; +extern rtems_shell_cmd_t rtems_shell_TTY_Command; +extern rtems_shell_cmd_t rtems_shell_WHOAMI_Command; -extern rtems_shell_cmd_t rtems_Shell_PWD_Command; -extern rtems_shell_cmd_t rtems_Shell_LS_Command; -extern rtems_shell_cmd_t rtems_Shell_CHDIR_Command; -extern rtems_shell_cmd_t rtems_Shell_MKDIR_Command; -extern rtems_shell_cmd_t rtems_Shell_RMDIR_Command; -extern rtems_shell_cmd_t rtems_Shell_CHROOT_Command; -extern rtems_shell_cmd_t rtems_Shell_CHMOD_Command; -extern rtems_shell_cmd_t rtems_Shell_CAT_Command; -extern rtems_shell_cmd_t rtems_Shell_MSDOSFMT_Command; -extern rtems_shell_cmd_t rtems_Shell_RM_Command; -extern rtems_shell_cmd_t rtems_Shell_UMASK_Command; -extern rtems_shell_cmd_t rtems_Shell_MOUNT_Command; -extern rtems_shell_cmd_t rtems_Shell_UNMOUNT_Command; -extern rtems_shell_cmd_t rtems_Shell_BLKSYNC_Command; +extern rtems_shell_cmd_t rtems_shell_PWD_Command; +extern rtems_shell_cmd_t rtems_shell_LS_Command; +extern rtems_shell_cmd_t rtems_shell_CHDIR_Command; +extern rtems_shell_cmd_t rtems_shell_MKDIR_Command; +extern rtems_shell_cmd_t rtems_shell_RMDIR_Command; +extern rtems_shell_cmd_t rtems_shell_CHROOT_Command; +extern rtems_shell_cmd_t rtems_shell_CHMOD_Command; +extern rtems_shell_cmd_t rtems_shell_CAT_Command; +extern rtems_shell_cmd_t rtems_shell_MSDOSFMT_Command; +extern rtems_shell_cmd_t rtems_shell_RM_Command; +extern rtems_shell_cmd_t rtems_shell_UMASK_Command; +extern rtems_shell_cmd_t rtems_shell_MOUNT_Command; +extern rtems_shell_cmd_t rtems_shell_UNMOUNT_Command; +extern rtems_shell_cmd_t rtems_shell_BLKSYNC_Command; -extern rtems_shell_cmd_t rtems_Shell_CPUUSE_Command; -extern rtems_shell_cmd_t rtems_Shell_STACKUSE_Command; -extern rtems_shell_cmd_t rtems_Shell_MALLOC_INFO_Command; +extern rtems_shell_cmd_t rtems_shell_CPUUSE_Command; +extern rtems_shell_cmd_t rtems_shell_STACKUSE_Command; +extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command; -extern rtems_shell_cmd_t *rtems_Shell_Initial_commands[]; +extern rtems_shell_cmd_t *rtems_shell_Initial_commands[]; /* * Extern for alias commands */ -extern rtems_shell_alias_t rtems_Shell_DIR_Alias; -extern rtems_shell_alias_t rtems_Shell_CD_Alias; -extern rtems_shell_alias_t rtems_Shell_EXIT_Alias; +extern rtems_shell_alias_t rtems_shell_DIR_Alias; +extern rtems_shell_alias_t rtems_shell_CD_Alias; +extern rtems_shell_alias_t rtems_shell_EXIT_Alias; -extern rtems_shell_alias_t *rtems_Shell_Initial_aliases[]; +extern rtems_shell_alias_t *rtems_shell_Initial_aliases[]; /* * Extern for alias commands */ -extern rtems_shell_filesystems_t rtems_Shell_Mount_MSDOS; -extern rtems_shell_filesystems_t rtems_Shell_Mount_TFTP; -extern rtems_shell_filesystems_t rtems_Shell_Mount_FTP; -extern rtems_shell_filesystems_t rtems_Shell_Mount_NFS; +extern rtems_shell_filesystems_t rtems_shell_Mount_MSDOS; +extern rtems_shell_filesystems_t rtems_shell_Mount_TFTP; +extern rtems_shell_filesystems_t rtems_shell_Mount_FTP; +extern rtems_shell_filesystems_t rtems_shell_Mount_NFS; -extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; +extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[]; /* * If we are configured to alias a command, then make sure the underlying @@ -97,21 +97,21 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #endif #if defined(CONFIGURE_SHELL_COMMANDS_INIT) - rtems_shell_alias_t *rtems_Shell_Initial_aliases[] = { + rtems_shell_alias_t *rtems_shell_Initial_aliases[] = { #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_DIR)) || \ defined(CONFIGURE_SHELL_COMMAND_DIR) - &rtems_Shell_DIR_Alias, + &rtems_shell_DIR_Alias, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CD)) || \ defined(CONFIGURE_SHELL_COMMAND_CD) - &rtems_Shell_CD_Alias, + &rtems_shell_CD_Alias, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_EXIT)) || \ defined(CONFIGURE_SHELL_COMMAND_EXIT) - &rtems_Shell_EXIT_Alias, + &rtems_shell_EXIT_Alias, #endif /* @@ -123,12 +123,12 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; NULL }; - rtems_shell_cmd_t *rtems_Shell_Initial_commands[] = { + rtems_shell_cmd_t *rtems_shell_Initial_commands[] = { /* * General comamnds that should be present */ - &rtems_Shell_HELP_Command, - &rtems_Shell_ALIAS_Command, + &rtems_shell_HELP_Command, + &rtems_shell_ALIAS_Command, /* * Common commands that can be optional @@ -136,27 +136,27 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_DATE)) || \ defined(CONFIGURE_SHELL_COMMAND_DATE) - &rtems_Shell_DATE_Command, + &rtems_shell_DATE_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_ID)) || \ defined(CONFIGURE_SHELL_COMMAND_ID) - &rtems_Shell_ID_Command, + &rtems_shell_ID_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_TTY)) || \ defined(CONFIGURE_SHELL_COMMAND_TTY) - &rtems_Shell_TTY_Command, + &rtems_shell_TTY_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_WHOAMI)) || \ defined(CONFIGURE_SHELL_COMMAND_WHOAMI) - &rtems_Shell_WHOAMI_Command, + &rtems_shell_WHOAMI_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_LOGOFF)) || \ defined(CONFIGURE_SHELL_COMMAND_LOGOFF) - &rtems_Shell_LOGOFF_Command, + &rtems_shell_LOGOFF_Command, #endif /* @@ -165,27 +165,27 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MDUMP)) || \ defined(CONFIGURE_SHELL_COMMAND_MDUMP) - &rtems_Shell_MDUMP_Command, + &rtems_shell_MDUMP_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_WDUMP)) || \ defined(CONFIGURE_SHELL_COMMAND_WDUMP) - &rtems_Shell_WDUMP_Command, + &rtems_shell_WDUMP_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MEDIT)) || \ defined(CONFIGURE_SHELL_COMMAND_MEDIT) - &rtems_Shell_MEDIT_Command, + &rtems_shell_MEDIT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MFILL)) || \ defined(CONFIGURE_SHELL_COMMAND_MFILL) - &rtems_Shell_MFILL_Command, + &rtems_shell_MFILL_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MMOVE)) || \ defined(CONFIGURE_SHELL_COMMAND_MMOVE) - &rtems_Shell_MMOVE_Command, + &rtems_shell_MMOVE_Command, #endif /* @@ -194,72 +194,72 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_PWD)) || \ defined(CONFIGURE_SHELL_COMMAND_PWD) - &rtems_Shell_PWD_Command, + &rtems_shell_PWD_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_LS)) || \ defined(CONFIGURE_SHELL_COMMAND_LS) - &rtems_Shell_LS_Command, + &rtems_shell_LS_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CHDIR)) || \ defined(CONFIGURE_SHELL_COMMAND_CHDIR) - &rtems_Shell_CHDIR_Command, + &rtems_shell_CHDIR_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MKDIR)) || \ defined(CONFIGURE_SHELL_COMMAND_MKDIR) - &rtems_Shell_MKDIR_Command, + &rtems_shell_MKDIR_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_RMDIR)) || \ defined(CONFIGURE_SHELL_COMMAND_RMDIR) - &rtems_Shell_RMDIR_Command, + &rtems_shell_RMDIR_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CHROOT)) || \ defined(CONFIGURE_SHELL_COMMAND_CHROOT) - &rtems_Shell_CHROOT_Command, + &rtems_shell_CHROOT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CHMOD)) || \ defined(CONFIGURE_SHELL_COMMAND_CHMOD) - &rtems_Shell_CHMOD_Command, + &rtems_shell_CHMOD_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CAT)) || \ defined(CONFIGURE_SHELL_COMMAND_CAT) - &rtems_Shell_CAT_Command, + &rtems_shell_CAT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MSDOSFMT)) || \ defined(CONFIGURE_SHELL_COMMAND_MSDOSFMT) - &rtems_Shell_MSDOSFMT_Command, + &rtems_shell_MSDOSFMT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_RM)) || \ defined(CONFIGURE_SHELL_COMMAND_RM) - &rtems_Shell_RM_Command, + &rtems_shell_RM_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_UMASK)) || \ defined(CONFIGURE_SHELL_COMMAND_UMASK) - &rtems_Shell_UMASK_Command, + &rtems_shell_UMASK_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_MOUNT)) || \ defined(CONFIGURE_SHELL_COMMAND_MOUNT) - &rtems_Shell_MOUNT_Command, + &rtems_shell_MOUNT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_UNMOUNT)) || \ defined(CONFIGURE_SHELL_COMMAND_UNMOUNT) - &rtems_Shell_UNMOUNT_Command, + &rtems_shell_UNMOUNT_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_BLKSYNC)) || \ defined(CONFIGURE_SHELL_COMMAND_BLKSYNC) - &rtems_Shell_BLKSYNC_Command, + &rtems_shell_BLKSYNC_Command, #endif /* @@ -268,12 +268,12 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_CPUUSE)) || \ defined(CONFIGURE_SHELL_COMMAND_CPUUSE) - &rtems_Shell_CPUUSE_Command, + &rtems_shell_CPUUSE_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_NO_COMMAND_STACKUSE)) || \ defined(CONFIGURE_SHELL_COMMAND_STACKUSE) - &rtems_Shell_STACKUSE_Command, + &rtems_shell_STACKUSE_Command, #endif /* @@ -282,7 +282,7 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)) || \ defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO) - &rtems_Shell_MALLOC_INFO_Command, + &rtems_shell_MALLOC_INFO_Command, #endif /* @@ -300,19 +300,19 @@ extern rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[]; #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ !defined(CONFIGURE_SHELL_COMMAND_MOUNT)) || \ defined(CONFIGURE_SHELL_COMMAND_UNMOUNT) - rtems_shell_filesystems_t *rtems_Shell_Mount_filesystems[] = { + rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[] = { #if defined(CONFIGURE_SHELL_MOUNT_MSDOS) - &rtems_Shell_Mount_MSDOS, + &rtems_shell_Mount_MSDOS, #endif #if RTEMS_NETWORKING #if defined(CONFIGURE_SHELL_MOUNT_TFTP) - &rtems_Shell_Mount_TFTP, + &rtems_shell_Mount_TFTP, #endif #if defined(CONFIGURE_SHELL_MOUNT_FTP) - &rtems_Shell_Mount_FTP, + &rtems_shell_Mount_FTP, #endif #if defined(CONFIGURE_SHELL_MOUNT_NFS) - &rtems_Shell_Mount_NFS, + &rtems_shell_Mount_NFS, #endif #endif NULL |