Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2001 19:29:49 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Brian Somers <brian@Awfulhak.org>
Cc:        Nik Clayton <nik@FreeBSD.org>, Hajimu UMEMOTO <ume@imasy.or.jp>, Dima Dorfman <dima@unixfreak.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/libexec/talkd announce.c
Message-ID:  <20010716192949.F51681@sunbay.com>
In-Reply-To: <200107131741.f6DHfpW62643@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Jul 13, 2001 at 06:41:51PM %2B0100
References:  <nik@FreeBSD.org> <200107131741.f6DHfpW62643@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jul 13, 2001 at 06:41:51PM +0100, Brian Somers wrote:
> > On Sat, Jul 14, 2001 at 01:03:13AM +0900, Hajimu UMEMOTO wrote:
> > > Please stop using gethostbyaddr() and IPv4 specific coding anymore.
> > > We have getnameinfo() for this purpose.
> > 
> > Should the gethostby* man pages have a
> > 
> >     This interface is obsoleted by getnameinfo()
> > 
> > at the top (in the same that strtok(3) points readers at strsep(3)?
> 
> Yes, that'd make sense.
> 
How about this?

Index: gethostbyname.3
===================================================================
RCS file: /home/ncvs/src/lib/libc/net/gethostbyname.3,v
retrieving revision 1.22
diff -u -p -r1.22 gethostbyname.3
--- gethostbyname.3	2001/07/10 13:41:19	1.22
+++ gethostbyname.3	2001/07/16 16:29:07
@@ -287,6 +287,7 @@ for example, a mail-forwarder may be reg
 .El
 .Sh SEE ALSO
 .Xr getaddrinfo 3 ,
+.Xr getnameinfo 3 ,
 .Xr inet_aton 3 ,
 .Xr resolver 3 ,
 .Xr hosts 5 ,
@@ -357,6 +358,15 @@ if the data is needed for future use, it
 copied before any subsequent calls overwrite it.
 Only the Internet
 address format is currently understood.
+For these reasons, the
+.Xr getaddrinfo 3
+and
+.Xr getnameinfo 3
+functions are preferred over the
+.Fn gethostbyaddr
+and
+.Fn gethostbyname
+functions.
 .Pp
 .Fn gethostbyname2
 cannot perform


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010716192949.F51681>