diff options
author | itojun <> | 2001-06-12 23:36:18 +0000 |
---|---|---|
committer | itojun <> | 2001-06-12 23:36:18 +0000 |
commit | 8ba427fe118db4227e173159131b4038d341eee8 (patch) | |
tree | 483b8af9034b06f1bebdaf274281e9556b37725f | |
parent | 3181f54059d8f111597b6e6ebec0e24f7939ada7 (diff) | |
download | openbsd-8ba427fe118db4227e173159131b4038d341eee8.tar.gz openbsd-8ba427fe118db4227e173159131b4038d341eee8.tar.bz2 openbsd-8ba427fe118db4227e173159131b4038d341eee8.zip |
on openbsd, NI_MAXHOST value is different from RFC2553. PR 1870
-rw-r--r-- | src/lib/libc/net/getnameinfo.3 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3 index 755e7bd482..f5d4084247 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.11 2001/01/05 13:43:02 itojun Exp $ | 1 | .\" $OpenBSD: getnameinfo.3,v 1.12 2001/06/12 23:36:18 itojun Exp $ |
2 | .\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $ | 2 | .\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
@@ -111,7 +111,7 @@ Therefore to aid the application in allocating buffers for these two | |||
111 | returned strings the following constants are defined in | 111 | returned strings the following constants are defined in |
112 | .Aq Pa netdb.h : | 112 | .Aq Pa netdb.h : |
113 | .Bd -literal -offset | 113 | .Bd -literal -offset |
114 | #define NI_MAXHOST 1025 | 114 | #define NI_MAXHOST MAXHOSTNAMELEN |
115 | #define NI_MAXSERV 32 | 115 | #define NI_MAXSERV 32 |
116 | .Ed | 116 | .Ed |
117 | .Pp | 117 | .Pp |
@@ -302,3 +302,8 @@ and documented in | |||
302 | The current implementation is not thread-safe. | 302 | The current implementation is not thread-safe. |
303 | .Pp | 303 | .Pp |
304 | The text was shamelessly copied from RFC2553. | 304 | The text was shamelessly copied from RFC2553. |
305 | .Pp | ||
306 | .Ox | ||
307 | intentionally uses different | ||
308 | .Dv NI_MAXHOST | ||
309 | value from what RFC2553 suggests, to avoid buffer length handling mistakes. | ||