diff options
author | Marcel Telka <marcel.telka@nexenta.com> | 2015-02-07 01:41:56 +0100 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2015-02-09 15:39:25 -0800 |
commit | 5c644dd8f2c88f1e78ae4866f22c749a3d1b0157 (patch) | |
tree | 873e2a5a02c754bbff2fbc8b124f56569f8c0b08 /usr/src/man/man3c | |
parent | 7825e891f35613dcf9e7e6d6848401511f3f96eb (diff) | |
download | illumos-joyent-5c644dd8f2c88f1e78ae4866f22c749a3d1b0157.tar.gz |
5585 Typo in gethostname(3c): current processor
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Ryan Zezeski <ryan@zinascii.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r-- | usr/src/man/man3c/gethostname.3c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr/src/man/man3c/gethostname.3c b/usr/src/man/man3c/gethostname.3c index 900a5fa816..44e1c6a501 100644 --- a/usr/src/man/man3c/gethostname.3c +++ b/usr/src/man/man3c/gethostname.3c @@ -1,6 +1,7 @@ '\" te +.\" Copyright 2015 Nexenta Systems, Inc. All rights reserved. .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. -.TH GETHOSTNAME 3C "Mar 22, 2004" +.TH GETHOSTNAME 3C "Feb 7, 2015" .SH NAME gethostname, sethostname \- get or set name of current host .SH SYNOPSIS @@ -17,10 +18,9 @@ gethostname, sethostname \- get or set name of current host .fi .SH DESCRIPTION -.sp .LP The \fBgethostname()\fR function returns the standard host name for the current -processor, as previously set by \fBsethostname()\fR. The \fInamelen\fR +machine, as previously set by \fBsethostname()\fR. The \fInamelen\fR argument specifies the size of the array pointed to by \fIname\fR. The returned name is null-terminated unless insufficient space is provided. .sp @@ -33,12 +33,10 @@ superuser and is normally used only when the system is bootstrapped. Host names are limited to \fBMAXHOSTNAMELEN\fR characters, currently 256, defined in the <\fBnetdb.h\fR> header. .SH RETURN VALUES -.sp .LP Upon successful completion, \fBgethostname()\fR and \fBsethostname()\fR return 0. Otherwise, they return \(mi1 and set \fBerrno\fR to indicate the error. .SH ERRORS -.sp .LP The \fBgethostname()\fR and \fBsethostname()\fR functions will fail if: .sp @@ -64,7 +62,6 @@ the calling process. .RE .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -82,7 +79,6 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.sp .LP \fBsysinfo\fR(2), \fBuname\fR(2), \fBgethostid\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5) |