From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 19 05:21:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 926DA16A4CE for ; Fri, 19 Dec 2003 05:21:04 -0800 (PST) Received: from smtp-relay1.barrysworld.com (ns1.barrysworld.com [213.221.172.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F56F43D46 for ; Fri, 19 Dec 2003 05:21:03 -0800 (PST) (envelope-from killing@barrysworld.com) Received: from [213.221.181.50] (helo=barrysworld.com) by smtp-relay1.barrysworld.com with esmtp (Exim 4.30) id 1AXKYa-0006Rl-Sa for freebsd-hackers@freebsd.org; Fri, 19 Dec 2003 13:20:40 +0000 Received: from vader [212.135.219.179] by barrysworld.com with ESMTP (SMTPD32-7.15) id AB39DAC0114; Fri, 19 Dec 2003 13:20:57 +0000 Message-ID: <01ee01c3c632$e4449470$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Fri, 19 Dec 2003 13:20:37 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: pthread safe name -> address resolution (under linux compat) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Steven Hartland List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 13:21:04 -0000 An update on this is that the app in question will be running under linux compat. So I suppose this questions changes to: Is the linux compat version of gethostbyname_r thread safe? Steve ----- Original Message ----- From: "Steven Hartland" To: Sent: Friday, December 19, 2003 12:30 PM Subject: pthread safe name -> address resolution > I've had a dig around but cant find any concrete answer > to what to use for name resolution that is pthread safe. > A number of people mention getaddrinfo and getipnodebyname > but both are doc'd as not being thread safe. > > Is there a solution to this is do we have to use mutex's? > > Steve