delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/09/20:43:09

Date: Mon, 9 Mar 1998 17:41:04 -0800 (PST)
Message-Id: <199803100141.RAA17246@adit.ap.net>
Mime-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>,
"Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: errno constants in <errno.h>
Cc: djgpp-workers AT delorie DOT com

At 06:30  3/9/1998 +0200, Eli Zaretskii wrote:
>
>On Mon, 9 Mar 1998, Salvador Eduardo Tropea (SET) wrote:
>
>> It sounds better than having an errno too different than the UNIX one.
>
>I would definitely NOT change errno.  Too many programs say things like 
>"if (errno == EEXIST)" etc.

I understood the suggestion not to be changing the `errno' macros, but
rather their actual values. i.e. say

#define EEXIST 123

if 123 is DOS's error code for "file exists".

But I still think the `_dos_errno' approach is better.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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