Date: Sat, 12 Feb 2011 21:40:07 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-standards@FreeBSD.org Subject: Re: docs/143472 Message-ID: <201102122140.p1CLe7vg072805@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/143472; it has been noted by GNATS. From: Bruce Cran <bruce@cran.org.uk> To: bug-followup@freebsd.org Cc: Subject: Re: docs/143472 Date: Sat, 12 Feb 2011 21:34:14 +0000 --Boundary-00=_WzvVNhmY4S2KrEV Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I've attached a patch which should fix the issue. -- Bruce Cran --Boundary-00=_WzvVNhmY4S2KrEV Content-Type: text/plain; charset="ISO-8859-1"; name="gethostname.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gethostname.diff.txt" Index: gen/gethostname.3 =================================================================== --- gen/gethostname.3 (revision 218613) +++ gen/gethostname.3 (working copy) @@ -47,7 +47,7 @@ The .Fn gethostname function -returns the standard host name for the current processor, as +returns the standard host name for the current machine, as previously set by .Fn sethostname . The @@ -68,9 +68,9 @@ This call is restricted to the super-user and is normally used only when the system is bootstrapped. .Pp -Host names are limited to -.Brq Dv HOST_NAME_MAX -characters, not including the trailing null, currently 255. +Applications should use +.Fn sysconf _SC_HOST_NAME_MAX +to find the maximum length of a host name (not including the terminating null). .Sh RETURN VALUES .Rv -std .Sh ERRORS --Boundary-00=_WzvVNhmY4S2KrEV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102122140.p1CLe7vg072805>