mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-21 13:24:36 +02:00
74 lines
2.3 KiB
Diff
74 lines
2.3 KiB
Diff
|
commit 27f66fa6a8ea83283b05dcdfa4d70c9048adf448
|
||
|
Author: Sebastien Bourdeauducq <sebastien@milkymist.org>
|
||
|
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
|
||
|
|
||
|
diff --git a/cpukit/libmisc/shell/main_mv.c b/cpukit/libmisc/shell/main_mv.c
|
||
|
index 7e3db0f..5cfddc9 100644
|
||
|
--- a/cpukit/libmisc/shell/main_mv.c
|
||
|
+++ b/cpukit/libmisc/shell/main_mv.c
|
||
|
@@ -116,7 +116,7 @@ rtems_shell_mv_exit (rtems_shell_mv_globals* globals, int code)
|
||
|
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;
|
||
|
diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
|
||
|
index 14b609b..9c4b1d5 100644
|
||
|
--- a/cpukit/libmisc/shell/shell.c
|
||
|
+++ b/cpukit/libmisc/shell/shell.c
|
||
|
@@ -61,7 +61,7 @@ rtems_shell_env_t *rtems_current_shell_env = &rtems_global_shell_env;
|
||
|
/*
|
||
|
* 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
|
||
|
)
|
||
|
{
|
||
|
@@ -83,7 +83,7 @@ static rtems_shell_env_t *rtems_shell_init_env(
|
||
|
/*
|
||
|
* Completely free a shell_env_t and all associated memory
|
||
|
*/
|
||
|
-static void rtems_shell_env_free(
|
||
|
+void rtems_shell_env_free(
|
||
|
void *ptr
|
||
|
)
|
||
|
{
|
||
|
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
|
||
|
index f71cadd..a3abd3e 100644
|
||
|
--- a/cpukit/libmisc/shell/shell.h
|
||
|
+++ b/cpukit/libmisc/shell/shell.h
|
||
|
@@ -207,6 +207,13 @@ bool rtems_shell_main_loop(
|
||
|
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;
|
||
|
|
||
|
@@ -307,6 +314,13 @@ extern rtems_status_code rtems_shell_wait_for_input(
|
||
|
|
||
|
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
|
||
|
}
|