From owner-cvs-all Mon Jul 16 9:30:51 2001 Delivered-To: cvs-all@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 1249637B401; Mon, 16 Jul 2001 09:30:20 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f6GGTnC72768; Mon, 16 Jul 2001 19:29:49 +0300 (EEST) (envelope-from ru) Date: Mon, 16 Jul 2001 19:29:49 +0300 From: Ruslan Ermilov To: Brian Somers Cc: Nik Clayton , Hajimu UMEMOTO , Dima Dorfman , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/libexec/talkd announce.c Message-ID: <20010716192949.F51681@sunbay.com> Mail-Followup-To: Brian Somers , Nik Clayton , Hajimu UMEMOTO , Dima Dorfman , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200107131741.f6DHfpW62643@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200107131741.f6DHfpW62643@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Fri, Jul 13, 2001 at 06:41:51PM +0100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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