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
