-.\" $OpenBSD: gethostname.3,v 1.25 2014/01/21 03:15:45 schwarze Exp $
+.\" $OpenBSD: gethostname.3,v 1.26 2015/01/12 10:11:07 nicm Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 21 2014 $
+.Dd $Mdocdate: January 12 2015 $
.Dt GETHOSTNAME 3
.Os
.Sh NAME
.In sys/param.h )
characters, currently 256.
This includes the terminating NUL character.
+Note that the corresponding POSIX definition
+.Dv HOST_NAME_MAX
+in
+.In limits.h
+does
+.Em not
+include the terminating NUL character.
.Pp
If the buffer passed to
.Fn gethostname