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

Date: Tue, 25 Nov 97 13:31:21 +0100
From: wgalazka AT dodek DOT chem DOT uw DOT edu DOT pl (Wojtek Galazka)
Message-Id: <9711251231.AA08896@dodek.chem.uw.edu.pl>
To: djgpp-workers AT delorie DOT com
Subject: errno constants in <errno.h>

Hi,

I've just checked the values of errno constants in errno.h
against these ones from BSD errno.h and I'm kind of surprised.
They don't match! For example in DJGPP EABIG is equal to 2
while in BSD it is equal to ... 32 
Assuming the values of EA* constants don't matter and so we
can change them I want to ask if it doesn't break any codes
if I take the values of EA* constants from BSD errno.h file
and will put these instead of original DJGPP's values? 
Would it be O.K ?

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?

Wojciech Galazka

- Raw text -


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