[PATCH 1/3] libnetworking: Avoid spurious event delivery

2015-01-16 Thread Sebastian Huber
The so_pgid field contains the task identifier if this task waits for the SOSLEEP_EVENT event. Do not inherit this from the accept socket. --- cpukit/libnetworking/kern/uipc_socket2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cpukit/libnetworking/kern/uipc_socket2.c b/cpukit/libnetworki

[PATCH 2/3] libnetworking: Delete dead code

2015-01-16 Thread Sebastian Huber
The so_uid is always 0 in RTEMS. --- cpukit/libnetworking/kern/uipc_socket.c | 1 - cpukit/libnetworking/kern/uipc_socket2.c | 1 - cpukit/libnetworking/netinet/in_pcb.c| 7 --- cpukit/libnetworking/sys/socketvar.h | 1 - 4 files changed, 10 deletions(-) diff --git a/cpukit/libnetwor

[PATCH 3/3 v3] libnetworking: Fix close of active sockets

2015-01-16 Thread Sebastian Huber
Send a special event to notify tasks waiting for a socket state change in case this socket gets closed. This prevents a use after free. Close #785. v2: Cover also select(). v3: Fix lost events in case the receiver has a lower priority than the sender. --- cpukit/libnetworking/kern/uipc_socket.

[PATCH v4] libnetworking: Fix close of active sockets

2015-01-16 Thread Sebastian Huber
Send a special event to notify tasks waiting for a socket state change in case this socket gets closed. This prevents a use after free. Close #785. v2: Cover also select(). v3: Fix lost events in case the receiver has a lower priority than the sender. v4: Clear the event delivery request at th

RTEMS - sparc/leon3 BSP configure script error

2015-01-16 Thread Francois ARSENAULT
Hello, I am new to RTEMS and I want to build a RTEMS application for the sparc/leon3 BSP. For start, I just want to compile/build RTEMS as is without any modification. I have the following issue: when executed, the "configure" script generates this error: ../../configure --target=sparc-rtems --p

Re: RTEMS - sparc/leon3 BSP configure script error

2015-01-16 Thread Marcos Díaz
Hi, have you tried to run ./bootstrap in the source code folder? On Fri, Jan 16, 2015 at 9:57 AM, Francois ARSENAULT < francois.arsena...@mdacorporation.com> wrote: > Hello, > > I am new to RTEMS and I want to build a RTEMS application for the > sparc/leon3 BSP. > > For start, I just want to com

Problem when running all tests

2015-01-16 Thread Marcos Díaz
Hi, We were running all tests for the TMS570 and we could see that these two tests: /testsuites/libtests/dl01 /testsuites/libtests/dl02 failed to build. We saw in theirs Makefile.am that have this line: rm dl01.pre.ralf And there it fails. We could see that not all the bsp have as a postlink i

dl01 Makefile was Re: Problem when running all tests

2015-01-16 Thread Joel Sherrill
On 1/16/2015 2:46 PM, Marcos Díaz wrote: > Hi, We were running all tests for the TMS570 and we could see that > these two tests: > /testsuites/libtests/dl01 > > /testsuites/libtests/dl02 > > failed to build. > We saw in theirs Makefile.am that have this line: > |rm dl01.pre.ralf| > | > | > |And th

Re: dl01 Makefile was Re: Problem when running all tests

2015-01-16 Thread Chris Johns
On 17/01/2015 8:20 am, Joel Sherrill wrote: On 1/16/2015 2:46 PM, Marcos Díaz wrote: Hi, We were running all tests for the TMS570 and we could see that these two tests: /testsuites/libtests/dl01 /testsuites/libtests/dl02 failed to build. We saw in theirs Makefile.am that have this line: |rm d