This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
recv() returns ETIMEDOUT instead of EWOULDBLOCK.
- From: Sergei Organov <osv at javad dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 23 Sep 2008 18:14:30 +0400
- Subject: [ECOS] recv() returns ETIMEDOUT instead of EWOULDBLOCK.
Hello,
I'm using rather recent CVS eCos and noticed that recv() returns errno
== ETIMEDOUT when timeout happens due to the use of SO_RCVTIMEO option
on the socket (I'm using freebsd_net). However, both FreeBSD and Linux
manpages specify that errno should be set to EWOULDBLOCK in this case.
Moreover, RTEMS, that runs port of roughly the same FreeBSD TCP/IP
stack, correctly returns EWOULDBLOCK, so this must be something
eCos-specific I guess.
Is this a bug? Any idea for a fix?
-- Sergei.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss