This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]