Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosnetteam] || [Date Prev] [02-2004 Date Index] [Date Next] || [Thread Prev] [02-2004 Thread Index] [Thread Next]

[openbeosnetteam] Re: Fix for resolving host names

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Mon, 02 Feb 2004 16:09:35 +0100 CET
"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> Ouch!!!
> I thought that I fixed this long ago. There was a problem with the 
> h_errno stuff. It > is #defined to be a function _h_errnop() or so. On 
the other hand it is a pointer > that to TLS memory (if I remember 
correctly...).
> To solve the problem you should try to put an
> #undef h_errno
> before every h_errno declaration
> extern int h_errno.
> Otherwise it gets replaced by _h_errnop() and you try to set the 
> return value of > that function instead of the variable itself. This of 
course fails.
> In compat.c I also made a mistake and put it AFTER the declaration! 
> Sorry.
> h_errno is defined in res_query.c. IMHO, it should be moved into 
> compat.c. What > do you think?

That sounds like a big mess to me.
1) what is h_errno actually used for?
2) if it's used like the POSIX errno variable, why not copy the exact 
mechanism?

Bye,
   Axel.






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.