This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: write(2) return codes


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

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. 
http://www.hotmail.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]