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: Simon Goldschmidt
Subject: [lwip-devel] [bug #35928] BSD sockets functions must set errno for POSIX-compliance
Date: Wed, 21 Mar 2012 13:21:33 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0

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

I can understand you're upset about wasting several hours. Still, I don't
think defining LWIP_SOCKET is the correct guard here: we don't define other
functions to their standard name by default (e.g. 'bind()', 'listen()' etc.)
but prefix them with 'lwip_' and only use standard names when
LWIP_COMPAT_SOCKETS==1.

Using this, we should be good and backwards compatible:

#ifndef set_errno
#if LWIP_COMPAT_SOCKETS || defined(ERRNO)
#define set_errno(err) errno = (err)
#else /* LWIP_COMPAT_SOCKETS || defined(ERRNO) */
#define set_errno(err)
#endif /* LWIP_COMPAT_SOCKETS || defined(ERRNO) */
#endif /* set_errno */

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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