diff options
| author | millert <> | 2004-12-20 22:30:10 +0000 |
|---|---|---|
| committer | millert <> | 2004-12-20 22:30:10 +0000 |
| commit | 04593fd1f06297315cafac4b57721e20b09013c7 (patch) | |
| tree | 4ddc2623cb2c5de9b520d5197a67e0de0865c4e0 /src | |
| parent | 31e753210b2697032bfefd2e04ea48716adc1b9a (diff) | |
| download | openbsd-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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libc/net/getnameinfo.3 | 10 |
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 |
| 60 | and | 60 | and |
| 61 | .Fa serv | 61 | .Fa serv |
| 62 | which have size parameters | 62 | which have length parameters |
| 63 | .Fa hostlen | 63 | .Fa hostlen |
| 64 | and | 64 | and |
| 65 | .Fa servlen . | 65 | .Fa servlen . |
| @@ -71,10 +71,12 @@ and | |||
| 71 | the maximum value for | 71 | the maximum value for |
| 72 | .Fa servlen | 72 | .Fa servlen |
| 73 | is | 73 | is |
| 74 | .Dv NI_MAXSERV | 74 | .Dv NI_MAXSERV , |
| 75 | - 32, | ||
| 76 | as defined by | 75 | as defined by |
| 77 | .Aq Pa netdb.h . | 76 | .Aq Pa netdb.h . |
| 77 | If a length parameter is zero, no string will be stored. | ||
| 78 | Otherwise, enough space must be provided to store the | ||
| 79 | host name or service string plus a byte for the NUL terminator. | ||
| 78 | .Pp | 80 | .Pp |
| 79 | The | 81 | The |
| 80 | .Fa flags | 82 | .Fa flags |
