[openbeosnetteam] Re: Fix for resolving host names

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Tue, 03 Feb 2004 01:02:51 +0100 CET

"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> > 1) what is h_errno actually used for?
> It is used to report the error status, I think. ;)

Hehe :-)
I actually didn't know that it was a standard variable.

> > 2) if it's used like the POSIX errno variable, why not copy the 
> > exact 
> > mechanism?
> I will try to find out how it is used exactly (or if it is used at 
> all). Why is 
> there h_errno_tls then?
> Is our POSIX errno thread-specific or global?

It has to be thread local. h_errno_tls only stores the TLS slot that 
stores the integer indicating the error.

Bye,
   Axel.


Other related posts: