lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #35928] BSD sockets functions must set errno for POSIX


From: Mason
Subject: [lwip-devel] [bug #35928] BSD sockets functions must set errno for POSIX-compliance
Date: Wed, 28 Mar 2012 09:46:06 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Firefox/11.0 SeaMonkey/2.8

Follow-up Comment #10, bug #35928 (project lwip):

Simon Goldschmidt wrote:

> Mason wrote:
> 
>> please consider making LWIP_SOCKET_SET_ERRNO=1 the default.
> 
> Wouldn't LWIP_SOCKET_SET_ERRNO=LWIP_COMPAT_SOCKETS be the correct
> default to prevent lwIP's socket implementation messing with the
> global errno?

(Nit: Under POSIX, errno is not global anymore, it is a
thread-local resource)

In my port, I've defined
#define LWIP_COMPAT_SOCKETS   0
#define LWIP_SOCKET_SET_ERRNO 1
and the BSD-socket function renaming is done in cc.h

Maybe I'm using lwip in a very specialized way. (I need the
real POSIX names exported in the library).

My preference is for LWIP_SOCKET_SET_ERRNO to default to
LWIP_SOCKET, but I won't lose sleep if you pick another
default, now that I set LWIP_SOCKET_SET_ERRNO explicitly
in lwipopts.h (others may fall into this trap however).


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35928>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]