Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/inet inet(3): Fix typo in description of size argum...
details: https://anonhg.NetBSD.org/src/rev/b491be0a68ea
branches: trunk
changeset: 373108:b491be0a68ea
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jan 18 23:16:05 2023 +0000
description:
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.
diffstat:
lib/libc/inet/inet.3 | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 9a8ff79ac51c -r b491be0a68ea lib/libc/inet/inet.3
--- a/lib/libc/inet/inet.3 Wed Jan 18 17:02:17 2023 +0000
+++ b/lib/libc/inet/inet.3 Wed Jan 18 23:16:05 2023 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index