Date: Thu, 29 Nov 2001 10:16:17 +0200 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: cjclark@alum.mit.edu Cc: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, freebsd-net@FreeBSD.ORG Subject: Re: inet_pton(3) Does Not Replace inet_aton(3) Message-ID: <20011129101617.B77679@sunbay.com> In-Reply-To: <20011128165259.F3985@blossom.cjclark.org> References: <20011127123301.B3788@gohan.cjclark.org> <200111281731.fASHV9948068@khavrinen.lcs.mit.edu> <20011128165259.F3985@blossom.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 28, 2001 at 04:52:59PM -0800, Crist J. Clark wrote: > On Wed, Nov 28, 2001 at 12:31:09PM -0500, Garrett Wollman wrote: > > <<On Tue, 27 Nov 2001 12:33:01 -0800, "Crist J. Clark" <cristjc@earthlink.net> said: > > > > > Where inet_pton(3) will fail (return a 1). That is, inet_pton(3) only > > > understands dotted quads. The comments in src/lib/libc/net/inet_pton.c > > > clearly show this is the intended behavior. But is that what we want? > > > > Yes. The old format is deprecated, obsolete, legacy, however you want > > to put it. > > OK. But I think it should be documented. > > Index: inet.3 > =================================================================== > RCS file: /export/ncvs/src/lib/libc/net/inet.3,v > retrieving revision 1.19 > diff -u -r1.19 inet.3 > --- inet.3 1 Oct 2001 16:08:55 -0000 1.19 > +++ inet.3 29 Nov 2001 00:47:28 -0000 > @@ -203,6 +203,14 @@ > otherwise, the number is interpreted as decimal). > .Pp > The > +.Fn inet_pton > +function only understands Internet addresses written as dotted quads. > +Each > +.Dq part > +may only contain numeric characters and is always interpreted as a > +decimal value. > +.Pp > +The > .Fn inet_aton > and > .Fn inet_ntoa > Um, don't we already have this documented in the STANDARDS section? Though I liked POSIX.1-200x text more. 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 freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011129101617.B77679>