Module Name: src Committed By: riastradh Date: Wed Jan 18 23:16:05 UTC 2023
Modified Files: src/lib/libc/inet: inet.3 Log Message: 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.6 -r1.7 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.6 src/lib/libc/inet/inet.3:1.7 --- src/lib/libc/inet/inet.3:1.6 Sun Dec 4 01:29:32 2022 +++ src/lib/libc/inet/inet.3 Wed Jan 18 23:16:05 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: inet.3,v 1.6 2022/12/04 01:29:32 uwe Exp $ +.\" $NetBSD: inet.3,v 1.7 2023/01/18 23:16:05 riastradh 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