From owner-freebsd-hackers Sun Aug 5 1:18:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by hub.freebsd.org (Postfix) with ESMTP id 3B58037B401 for ; Sun, 5 Aug 2001 01:18:48 -0700 (PDT) (envelope-from archer@whichever.org) Received: from 207-172-201-44.s44.as1.xnb.nj.dialup.rcn.com ([207.172.201.44] helo=unknown.whichever.org) by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.32 #2) id 15TJ7W-0000Ao-00 for freebsd-hackers@freebsd.org; Sun, 05 Aug 2001 04:18:47 -0400 Received: (from archer@localhost) by unknown.whichever.org (8.11.4/8.11.1) id f758IjT60048; Sun, 5 Aug 2001 04:18:45 -0400 (EDT) (envelope-from archer) Date: Sun, 5 Aug 2001 04:18:45 -0400 (EDT) Message-Id: <200108050818.f758IjT60048@unknown.whichever.org> From: Alexander Litvin To: freebsd-hackers@freebsd.org Subject: Re: gethostbyXXXX_r() In-Reply-To: X-Newsgroups: unknown.freebsd.hackers User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (FreeBSD/5.0-CURRENT (i386)) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > hi, there! > > On Sat, 4 Aug 2001, Richard Seaman, Jr. wrote: > >> There are some gethostby_r, getnetby_r, ... etc routines in the >> linuxthreads port (/usr/ports/devel/linuxthreads/files). These >> came from the original linuxthreads package, and have no copyright >> on them. I never researched the copyright status of them, but >> I don't think they are GPL, though you might want to do further >> research on their history if you use them. > > gethostbyxxx_r can be taken from bind 8 Yes, bind8 has them, as well as thread-safe resolver library. Unfortunately, FreeBSD's implementation is based on much older bind, and has wandered quite a long way from it (INET6, kqueue in res_send, etc.) So, to take bind8's implementation and modify it to match FreeBSD stuff would be quite painful IMHO. What I did to some extent mimics bind8's implementation. I just went from other direction -- took what FreeBSD has and applied some ideas from bind8. I just need couple more days to make it presentable. As for bind9 -- this has AFAIK totally rewritten resolver, which doesn't even resemble bind8. IMHO, to incorporate it into FreeBSD might take a tremendous effort. -- #include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message