www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/02/09:05:40

Date: Tue, 2 Feb 1999 11:54:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Paul Derbyshire <pderbysh AT usa DOT net>
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: <Pine.SUN.3.91.990202114557.13819W-100000@is>
MIME-Version: 1.0
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019