Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/gethostname.3,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/gen/gethostname.3,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.8 retrieving revision 1.8.12.3 diff -u -p -r1.8 -r1.8.12.3 --- src/lib/libc/gen/gethostname.3 1999/03/22 19:44:42 1.8 +++ src/lib/libc/gen/gethostname.3 2002/03/22 20:42:08 1.8.12.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: gethostname.3,v 1.8 1999/03/22 19:44:42 garbled Exp $ +.\" $NetBSD: gethostname.3,v 1.8.12.3 2002/03/22 20:42:08 nathanw Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -43,7 +43,7 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.Fd #include +.Fd #include \*[Lt]unistd.h\*[Gt] .Ft int .Fn gethostname "char *name" "size_t namelen" .Ft int @@ -55,7 +55,7 @@ previously set by .Fn sethostname . The parameter .Fa namelen -specifies the size of the +specifies the size of the .Fa name array. The returned name is null-terminated unless insufficient space is provided. @@ -86,22 +86,22 @@ invalid address. The caller tried to set the hostname and was not the super-user. .El .Sh SEE ALSO -.Xr sysctl 3 , .Xr gethostid 3 , +.Xr sysctl 3 , .Xr sysctl 8 .Sh STANDARDS The .Fn gethostname function conforms to .St -xpg4.2 . +.Sh HISTORY +The +.Nm +function call appeared in +.Bx 4.2 . .Sh BUGS Host names are limited to .Dv MAXHOSTNAMELEN (from .Ao Pa sys/param.h Ac ) characters including null-termination, currently 256. -.Sh HISTORY -The -.Nm -function call appeared in -.Bx 4.2 .