From owner-freebsd-hackers Tue Aug 10 9:20:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from luna.lyris.net (luna.shelby.com [207.90.155.6]) by hub.freebsd.org (Postfix) with ESMTP id F0FEB14CE0 for ; Tue, 10 Aug 1999 09:20:37 -0700 (PDT) (envelope-from kip@lyris.com) Received: from luna.shelby.com by luna.lyris.net (8.9.1b+Sun/SMI-SVR4) id JAA13027; Tue, 10 Aug 1999 09:19:02 -0700 (PDT) Received: from (luna.shelby.com [207.90.155.6]) by luna.shelby.com with SMTP (MailShield v1.50); Tue, 10 Aug 1999 09:19:02 -0700 Date: Tue, 10 Aug 1999 09:19:01 -0700 (PDT) From: Kip Macy X-Sender: kip@luna To: Wes Peters Cc: Dan Moschuk , ognir@humboldt1.com, louie@TransSys.COM, steve_tarkalson@hotmail.com, bmcgover@cisco.com, hackers@FreeBSD.ORG Subject: Re: gethostbyaddr() and threads. In-Reply-To: <37B04DF4.136D3870@softweyr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SMTP-HELO: luna X-SMTP-MAIL-FROM: kip@lyris.com X-SMTP-RCPT-TO: wes@softweyr.com,dan@trinsec.com,ognir@humboldt1.com,louie@TransSys.COM,steve_tarkalson@hotmail.com,bmcgover@cisco.com,hackers@FreeBSD.ORG X-SMTP-PEER-INFO: luna.shelby.com [207.90.155.6] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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