docs/143472

Bruce Cran bruce at cran.org.uk
Sat Feb 12 21:40:07 UTC 2011


The following reply was made to PR docs/143472; it has been noted by GNATS.

From: Bruce Cran <bruce at cran.org.uk>
To: bug-followup at 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--


More information about the freebsd-standards mailing list