Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Aug 1999 09:19:01 -0700 (PDT)
From:      Kip Macy <kip@lyris.com>
To:        Wes Peters <wes@softweyr.com>
Cc:        Dan Moschuk <dan@trinsec.com>, ognir@humboldt1.com, louie@TransSys.COM, steve_tarkalson@hotmail.com, bmcgover@cisco.com, hackers@FreeBSD.ORG
Subject:   Re: gethostbyaddr() and threads.
Message-ID:  <Pine.SOL.4.05.9908100915410.13008-100000@luna>
In-Reply-To: <37B04DF4.136D3870@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On Tue, 10 Aug 1999, Wes Peters wrote:

> Dan Moschuk wrote:
> > 
> > | > Yeah, that IS a horrible idea of mine. :) Changing the API should be a last
> > | > resort, though, since we don't want to introduce to many FreeBSDisms into the
> > | > already-fragmented-enough Unix world.
> > | >
> > | > Just a thought, how does Linux's GNU libc handle gethostby* in threaded apps?
> > |
> > | Probably the way POSIX specifies, which would certainly be *our* target.
> > 
> > And does POSIX specify it?
> 
> You didn't get the message with the function prototypes?  I can send it again.
> This would be the *correct* way to implement thread-safe get*by* calls, since
> any existing threaded code (Solaris, Linux, etc.) will use these interfaces.

Small detail, but having ported a multi-threaded library to Linux either
Linux is not posix-compliant or everyone else (solaris and others) is not.
It's _r API is quite different.


> 
> -- 
>             "Where am I, and what am I doing in this handbasket?"
> 
> Wes Peters                                                         Softweyr LLC
> http://softweyr.com/                                           wes@softweyr.com
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
> 
> 




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.05.9908100915410.13008-100000>