From 6cd4a5ca2e2211c4008d99fc272412c9b03c86ce Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Wed, 19 Mar 2014 17:17:39 +0100 Subject: cpukit/shell: Replace task variables with posix keys. Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. Update documentation for the shell. Adapt samples/fileio: - Add necessary objects. - Add login function and custom device name for better testing of the shell. --- cpukit/libmisc/shell/shell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libmisc/shell/shell.h') diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h index 079ef667af..af09ac3a38 100644 --- a/cpukit/libmisc/shell/shell.h +++ b/cpukit/libmisc/shell/shell.h @@ -205,8 +205,8 @@ bool rtems_shell_main_loop( rtems_shell_env_t *rtems_shell_env ); -extern rtems_shell_env_t rtems_global_shell_env; -extern rtems_shell_env_t *rtems_current_shell_env; +rtems_shell_env_t *rtems_shell_get_current_env(void); +#define rtems_current_shell_env rtems_shell_get_current_env() /* * The types of file systems we can mount. We have them broken out -- cgit v1.2.3