2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>

* libmisc/shell/cmds.c:
	Make rtems_shell_main_monitor static.
	* libmisc/shell/main_alias.c:
	Make rtems_shell_rtems_main_alias static.
	* libmisc/shell/main_blksync.c:
	Make rtems_shell_main_blksync static.
	* libmisc/shell/main_cat.c:
	Make rtems_shell_main_cat static.
	* libmisc/shell/main_chdir.c:
	Make rtems_shell_main_chdir static.
	* libmisc/shell/main_chmod.c:
	Make rtems_shell_main_chmod static.
	* libmisc/shell/main_chroot.c:
	Make rtems_shell_main_chroot static.
	* libmisc/shell/main_cp.c:
	Make rtems_shell_cp_exit, rtems_shell_main_cp static.
	* libmisc/shell/main_cpuuse.c:
	Make rtems_shell_main_cpuuse static.
	* libmisc/shell/main_date.c:
	Make rtems_shell_main_date static.
	* libmisc/shell/main_dd.c:
	Make rtems_shell_main_dd static.
	* libmisc/shell/main_echo.c:
	Make rtems_shell_main_echo static.
	* libmisc/shell/main_getenv.c:
	Make rtems_shell_main_getenv static.
	* libmisc/shell/main_halt.c:
	Make rtems_shell_main_halt static.
This commit is contained in:
Ralf Corsepius
2011-12-04 09:51:48 +00:00
parent 9cfd22236c
commit f1d9293ec8
15 changed files with 43 additions and 15 deletions

View File

@@ -1,5 +1,33 @@
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/cmds.c:
Make rtems_shell_main_monitor static.
* libmisc/shell/main_alias.c:
Make rtems_shell_rtems_main_alias static.
* libmisc/shell/main_blksync.c:
Make rtems_shell_main_blksync static.
* libmisc/shell/main_cat.c:
Make rtems_shell_main_cat static.
* libmisc/shell/main_chdir.c:
Make rtems_shell_main_chdir static.
* libmisc/shell/main_chmod.c:
Make rtems_shell_main_chmod static.
* libmisc/shell/main_chroot.c:
Make rtems_shell_main_chroot static.
* libmisc/shell/main_cp.c:
Make rtems_shell_cp_exit, rtems_shell_main_cp static.
* libmisc/shell/main_cpuuse.c:
Make rtems_shell_main_cpuuse static.
* libmisc/shell/main_date.c:
Make rtems_shell_main_date static.
* libmisc/shell/main_dd.c:
Make rtems_shell_main_dd static.
* libmisc/shell/main_echo.c:
Make rtems_shell_main_echo static.
* libmisc/shell/main_getenv.c:
Make rtems_shell_main_getenv static.
* libmisc/shell/main_halt.c:
Make rtems_shell_main_halt static.
* libmisc/shell/internal.h: #include "shell.h".
Add various missing decls.
* libmisc/shell/cat_file.c: #include <rtems/shell.h>.

View File

@@ -29,7 +29,7 @@
* with this you can call at all the rtems monitor commands.
* Not all work fine but you can show the rtems status and more.
*-----------------------------------------------------------*/
int rtems_shell_main_monitor(int argc, char **argv) {
static int rtems_shell_main_monitor(int argc, char **argv) {
const rtems_monitor_command_entry_t *command = NULL;
if (argc < 1) {

View File

@@ -22,7 +22,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_rtems_main_alias(int argc, char **argv)
static int rtems_shell_rtems_main_alias(int argc, char **argv)
{
if (argc<3) {
fprintf(stderr,"too few arguments\n");

View File

@@ -28,7 +28,7 @@
#include <rtems/blkdev.h>
#include "internal.h"
int rtems_shell_main_blksync(
static int rtems_shell_main_blksync(
int argc,
char *argv[]
)

View File

@@ -35,7 +35,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_cat(int argc, char *argv[])
static int rtems_shell_main_cat(int argc, char *argv[])
{
int n;
int sc;

View File

@@ -25,7 +25,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_chdir(
static int rtems_shell_main_chdir(
int argc,
char *argv[]
)

View File

@@ -28,7 +28,7 @@
#include <rtems/stringto.h>
#include "internal.h"
int rtems_shell_main_chmod(
static int rtems_shell_main_chmod(
int argc,
char *argv[]
)

View File

@@ -25,7 +25,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_chroot(
static int rtems_shell_main_chroot(
int argc,
char * argv[]
)

View File

@@ -102,13 +102,13 @@ static int main_cp(rtems_shell_cp_globals* cp_globals, int, char *[]);
static int copy(rtems_shell_cp_globals* cp_globals, char *[], enum op, int);
static int mastercmp(const FTSENT **, const FTSENT **);
void
static void
rtems_shell_cp_exit (rtems_shell_cp_globals* cp_global, int code __attribute__((unused)))
{
longjmp (cp_global->exit_jmp, 1);
}
int
static int
rtems_shell_main_cp(int argc, char *argv[])
{
rtems_shell_cp_globals cp_globals;

View File

@@ -22,7 +22,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_cpuuse(
static int rtems_shell_main_cpuuse(
int argc,
char *argv[]
)

View File

@@ -27,7 +27,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_date(
static int rtems_shell_main_date(
int argc,
char *argv[]
)

View File

@@ -111,7 +111,7 @@ rtems_shell_dd_exit (rtems_shell_dd_globals* globals, int code)
static int main_dd(rtems_shell_dd_globals* globals, int argc, char *argv[]);
int
static int
rtems_shell_main_dd(int argc, char *argv[])
{
rtems_shell_dd_globals dd_globals;

View File

@@ -70,7 +70,7 @@
int rtems_shell_main_echo(
static int rtems_shell_main_echo(
int argc,
char *argv[]
)

View File

@@ -16,7 +16,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_getenv(int argc, char *argv[])
static int rtems_shell_main_getenv(int argc, char *argv[])
{
char* string;

View File

@@ -21,7 +21,7 @@
#include <rtems/shell.h>
#include "internal.h"
int rtems_shell_main_halt(
static int rtems_shell_main_halt(
int argc __attribute__((unused)),
char *argv[] __attribute__((unused))
)