Mail Archives: djgpp/1999/02/02/09:05:40
On Mon, 1 Feb 1999, Paul Derbyshire wrote:
> Is EACCES generated for
>    * Trying to write to a read-only file
>    * Accessing a file that's in use
>    * Both?
EACCES is generated for almost every problem, because DOS returns the 
corresponding error code for A LOT of file-oriented problems.  In 
addition to the above, here are some more cases:
	* attempt to open a directory
	* attempt to delete a directory that's not empty
	* trying to remove a read-only file
and more.  In short, EACCES is the DOS way to say "You can't do that, but 
I'm too stupid to know why".
- Raw text -