This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Fwd: write(2) return codes
- From: "david f" <davidf87 at hotmail dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 09 May 2002 15:21:35 -0700
- Subject: Re: Fwd: write(2) return codes
- Bcc:
>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