[PATCH] shell: Add a ping command.

2014-09-14 Thread Chris Johns
This patch adds a ping command to the RTEMS shell. It pings for a count of 5 or so and then stops because there is not ^C in the RTEMS shell. A flood ping also works with the -c option. As stated in the commit message some options work and some do not and I suspect the age of our TCP/IP stack is

[PATCH] shell: Add a ping command.

2014-09-14 Thread Chris Johns
The ping code is taken from a recent FreeBSD release. Some options have been tested, other not tested or do not work. This could be due to the age of our TCP/IP stack. This version of ping will not work if more than 64 file descriptors are open at once because the select FD size is 64 as set in

[PATCH] shell: Add an md5 hash command for files.

2014-09-14 Thread Chris Johns
This command lets you get an MD5 hash for a file in an RTEMS file system. --- cpukit/libmisc/Makefile.am | 6 +- cpukit/libmisc/shell/main_md5.c| 110 cpukit/libmisc/shell/shellconfig.h | 6 ++ doc/shell/file.t | 206

ls broken in shell.

2014-09-14 Thread Chris Johns
Hello, It looks like 'ls' is broken in the shell. On sparc/sis running fileio, selecting 's' for shell, logging in and then 'ls' exits the simulator. I saw this with mksh and assumed something was not working with mksh however this now looks like something in 'ls'. With mksh I traced the

Re: ls broken in shell.

2014-09-14 Thread Joel Sherrill
Time for your wrapper call generator. Wrap malloc and free. Cod easily be freeing something that was never allocated or a pointer that was incremented. Another guess is a pointer that was not initialized to NULL and ls thinks it should be freed. On September 14, 2014 6:55:26 PM CDT, Chris

[PATCH] doc: Sort the shell file commands into alphabetical order.

2014-09-14 Thread Chris Johns
--- doc/shell/file.t | 3039 -- 1 file changed, 1559 insertions(+), 1480 deletions(-) diff --git a/doc/shell/file.t b/doc/shell/file.t index 2db057d..bda3d3d 100644 --- a/doc/shell/file.t +++ b/doc/shell/file.t @@ -11,32 +11,33 @@ The RTEMS