Daniel Eischen wrote:
> 
> On Mon, 12 Aug 2002, Maxim Sobolev wrote:
> > Folks,
> >
> > Attched please find two patches based on bin/29581 PR to make FreeBSD
> > resolver thread-safe. They represent two approaches to reach this goal
> > - the first is to introduce reentrant versions of the standard
> > gethostbyXXX(3) APIs, similar to ones existing in other unices, and
> > the second one is to make gethostbyXXX(3) returning data placed into
> > per-thread storage when linked with libc_r. I like the latter approach
> > more, since it doesn't introduce new non-standard APIs.
> >
> > I would like to hear any comments and suggestions on the proposed
> > patches, as well as to opinions about which path to chose.
> 
> Why do you need uthread_resolv.c?  You should be able to thread
> calls by checking __isthreaded.  Just keep everything in libc.
> If there are missing stubs for some pthread_* routines (I think
> everything you need is in -current's libc), then add them.
Why do we have uthread_error.c then? Also it will add penalty to every
access to _res_data structure even in non-threaded case. 

-Maxim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to