summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>2004-12-20 22:30:10 +0000
committermillert <>2004-12-20 22:30:10 +0000
commit04593fd1f06297315cafac4b57721e20b09013c7 (patch)
tree4ddc2623cb2c5de9b520d5197a67e0de0865c4e0
parent31e753210b2697032bfefd2e04ea48716adc1b9a (diff)
downloadopenbsd-04593fd1f06297315cafac4b57721e20b09013c7.tar.gz
openbsd-04593fd1f06297315cafac4b57721e20b09013c7.tar.bz2
openbsd-04593fd1f06297315cafac4b57721e20b09013c7.zip
Get rid of a bogus -32 that came about from misreading the ISC original
Mention what happens when a length parameter is zero Talk about space for trailing NUL byte
-rw-r--r--src/lib/libc/net/getnameinfo.310
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 2dfe60ad59..9085ff6971 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.31 2004/12/20 22:20:43 millert Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.32 2004/12/20 22:30:10 millert Exp $
2.\" 2.\"
3.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") 3.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
4.\" Copyright (C) 2000, 2001 Internet Software Consortium. 4.\" Copyright (C) 2000, 2001 Internet Software Consortium.
@@ -59,7 +59,7 @@ are stored in
59.Fa host 59.Fa host
60and 60and
61.Fa serv 61.Fa serv
62which have size parameters 62which have length parameters
63.Fa hostlen 63.Fa hostlen
64and 64and
65.Fa servlen . 65.Fa servlen .
@@ -71,10 +71,12 @@ and
71the maximum value for 71the maximum value for
72.Fa servlen 72.Fa servlen
73is 73is
74.Dv NI_MAXSERV 74.Dv NI_MAXSERV ,
75- 32,
76as defined by 75as defined by
77.Aq Pa netdb.h . 76.Aq Pa netdb.h .
77If a length parameter is zero, no string will be stored.
78Otherwise, enough space must be provided to store the
79host name or service string plus a byte for the NUL terminator.
78.Pp 80.Pp
79The 81The
80.Fa flags 82.Fa flags