Date: Tue, 2 Feb 1999 11:54:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Paul Derbyshire cc: djgpp AT delorie DOT com Subject: Re: Clarification about EACCES In-Reply-To: <3.0.6.32.19990201232443.008be380@pop.netaddress.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com 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".