bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] make EAGAIN == EWOULDBLOCK on Windows


From: Bruno Haible
Subject: Re: [PATCH] make EAGAIN == EWOULDBLOCK on Windows
Date: Fri, 3 Oct 2008 15:53:13 +0200
User-agent: KMail/1.5.4

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]