delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/25/07:41:11

Date: Tue, 25 Nov 1997 14:40:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Wojtek Galazka <wgalazka AT dodek DOT chem DOT uw DOT edu DOT pl>
cc: djgpp-workers AT delorie DOT com
Subject: Re: errno constants in <errno.h>
In-Reply-To: <9711251231.AA08896@dodek.chem.uw.edu.pl>
Message-ID: <Pine.SUN.3.91.971125143720.27505d-100000@is>
MIME-Version: 1.0

On Tue, 25 Nov 1997, Wojtek Galazka wrote:

> I want to change these values because I want to add some more EA*s
> that are related to socket errors and so like. I want errno to be
> consistently used in all the networking stuff I work on instead of 
> messing with WSAEA* winsock errors.
> 
> What's your opinion?

Don't!  No program should ever look at the actual numeric value of all 
the E* symbols used by errno.  There's simply no need for what you want 
to do, and doing so might get you in trouble, because the library, 
internally, still assigns the old numeric values to errno.

You might of course recompile the DJGPP's libc with the new definitions.  
But I fail to understand why this is even needed.

- Raw text -


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