<sys/socket.h> POSIX Compliance Issue

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jan 23 06:29:42 UTC 2015


On 23/01/15 01:37, Joel Sherrill wrote:
> Hi
>
> In running the Open Group FACE Conformance Test Suite on RTEMS, it
> spotted that the old network stack's <sys/socket.h> does not include
> the types.h (or sys/types.h) to get ssize_t. That means you get a type
> undefined error if you followk
>
> http://pubs.opengroup.org/onlinepubs/7908799/xns/syssocket.h.html
>
> This impacts all the methods in <sys/socket.h> since the test suite assumes
> that it only needs to include the .h file(s) specified by Open Group.
>
> + Does this occur with the new stack?

No.

> + Is it OK to add the appropiate include file to old stack's socket.h?
>

The real FreeBSD includes <sys/_types.h> and defines only the necessary 
types for <sys/socket.h>. In the new stack I simply include <sys/types.h>.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list