delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/25/10:37:56

Date: Tue, 25 Nov 1997 17:36:20 +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: <9711251502.AA09009@dodek.chem.uw.edu.pl>
Message-ID: <Pine.SUN.3.91.971125173252.28212O-100000@is>
MIME-Version: 1.0

On Tue, 25 Nov 1997, Wojtek Galazka wrote:

> And the BSD docs say the following
> 
> #define ESOCKTNOSUPPORT  44 /* Socket type not supported*/

44 is outside the range of errno values defined by DJGPP.  You can just 
add the definition fo ESOCKTNOSUPPORT without changing the existing 
values.

> The other solution seems to be in translating "on the fly" 
> (==on the occurence of the error) from winsock error codes to
> DJGPP errno codes which would sit above all EA*'s defined so far 

If the values that sockets use overlap and conflict with those defined in 
errno.h, I would suggest to write a wrapper around sockets calls that 
would translate the codes into DJGPP's values.

But I would imagine that most errno codes relevant for sockets aren't 
defined at all by DJGPP, so you could just add them.

- Raw text -


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