Hello Simon,

Tuesday, November 14, 2006, 4:02:09 PM, you wrote:

>>>>>> #ifdef mingw32_HOST_OS
>>>>>>         if ((how & O_WRONLY) || (how & O_RDWR) || (how &
>>>>>>           O_APPEND)) return _sopen(file,how,_SH_DENYRW,mode);
>>>>>>         else
>>>>>>           return _sopen(file,how,_SH_DENYWR,mode);
>>>>>> #else
>>>>>>         return open(file,how,mode);
>>>>>> #endif

>> but for windows, the code above allow to EITHER multiple readers OR
>> one writer. to allow multiple readers AND one writer simultaneously,
>> it should be written as

> No, multiple readers *or* a single writer is what the Haskell spec
> says.  Go check your Haskell Report.

oh, sorry for noise. i think that Report is wrong here, but GHC
definitely works as specified in Report

(i've never read Report and hope not to do this in the next 200 years :)

btw, Windows developers thinks just like me - it should be possible to
have multiple readers and one writer simultaneously (by default)


-- 
Best regards,
 Bulat                            mailto:[EMAIL PROTECTED]

_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to