Date: Thu, 20 Jul 2000 17:30:01 -0500 From: "Richard Seaman, Jr." <dick@tar.com> To: Tan Juay Kwang <tanjk@i-dns.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pthreads on 4.0-STABLE Message-ID: <20000720173001.C404@tar.com> In-Reply-To: <20000720162831.B404@tar.com>; from dick@tar.com on Thu, Jul 20, 2000 at 04:28:31PM -0500 References: <NEBBLKHLGDECFCNMHPEECEMPCOAA.tanjk@i-dns.net> <20000720162831.B404@tar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000720173001.C404>