[Xcb] Win32 port - pls review
Peter Harris
pharris at opentext.com
Wed Mar 31 11:14:47 PDT 2010
On 2010-03-31 13:49, Jamey Sharp wrote:
> On Wed, Mar 31, 2010 at 09:51:33AM -0700, Barton C Massey wrote:
>> In message <201003312215.43723.jeetu.golani at gmail.com> you wrote:
>>> a) xcb should initialize errno to 0 before calling select for all it's
>>> variants - *ix and Win32.
>>
>> You often want (a) for the *ix case anyway; I'd just go
>> there.
>
> Fine with me, but I thought there were platforms where you can't assign
> to errno--in fact, I thought Win32 was one of those platforms?
errno "expands to a modifiable lvalue" since at least C89, so even MS's
"stuck in 1990" environment supports it.
It wouldn't surprise me to learn that MS's errno wasn't modifiable in
the 1980s, though.
You can't assign errno on WinCE, but that's because WinCE doesn't even
have errno (due to it being a minimal "freestanding" environment).
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
More information about the Xcb
mailing list