www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/25/22:16:21

Date: Wed, 25 Aug 1999 13:37:46 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Peach <martin AT loplop DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Do Error Messages Really Help?
In-Reply-To: <7pu789$975@tandem.CAM.ORG>
Message-ID: <Pine.SUN.3.91.990825133452.2834T-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 24 Aug 1999, Martin Peach wrote:

> It sure would be useful to have stuff like ENOENT written out in long, I
> keep trying to guess what it might possibly stand for.

You shouldn't be guessing, because the error message doesn't say 
"ENOENT", it says "No such file or directory (ENOENT)".  In other words, 
it tells you the problem in human-readable English, and *then* also tells 
you that the mnemonic for this error is ENOENT.

The reason for this mnemonic and not some other is compatibility: many 
programs do comparisons on errno values, like this:

	if (errno == ENOENT)
	  process_the_case_of_a_missing_file ();

- Raw text -


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