[BACK]Return to gethostname.3 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/gethostname.3 between version 1.5 and 1.6

version 1.5, 1998/02/05 18:46:43 version 1.6, 1998/05/06 19:48:39
Line 45 
Line 45 
 .Sh SYNOPSIS  .Sh SYNOPSIS
 .Fd #include <unistd.h>  .Fd #include <unistd.h>
 .Ft int  .Ft int
 .Fn gethostname "char *name" "int namelen"  .Fn gethostname "char *name" "size_t namelen"
 .Ft int  .Ft int
 .Fn sethostname "const char *name" "int namelen"  .Fn sethostname "const char *name" "size_t namelen"
 .Sh DESCRIPTION  .Sh DESCRIPTION
 .Fn Gethostname  .Fn Gethostname
 returns the standard host name for the current processor, as  returns the standard host name for the current processor, as
Line 89  The caller tried to set the hostname and
Line 89  The caller tried to set the hostname and
 .Xr sysctl 3 ,  .Xr sysctl 3 ,
 .Xr gethostid 3 ,  .Xr gethostid 3 ,
 .Xr sysctl 8  .Xr sysctl 8
   .Sh STANDARDS
   The
   .Fn gethostname
   function conforms to
   .St -xpg4.2 .
 .Sh BUGS  .Sh BUGS
 Host names are limited to  Host names are limited to
 .Dv MAXHOSTNAMELEN  .Dv MAXHOSTNAMELEN
 (from  (from
 .Ao Pa sys/param.h Ac )  .Ao Pa sys/param.h Ac )
 characters, currently 256.  characters including null-termination, currently 256.
 .Sh HISTORY  .Sh HISTORY
 The  The
 .Nm  .Nm

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>