[haiku-development] Re: netdb.h

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 09 Oct 2008 10:34:11 +0200 CEST

"scott mc" <scottmc2@xxxxxxxxx> wrote:
> While looking through open thaiku tickets i noticed one for netdb.h, 
> I
> had run into netdb.h when porting yasm recently.  I had to ifdef out
> part on a .h file:
> http://ports.haiku-files.org/browser/haikuports/trunk/dev-util/cvs/cvs-1.12.13-haiku.diff
> > It seems in yasm defined their values to negative values while the
> netdb.h in Haiku has all positive values for  the error return codes
> from getaddrinfo()
> http://dev.haiku-os.org/browser/haiku/trunk/headers/posix/netdb.h
> Which is right (for Haiku), and does it matter?

Since they are all positive in BONE as well, it would be problematic to 
change them later on. Since we generally use negative error values, 
this would have been nice, but we're actually violating POSIX ans ISO-C 
with this, anyway :-/

Bye,
   Axel.


Other related posts: