delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/09/11:35:14

Date: Mon, 9 Mar 1998 18:30:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
cc: djgpp-workers AT delorie DOT com
Subject: Re: errno constants in <errno.h>
In-Reply-To: <m0yBzZT-000S2iC@inti.gov.ar>
Message-ID: <Pine.SUN.3.91.980309182652.1712A-100000@is>
MIME-Version: 1.0

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.

> And  perhaps (if no so much overhead is involved) we can even have both 
> errno styles selectable through some variable.

Is there really a need for this option?  If we have both errno and
_dos_errno, an application could test both of them if it needs. 
Portability (both to Posix and DOS compilers) is served well by having
both of these separate. 

- Raw text -


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