summaryrefslogtreecommitdiffstats
path: root/lib/libc/compat-43/gethostid.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/compat-43/gethostid.3')
-rw-r--r--lib/libc/compat-43/gethostid.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/compat-43/gethostid.3 b/lib/libc/compat-43/gethostid.3
index 8f56a28..b4f6b62 100644
--- a/lib/libc/compat-43/gethostid.3
+++ b/lib/libc/compat-43/gethostid.3
@@ -42,7 +42,7 @@
.Fd #include <unistd.h>
.Ft long
.Fn gethostid void
-.Ft int
+.Ft void
.Fn sethostid "long hostid"
.Sh DESCRIPTION
.Fn Sethostid
@@ -57,10 +57,10 @@ returns the 32-bit identifier for the current processor.
.Pp
This function has been deprecated.
The hostid should be set or retrieved by use of
-.Xr sysctl 2 .
+.Xr sysctl 3 .
.Sh SEE ALSO
-.Xr sysctl 2 ,
.Xr gethostname 3 ,
+.Xr sysctl 3 ,
.Xr sysctl 8 .
.Sh BUGS
32 bits for the identifier is too small.
OpenPOWER on IntegriCloud