Fwd: write(2) return codes

david f davidf87@hotmail.com
Thu May 9 15:21:00 GMT 2002

>Your patch just blindly sets EBADF when the windows error is
>ERROR_ACCESS_DENIED.  I am not convinced that this is a correct

I'm not certain either. I have no experience programming for windows.

The docs for ReadFile/WriteFile did not even indicate that 
ERROR_ACCESS_DENIED was a valid return code. The idea of access failure 
makes more sense for open or create.

I have no idea what else could cause it. But I suspect there are no cases 
where write returns EACCES under POSIX.

David F

Join the worldÂ’s largest e-mail service with MSN Hotmail. 

More information about the Cygwin-patches mailing list