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]

Re: recv() returns ETIMEDOUT instead of EWOULDBLOCK.


Sergei Organov wrote:
> 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?

You could try changing this in
  ecos/packages/net/bsd_tcpip/current/src/ecos/synch.c

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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]