From 06f8e558b7fa2724ada5474074a6a3d1b93338c9 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Fri, 27 Feb 2009 11:03:57 +0000 Subject: * libmisc/shell/shell.c, libmisc/shell/shell.h: Changed type for boolean values from 'int' to 'bool'. Added option 'login' to enable or disable a login prompt. Changed intialization of global shell environment to static initialization. Changed stack size type to 'size_t' conforming to classic API. * libmisc/shell/shellconfig.h: Fixed some typos. --- cpukit/libmisc/shell/shellconfig.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'cpukit/libmisc/shell/shellconfig.h') diff --git a/cpukit/libmisc/shell/shellconfig.h b/cpukit/libmisc/shell/shellconfig.h index f064617b06..1494d2a550 100644 --- a/cpukit/libmisc/shell/shellconfig.h +++ b/cpukit/libmisc/shell/shellconfig.h @@ -61,11 +61,9 @@ extern rtems_shell_cmd_t rtems_shell_PERIODUSE_Command; extern rtems_shell_cmd_t rtems_shell_WKSPACE_INFO_Command; extern rtems_shell_cmd_t rtems_shell_MALLOC_INFO_Command; #if RTEMS_NETWORKING - #if defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) - extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command; - extern rtems_shell_cmd_t rtems_shell_ROUTE_Command; - extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command; - #endif + extern rtems_shell_cmd_t rtems_shell_IFCONFIG_Command; + extern rtems_shell_cmd_t rtems_shell_ROUTE_Command; + extern rtems_shell_cmd_t rtems_shell_NETSTATS_Command; #endif extern rtems_shell_cmd_t *rtems_shell_Initial_commands[]; @@ -326,7 +324,7 @@ extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[]; &rtems_shell_PERIODUSE_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ - !defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO)) || \ + !defined(CONFIGURE_SHELL_NO_COMMAND_WKSPACE_INFO)) || \ defined(CONFIGURE_SHELL_COMMAND_WKSPACE_INFO) &rtems_shell_WKSPACE_INFO_Command, #endif @@ -336,7 +334,7 @@ extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[]; * Malloc family commands */ #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ - !defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO)) || \ + !defined(CONFIGURE_SHELL_NO_COMMAND_MALLOC_INFO)) || \ defined(CONFIGURE_SHELL_COMMAND_MALLOC_INFO) &rtems_shell_MALLOC_INFO_Command, #endif @@ -346,19 +344,19 @@ extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[]; */ #if RTEMS_NETWORKING #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \ - !defined(CONFIGURE_SHELL_COMMAND_IFCONFIG)) || \ + !defined(CONFIGURE_SHELL_NO_COMMAND_IFCONFIG)) || \ defined(CONFIGURE_SHELL_COMMAND_IFCONFIG) &rtems_shell_IFCONFIG_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \ - !defined(CONFIGURE_SHELL_COMMAND_ROUTE)) || \ + !defined(CONFIGURE_SHELL_NO_COMMAND_ROUTE)) || \ defined(CONFIGURE_SHELL_COMMAND_ROUTE) &rtems_shell_ROUTE_Command, #endif #if (defined(CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING) && \ - !defined(CONFIGURE_SHELL_COMMAND_NETSTATS)) || \ + !defined(CONFIGURE_SHELL_NO_COMMAND_NETSTATS)) || \ defined(CONFIGURE_SHELL_COMMAND_NETSTATS) &rtems_shell_NETSTATS_Command, #endif @@ -377,8 +375,8 @@ extern rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[]; * The mount command's support file system types. */ #if (defined(CONFIGURE_SHELL_COMMANDS_ALL) && \ - !defined(CONFIGURE_SHELL_COMMAND_MOUNT)) || \ - defined(CONFIGURE_SHELL_COMMAND_UNMOUNT) + !defined(CONFIGURE_SHELL_COMMAND_NO_MOUNT)) || \ + defined(CONFIGURE_SHELL_COMMAND_MOUNT) rtems_shell_filesystems_t *rtems_shell_Mount_filesystems[] = { #if defined(CONFIGURE_SHELL_MOUNT_MSDOS) &rtems_shell_Mount_MSDOS, -- cgit v1.2.3