summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-03-15 08:35:53 +0000
committerbrian <brian@FreeBSD.org>2001-03-15 08:35:53 +0000
commit4205100dc17cb747ce133320e400894b490e6b06 (patch)
tree7315abaac90976999427054c66bc842d393a5db9 /lib
parentbb83c51dcc32da47dbcba45696b6d3593bafb816 (diff)
downloadFreeBSD-src-4205100dc17cb747ce133320e400894b490e6b06.zip
FreeBSD-src-4205100dc17cb747ce133320e400894b490e6b06.tar.gz
Mention that MAXHOSTNAMELEN includes space for the NUL.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/gethostname.32
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/gethostname.3 b/lib/libc/gen/gethostname.3
index 8596a2d..ba0bbe3 100644
--- a/lib/libc/gen/gethostname.3
+++ b/lib/libc/gen/gethostname.3
@@ -93,6 +93,8 @@ Host names are limited to
(from
.Ao Pa sys/param.h Ac )
characters, currently 256.
+This includes the trailing
+.Dv NUL .
.Sh HISTORY
The
.Fn gethostname
OpenPOWER on IntegriCloud