[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: nptl 0.55



On Wed, Jul 23, 2003 at 05:50:47AM -0400, Rhino wrote:
> On Tue, 22 Jul 2003 23:36:37 -0700
> Ulrich Drepper <drepper redhat com> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Quick follow-up release:
> > 
> >   http://people.redhat.com/drepper/nptl/nptl-0.55.tar.bz2
> >    ftp://people.redhat.com/drepper/nptl/nptl-0.55.tar.bz2
> > 
> > I make this source drop because of the changes which went into the glibc
> > archive today and which probably require these new nptl changes:
> 
> 
> is this a typo on nptl/res.c ?
> 
> struct __res_state *
> __res_state (void)
> {
>   return __resp;
> }
> 
> shouldn't be  return __res; ?

No. __resp is a thread local pointer to struct __res_state.
In the initial thread it will be &_res, in other threads it will point
into struct __res_state located in struct pthread of the thread in question.

	Jakub




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]