[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 th

[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 ne

[PATCH] libmisc: Add a stdio redirector helper.

2014-09-14 Thread Chris Johns
This module makes it easy to redirect and capture stdout, stderr or any other fd in your application. The captured data can be sent off board, for example using syslog, or buffered and displayed in a web page. --- cpukit/Makefile.am | 2 + cpukit/libmisc/Makefile.am

[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 faul

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 Johns

Re: ls broken in shell.

2014-09-14 Thread Chris Johns
On 15/09/2014 9:59 am, Joel Sherrill wrote: 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. Hmmm getting automake and friends to support a trace link ... I have some things on between now a

[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 shel