Draft for moving network headers from RTEMS to newlib

2016-04-25 Thread Christian Mauderer
Hello, currently we try to remove the network specific POSIX headers from RTEMS. Instead, we add current headers from FreeBSD to newlib. This will simplify the build process of some libraries that depend on the network (like LibreSSL). Further it will be another step into the direction of

[PATCH 03/29] libnetworking: Fix ifr_tap.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/Makefile.am | 1 + cpukit/libnetworking/net/if.c | 5 ++-- cpukit/libnetworking/preinstall.am| 4 +++ cpukit/libnetworking/rtems/rtems_net_if.h | 49

[PATCH 16/29] libnetworking: Add TCP CC options.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_netinet_tcp.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/libnetworking/rtems/rtems_netinet_tcp.h b/cpukit/libnetworking/rtems/rtems_netinet_tcp.h index fe509af..b92a5ca

[PATCH 22/29] libnetworking: Match gethostbyname_r with prototype.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/libc/gethostnamadr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/libnetworking/libc/gethostnamadr.c b/cpukit/libnetworking/libc/gethostnamadr.c index a718820..cf0a12d

[PATCH 29/29] libnetworking: Include rtems_netdb.h for _map_v4v6... prototypes.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/libc/map_v4v6.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libnetworking/libc/map_v4v6.c b/cpukit/libnetworking/libc/map_v4v6.c index 0b13285..66287d4 100644 ---

[PATCH 25/29] libnetworking: Add *__h_errno() instead of h_errno.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/libc/gethostbydns.c | 1 - cpukit/libnetworking/libc/getnetbydns.c | 2 -- cpukit/libnetworking/libc/herror.c | 8 +++- cpukit/libnetworking/resolv.h| 9 - 4 files changed, 7

[PATCH 17/29] libnetworking: Add TCPOPT_TSTAMP_HDR.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_netinet_tcp.h | 5 + 1 file changed, 5 insertions(+) diff --git a/cpukit/libnetworking/rtems/rtems_netinet_tcp.h b/cpukit/libnetworking/rtems/rtems_netinet_tcp.h index b92a5ca..f4a1b2a

[PATCH 05/29] libnetworking: Add net/if_var.h to net/if_arp.h.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer The net/if_var.h has previously included in net/if.h. --- cpukit/libnetworking/net/if_arp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libnetworking/net/if_arp.h b/cpukit/libnetworking/net/if_arp.h index

[PATCH 20/29] libnetworking: Add _getXbyYname/addr and _set/endXYent functions.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/Makefile.am | 1 + cpukit/libnetworking/libc/gethostbydns.c | 1 + cpukit/libnetworking/libc/gethostbyht.c | 1 + cpukit/libnetworking/libc/gethostbynis.c | 1 +

[PATCH 11/29] libnetworking: Add deprecated IPCTL_RTxxx defines.'

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/netinet/in_rmx.c | 1 + cpukit/libnetworking/rtems/rtems_netinet_in.h | 5 + 2 files changed, 6 insertions(+) diff --git a/cpukit/libnetworking/netinet/in_rmx.c

[PATCH 19/29] libnetworking: Move in_cksum to rtems_bsdnet_inernal.h

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 3 +++ cpukit/libnetworking/rtems/rtems_netinet_in.h | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 12/29] libnetworking: Add inttypes.h include for PRIu32, ...

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- c/src/libchip/network/dwmac.c | 1 + c/src/libchip/network/i82586.c | 1 + cpukit/libnetworking/netinet/ip_fw.c| 1 + cpukit/libnetworking/netinet/ip_input.c | 1 + 4 files changed, 4 insertions(+) diff

[PATCH 21/29] libnetworking: Update gethostent_r API.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer Linux and FreeBSD use a common API now. Adapt the RTEMS one to provide the same one. --- cpukit/libnetworking/libc/gethostbyht.c | 52 --- cpukit/libnetworking/libc/gethostnamadr.c | 7 - 2 files

[PATCH 27/29] libnetworking: Add include of rtems_net_if.h for looutput prototype.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/netinet/ip_output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libnetworking/netinet/ip_output.c b/cpukit/libnetworking/netinet/ip_output.c index 304a349..003e7c3 100644 ---

[PATCH 04/29] libnetworking: Replace IFF_RUNNING and IFF_OACTIVE.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer These two defines are replaced by IFF_DRV_RUNNING and IFF_DRV_OACTIVE. --- c/src/lib/libbsp/arm/atsam/network/if_atsam.c | 14 - c/src/lib/libbsp/arm/csb336/network/network.c | 14 -

[PATCH 10/29] libnetworking: Fix unknown struct ifnet and ifaddr.'

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/net/rtsock.c | 1 + cpukit/libnetworking/netinet/ip_fw.c | 1 + cpukit/libnetworking/netinet/tcp_input.c | 1 + cpukit/libnetworking/rtems/rtems_showifstat.c | 1 +

[PATCH 28/29] libnetworking: Add missing include to if_var.h.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libnetworking/rtems/rtems_syscall.c b/cpukit/libnetworking/rtems/rtems_syscall.c index 6bef21a..ac976d4 100644 ---

[PATCH 06/29] libnetworking: Add prototypes for ifafree, looutput.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_net_if.h | 8 1 file changed, 8 insertions(+) diff --git a/cpukit/libnetworking/rtems/rtems_net_if.h b/cpukit/libnetworking/rtems/rtems_net_if.h index 96b108e..49e9622 100644 ---

[PATCH 24/29] libnetworking: Add include of rtems_net_if.h for ifafree prototype.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/net/route.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/libnetworking/net/route.c b/cpukit/libnetworking/net/route.c index b04649c..83147b6 100644 --- a/cpukit/libnetworking/net/route.c +++

[PATCH 13/29] libnetworking: Add ip_fw_chk_t and ip_fw_ctl_t.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer Add the types and pointers for firewall. --- cpukit/libnetworking/netinet/ip_fw.c | 1 + cpukit/libnetworking/netinet/ip_input.c | 1 + cpukit/libnetworking/netinet/ip_output.c | 1 +

[PATCH 18/29] libnetworking: Make struct ip known to rtems_glue.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/rtems/rtems_glue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index f079a67..e315679 100644 ---

[PATCH 01/29] libnetwork: Remove network headers.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer They have been moved to newlib. --- cpukit/Makefile.am | 2 - cpukit/include/sys/_iovec.h| 58 - cpukit/include/sys/uio.h | 124 -- cpukit/libnetworking/Makefile.am | 11 +-

[PATCH 09/29] libnetworking: Fix unknown type name 'tcp_cc'

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/Makefile.am | 1 + cpukit/libnetworking/netinet/in_proto.c| 1 + cpukit/libnetworking/netinet/in_rmx.c | 1 + cpukit/libnetworking/netinet/ip_fw.c | 1 +

[PATCH 07/29] libnetworking: Add prototype for in_cksum.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/Makefile.am | 1 + cpukit/libnetworking/netinet/igmp.c | 1 + cpukit/libnetworking/netinet/in.c | 1 + cpukit/libnetworking/netinet/in_cksum_sparc.h | 1 +

[PATCH 08/29] libnetworking: Add IPPORT_USERRESERVED.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/netinet/in_pcb.c | 1 + cpukit/libnetworking/rtems/rtems_netinet_in.h | 6 ++ 2 files changed, 7 insertions(+) diff --git a/cpukit/libnetworking/netinet/in_pcb.c

[PATCH 26/29] libnetworking: satosin is now provided by in.h.

2016-04-25 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libnetworking/netinet/in_rmx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/cpukit/libnetworking/netinet/in_rmx.c b/cpukit/libnetworking/netinet/in_rmx.c index 6effa7c..c386044 100644 ---

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-25 Thread Joel Sherrill
On Mon, Apr 25, 2016 at 4:22 AM, Christian Mauderer < christian.maude...@embedded-brains.de> wrote: > Essentially I agree that it would be nice to build civetweb as an > external library especially with the different network stacks in mind. > But there are some points that keep me from doing it:

Re: GSoC 2016: Low Level Peripherals & SD Card Support for Raspberry Pi

2016-04-25 Thread Martin Galvan
CCing Andre. On Mon, Apr 25, 2016 at 10:23 AM, Martin Galvan wrote: > Hi everyone! Just wanted to check on the status for this project. I > saw it was accepted for the GSoC 2016 (congratulations Mudit!), and > would like to know what our workflow will be

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-25 Thread Joel Sherrill
Agreed 100%! NTP has an RSB recipe and there are others for various libraries which should be good examples. Shouldn't take long to do the recipe. Just ask questions rather than getting stuck. On Apr 25, 2016 7:03 PM, "Gedare Bloom" wrote: > On Mon, Apr 25, 2016 at 11:25 AM,

start trying to build rtems with kbuild

2016-04-25 Thread printk
hi, a11: I am trying to build rtems with kbuild on linux. just a hobby, make rtems easier to build on linux. not support freebsd, windows... (I guess some company don't use windows or linux, securty is critical for them. for small companies, e.g. shenzhen small companies, convenien is more

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-25 Thread Gedare Bloom
On Mon, Apr 25, 2016 at 11:25 AM, Joel Sherrill wrote: > > > On Mon, Apr 25, 2016 at 4:22 AM, Christian Mauderer > wrote: >> >> Essentially I agree that it would be nice to build civetweb as an >> external library especially with the

[PATCH] posix: Avoid Giant lock for condition variables

2016-04-25 Thread Sebastian Huber
Update #2555. --- cpukit/posix/include/rtems/posix/cond.h | 3 +- cpukit/posix/include/rtems/posix/condimpl.h | 52 +-- cpukit/posix/include/rtems/posix/muteximpl.h | 10 ++ cpukit/posix/src/conddestroy.c | 55 +++ cpukit/posix/src/condget.c

EWiLi'16, the 6th Embedded Operating System Workshop held in conjunction with ESWEEK

2016-04-25 Thread Joel Sherrill
Hi Preliminary CFP is online here: https://goo.gl/IftMrv Full text below: *** + p 61, second column, third sentence - "require internal routing Call For Papers EWiLi'16, the 6th Embedded Operating System

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-25 Thread Christian Mauderer
Essentially I agree that it would be nice to build civetweb as an external library especially with the different network stacks in mind. But there are some points that keep me from doing it: 1. I have really no Idea what would be necessary to build it as an upstream project using RSB. If that are

GSoC 2016: Low Level Peripherals & SD Card Support for Raspberry Pi

2016-04-25 Thread Martin Galvan
Hi everyone! Just wanted to check on the status for this project. I saw it was accepted for the GSoC 2016 (congratulations Mudit!), and would like to know what our workflow will be like. I offered to co-mentor it and help with code/documentation reviews, especially for the SD card parts since I