From owner-freebsd-hackers Tue Aug 7 0:42:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from softweyr.com (softweyr.com [208.247.99.111]) by hub.freebsd.org (Postfix) with ESMTP id 400E437B401 for ; Tue, 7 Aug 2001 00:42:44 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from localhost.softweyr.com ([127.0.0.1] helo=softweyr.com ident=c47a6766d893bf7e4876898afaf290fb) by softweyr.com with esmtp (Exim 3.16 #1) id 15U1cv-0000Dz-00; Tue, 07 Aug 2001 01:50:10 -0600 Message-ID: <3B6F9DB1.9DA1BAC0@softweyr.com> Date: Tue, 07 Aug 2001 01:50:09 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Richard Seaman, Jr." Cc: Alfred Perlstein , Alexander Litvin , freebsd-hackers@FreeBSD.ORG Subject: Re: gethostbyXXXX_r() References: <20010803105321.A37737@unknown.whichever.org> <20010803131115.F85642@elvis.mu.org> <3B6B9052.5FE460B7@softweyr.com> <20010804090821.E1119@seaman.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 "Richard Seaman, Jr." wrote: > > On Sat, Aug 04, 2001 at 12:04:02AM -0600, Wes Peters wrote: > > Alfred Perlstein wrote: > > > > > > * Alexander Litvin [010803 09:54] wrote: > > > > Are there any plans of making gethostbyname_r() and gethostbyaddr_r() > > > > available in FreeBSD? May be somebody already has them almost ready > > > > to be commited? Or are there any considered wrong way to go? > > > > > > > > The reason I'm asking is that I actually have a local patch implementing > > > > them here (only for DNS for now). Is it good idea to put some effort to > > > > finalaze it and submit a PR? Or I'd better not waist time on that? > > > > > > Please complete it, let me know when you submit the PR i'll try > > > to get it integrated. > > > > I'll be happy to take a look at it too. I did a lot of the _r routines > > we have now, in some cases simply documenting ones that were there, but > > halted when I got to gethostbyX_r and the passwd and group variants, > > because they were too fugly to tackle at that time. I'll get back to > > the > > remainder "someday", when I have the time, unless you beat me to it. > > 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. If they're just mutex-protected variants, I haven't bothered to create any of those. I guess they might be of use to somebody, but I very much wanted to create _r routines that were implemented properly, not just wrap the non-_r routines in a mutex, which is bass-ackwards. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message