diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/gethostname.3 | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lib/libc/gen/gethostname.3 b/lib/libc/gen/gethostname.3 index a10102b5943..10767cf6e5c 100644 --- a/lib/libc/gen/gethostname.3 +++ b/lib/libc/gen/gethostname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gethostname.3,v 1.17 2000/04/18 03:01:26 aaron Exp $ +.\" $OpenBSD: gethostname.3,v 1.18 2001/01/21 23:30:04 aaron Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -78,8 +78,7 @@ The .Fa name or .Fa namelen -parameter gave an -invalid address. +parameter gave an invalid address. .It Bq Er EPERM The caller tried to set the hostname and was not the superuser. .El @@ -90,6 +89,16 @@ The caller tried to set the hostname and was not the superuser. .Xr sysctl 3 , .Xr sysctl 8 , .Xr yp 8 +.Sh STANDARDS +The +.Fn gethostname +function call conforms to +.St -xpg4.2 . +.Sh HISTORY +The +.Fn gethostname +function call appeared in +.Bx 4.2 . .Sh BUGS Host names are limited to .Dv MAXHOSTNAMELEN @@ -103,13 +112,3 @@ If the buffer passed to is smaller than .Dv MAXHOSTNAMELEN , other operating systems may not guarantee termination with NUL. -.Sh HISTORY -The -.Fn gethostname -function call appeared in -.Bx 4.2 . -.Sh STANDARDS -The -.Fn gethostname -function call conforms to -.St -xpg4.2 . |