Module Name: src Committed By: martin Date: Sun Jan 14 15:28:27 UTC 2024
Modified Files: src/lib/libc/inet [netbsd-9]: inet.3 Log Message: Pull up following revision(s) (requested by riastradh in ticket #1788): lib/libc/inet/inet.3: revision 1.7 inet(3): Fix typo in description of size argument. This is the size of dst, not of src. The size of src is determined by the address family. Fix markup while here: .Fa for function arguments, not .Ar which is for command arguments. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.5.34.1 src/lib/libc/inet/inet.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/inet/inet.3 diff -u src/lib/libc/inet/inet.3:1.5 src/lib/libc/inet/inet.3:1.5.34.1 --- src/lib/libc/inet/inet.3:1.5 Wed Jul 25 14:51:15 2012 +++ src/lib/libc/inet/inet.3 Sun Jan 14 15:28:27 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: inet.3,v 1.5 2012/07/25 14:51:15 ginsbach Exp $ +.\" $NetBSD: inet.3,v 1.5.34.1 2024/01/14 15:28:27 martin Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -120,10 +120,19 @@ It returns NULL if a system error occurs .Va errno will have been set), or it returns a pointer to the destination string. The -.Ar size +.Fa size parameter is the size of the -.Ar buf -argument. +.Fa dst +buffer. +For +.Dv AF_INET , +this must have space for +.Dv INET_ADDRSTRLEN Pq 16 +bytes; for +.Dv AF_INET6 , +this must have space for +.Dv INET6_ADDRSTRLEN Pq 46 +bytes. .Pp The routine .Fn inet_ntoa