From owner-freebsd-hackers Tue Aug 10 9: 6:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id DC47215150 for ; Tue, 10 Aug 1999 09:06:16 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from [204.68.178.39] (helo=softweyr.com) by mail.xmission.com with esmtp (Exim 2.12 #1) id 11EEPk-0004uR-00; Tue, 10 Aug 1999 10:06:13 -0600 Message-ID: <37B04DF4.136D3870@softweyr.com> Date: Tue, 10 Aug 1999 10:06:12 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Dan Moschuk Cc: ognir@humboldt1.com, louie@TransSys.COM, steve_tarkalson@hotmail.com, bmcgover@cisco.com, hackers@FreeBSD.ORG Subject: Re: gethostbyaddr() and threads. References: <199908092354.QAA18586@home.humboldt1.com> <37AFB921.D3070875@softweyr.com> <19990810112836.B50820@trinsec.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. -- "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