commit 27f66fa6a8ea83283b05dcdfa4d70c9048adf448 Author: Sebastien Bourdeauducq Date: Fri Feb 24 21:58:20 2012 +0100 Export rtems_shell_init_env, rtems_shell_env_free, rtems_shell_main_mv, rtems_shell_main_cp and rtems_shell_main_rm Index: rtems/cpukit/libmisc/shell/main_mv.c =================================================================== --- rtems.orig/cpukit/libmisc/shell/main_mv.c 2012-05-14 12:34:47.271490000 +0800 +++ rtems/cpukit/libmisc/shell/main_mv.c 2012-05-14 12:35:14.309964001 +0800 @@ -116,7 +116,7 @@ const char *user_from_uid(uid_t uid, int nouser); char *group_from_gid(gid_t gid, int nogroup); -static int +int rtems_shell_main_mv(int argc, char *argv[]) { rtems_shell_mv_globals mv_globals; Index: rtems/cpukit/libmisc/shell/shell.c =================================================================== --- rtems.orig/cpukit/libmisc/shell/shell.c 2012-05-14 12:34:47.287482000 +0800 +++ rtems/cpukit/libmisc/shell/shell.c 2012-05-14 12:35:14.313962001 +0800 @@ -59,7 +59,7 @@ /* * Initialize the shell user/process environment information */ -static rtems_shell_env_t *rtems_shell_init_env( +rtems_shell_env_t *rtems_shell_init_env( rtems_shell_env_t *shell_env_p ) { @@ -81,7 +81,7 @@ /* * Completely free a shell_env_t and all associated memory */ -static void rtems_shell_env_free( +void rtems_shell_env_free( void *ptr ) { Index: rtems/cpukit/libmisc/shell/shell.h =================================================================== --- rtems.orig/cpukit/libmisc/shell/shell.h 2012-05-14 12:34:47.259496001 +0800 +++ rtems/cpukit/libmisc/shell/shell.h 2012-05-14 12:35:14.317960001 +0800 @@ -205,6 +205,13 @@ rtems_shell_env_t *rtems_shell_env ); +rtems_shell_env_t *rtems_shell_init_env( + rtems_shell_env_t *shell_env_p +); +void rtems_shell_env_free( + void *ptr +); + extern rtems_shell_env_t rtems_global_shell_env; extern rtems_shell_env_t *rtems_current_shell_env; @@ -305,6 +312,13 @@ extern int rtems_shell_main_monitor(int argc, char **argv); +/* + * Provide these commands for application use, as their implementation + * is tedious. + */ +int rtems_shell_main_mv(int argc, char *argv[]); +int rtems_shell_main_cp(int argc, char *argv[]); +int rtems_shell_main_rm(int argc, char *argv[]); #ifdef __cplusplus }