bug-gnulib
[Top][All Lists]
Advanced

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

Re: errno --> errno name ?


From: Bruno Haible
Subject: Re: errno --> errno name ?
Date: Wed, 8 Jun 2011 12:19:55 +0200
User-agent: KMail/1.9.9

Sam Steingold wrote:
> note that the windows version would have to operate on the values of
> GetLastError() instead of errno.

Native Windows programs have to deal with both GetLastError() and errno.
It would be wrong for an API to handle errno values on Unix but to not
handle errno values on mingw. Also, IMO it is wrong to mix two different
enumerations of values into one, as explained in [1].

Conclusion: If you want some code that deals with GetLastError() values,
it must be a different API than the code that deals with errno values.

Bruno

[1] http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00537.html
-- 
In memoriam Larisa Yudina <http://en.wikipedia.org/wiki/Larisa_Yudina>



reply via email to

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