Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Aug 2001 01:50:09 -0600
From:      Wes Peters <wes@softweyr.com>
To:        "Richard Seaman, Jr." <dick@seaman.org>
Cc:        Alfred Perlstein <bright@mu.org>, Alexander Litvin <archer@whichever.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: gethostbyXXXX_r()
Message-ID:  <3B6F9DB1.9DA1BAC0@softweyr.com>
References:  <20010803105321.A37737@unknown.whichever.org> <20010803131115.F85642@elvis.mu.org> <3B6B9052.5FE460B7@softweyr.com> <20010804090821.E1119@seaman.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Richard Seaman, Jr." wrote:
> 
> On Sat, Aug 04, 2001 at 12:04:02AM -0600, Wes Peters wrote:
> > Alfred Perlstein wrote:
> > >
> > > * Alexander Litvin <archer@whichever.org> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B6F9DB1.9DA1BAC0>