lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #39882] socket errno set error


From: hanhui
Subject: [lwip-devel] [bug #39882] socket errno set error
Date: Wed, 28 Aug 2013 09:09:23 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

Follow-up Comment #2, bug #39882 (project lwip):

User wants to clear errno must use this code:

errno = 0;

This is a only way to clean errno!

In POSIX system, errno not change while a api execute successful!

so set_errno should be:

#define set_errno(err) { if (err) { errno = (err); } } 

A lwip socket call execute successful, errno whill not change.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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