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" <[EMAIL PROTECTED]> 
>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,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to