forked from Imagelibrary/rtems
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:
@@ -1,5 +1,33 @@
|
|||||||
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
|
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".
|
* libmisc/shell/internal.h: #include "shell.h".
|
||||||
Add various missing decls.
|
Add various missing decls.
|
||||||
* libmisc/shell/cat_file.c: #include <rtems/shell.h>.
|
* libmisc/shell/cat_file.c: #include <rtems/shell.h>.
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
* with this you can call at all the rtems monitor commands.
|
* with this you can call at all the rtems monitor commands.
|
||||||
* Not all work fine but you can show the rtems status and more.
|
* 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;
|
const rtems_monitor_command_entry_t *command = NULL;
|
||||||
|
|
||||||
if (argc < 1) {
|
if (argc < 1) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.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) {
|
if (argc<3) {
|
||||||
fprintf(stderr,"too few arguments\n");
|
fprintf(stderr,"too few arguments\n");
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <rtems/blkdev.h>
|
#include <rtems/blkdev.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_blksync(
|
static int rtems_shell_main_blksync(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.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 n;
|
||||||
int sc;
|
int sc;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_chdir(
|
static int rtems_shell_main_chdir(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <rtems/stringto.h>
|
#include <rtems/stringto.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_chmod(
|
static int rtems_shell_main_chmod(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_chroot(
|
static int rtems_shell_main_chroot(
|
||||||
int argc,
|
int argc,
|
||||||
char * argv[]
|
char * argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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 copy(rtems_shell_cp_globals* cp_globals, char *[], enum op, int);
|
||||||
static int mastercmp(const FTSENT **, const FTSENT **);
|
static int mastercmp(const FTSENT **, const FTSENT **);
|
||||||
|
|
||||||
void
|
static void
|
||||||
rtems_shell_cp_exit (rtems_shell_cp_globals* cp_global, int code __attribute__((unused)))
|
rtems_shell_cp_exit (rtems_shell_cp_globals* cp_global, int code __attribute__((unused)))
|
||||||
{
|
{
|
||||||
longjmp (cp_global->exit_jmp, 1);
|
longjmp (cp_global->exit_jmp, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
rtems_shell_main_cp(int argc, char *argv[])
|
rtems_shell_main_cp(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
rtems_shell_cp_globals cp_globals;
|
rtems_shell_cp_globals cp_globals;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_cpuuse(
|
static int rtems_shell_main_cpuuse(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_date(
|
static int rtems_shell_main_date(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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[]);
|
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_main_dd(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
rtems_shell_dd_globals dd_globals;
|
rtems_shell_dd_globals dd_globals;
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
int rtems_shell_main_echo(
|
static int rtems_shell_main_echo(
|
||||||
int argc,
|
int argc,
|
||||||
char *argv[]
|
char *argv[]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.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;
|
char* string;
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <rtems/shell.h>
|
#include <rtems/shell.h>
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
int rtems_shell_main_halt(
|
static int rtems_shell_main_halt(
|
||||||
int argc __attribute__((unused)),
|
int argc __attribute__((unused)),
|
||||||
char *argv[] __attribute__((unused))
|
char *argv[] __attribute__((unused))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user