On Friday 03 October 2008 15:27, Paolo Bonzini wrote: > This patch tweaks the mapping of error codes in the errno module and in > winsock.c, so that under mingw EWOULDBLOCK is not different from EAGAIN.
Why should this be done? POSIX [1] does not require this. Portable applications have to check against both EAGAIN and EWOULDBLOCK. > It was inspired by the flock patch. flock() is documented to use EWOULDBLOCK in some cases. The right action in this case IMO is to make the 'flock' module depend on the 'errno' module. Bruno [1] http://www.opengroup.org/susv3xbd/errno.h.html