From owner-freebsd-questions Thu Jul 20 15:30:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns.tar.com (ns.tar.com [204.95.187.2]) by hub.freebsd.org (Postfix) with ESMTP id E4A9C37C3CE for ; Thu, 20 Jul 2000 15:30:07 -0700 (PDT) (envelope-from dick@tar.com) Received: from test.tar.com (test [204.95.187.4]) by ns.tar.com (8.9.3/8.9.3) with ESMTP id RAA64680; Thu, 20 Jul 2000 17:30:02 -0500 (CDT) (envelope-from dick@tar.com) Received: by test.tar.com (Postfix, from userid 1000) id 6D27681D4E; Thu, 20 Jul 2000 17:30:01 -0500 (CDT) Date: Thu, 20 Jul 2000 17:30:01 -0500 From: "Richard Seaman, Jr." To: Tan Juay Kwang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pthreads on 4.0-STABLE Message-ID: <20000720173001.C404@tar.com> References: <20000720162831.B404@tar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000720162831.B404@tar.com>; from dick@tar.com on Thu, Jul 20, 2000 at 04:28:31PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jul 20, 2000 at 04:28:31PM -0500, Richard Seaman, Jr. wrote: > Ideally, a threads package will provide gethostbyname_r, where you > pass a buffer for the result so you can avoid having to wrap the > call in a mutex. Unfortunately, I don't see this call in the > FreeBSD user threads package. Such a call does exist in linuxthreads > (as well as the FreeBSD linuxthreads port -- > see /usr/ports/devel/linuxthreads). I forgot. You can also use the newer getaddinfo(3) call. This is probably preferable, though I'm not sure about how portable this is. -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 262-367-5450 Nashotah WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message