summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoritojun <>2001-06-12 23:36:18 +0000
committeritojun <>2001-06-12 23:36:18 +0000
commit8ba427fe118db4227e173159131b4038d341eee8 (patch)
tree483b8af9034b06f1bebdaf274281e9556b37725f
parent3181f54059d8f111597b6e6ebec0e24f7939ada7 (diff)
downloadopenbsd-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.39
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
111returned strings the following constants are defined in 111returned 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
302The current implementation is not thread-safe. 302The current implementation is not thread-safe.
303.Pp 303.Pp
304The text was shamelessly copied from RFC2553. 304The text was shamelessly copied from RFC2553.
305.Pp
306.Ox
307intentionally uses different
308.Dv NI_MAXHOST
309value from what RFC2553 suggests, to avoid buffer length handling mistakes.