[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.15 and 1.16

version 1.15, 2003/08/07 16:42:50 version 1.16, 2005/10/14 23:53:41
Line 29 
Line 29 
 .\"  .\"
 .\"     @(#)gethostname.3       8.1 (Berkeley) 6/4/93  .\"     @(#)gethostname.3       8.1 (Berkeley) 6/4/93
 .\"  .\"
 .Dd June 4, 1993  .Dd October 14, 2005
 .Dt GETHOSTNAME 3  .Dt GETHOSTNAME 3
 .Os  .Os
 .Sh NAME  .Sh NAME
Line 70  If the call fails, a value of \-1 is ret
Line 70  If the call fails, a value of \-1 is ret
 placed in the global location  placed in the global location
 .Va errno .  .Va errno .
 .Sh ERRORS  .Sh ERRORS
 The following errors may be returned by these calls:  If the
 .Bl -tag -width Er  .Fn
 .It Bq Er EFAULT  functions fail,
 The  they will set
 .Fa name  .Va errno
 or  for any of the errors specified for the routine
 .Fa namelen  .Xr sysctl 3 .
 parameter gave an  
 invalid address.  
 .It Bq Er EPERM  
 The caller tried to set the hostname and was not the super-user.  
 .El  
 .Sh SEE ALSO  .Sh SEE ALSO
 .Xr gethostid 3 ,  .Xr gethostid 3 ,
 .Xr sysctl 3 ,  .Xr sysctl 3 ,

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

CVSweb <webmaster@jp.NetBSD.org>