4.4BSD snapshot (revision 8.1)
[unix-history] / usr / src / lib / libc / compat-43 / gethostid.3
index e25cbb9..ee2a234 100644 (file)
@@ -1,12 +1,12 @@
-.\" Copyright (c) 1983, 1991 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1983, 1991, 1993
+.\"    The Regents of the University of California.  All rights reserved.
 .\"
 .\" %sccs.include.redist.man%
 .\"
 .\"
 .\" %sccs.include.redist.man%
 .\"
-.\"     @(#)gethostid.3        6.6 (Berkeley) %G%
+.\"     @(#)gethostid.3        8.1 (Berkeley) %G%
 .\"
 .Dd 
 .\"
 .Dd 
-.Dt GETHOSTID 2
+.Dt GETHOSTID 3
 .Os BSD 4.2
 .Sh NAME
 .Nm gethostid ,
 .Os BSD 4.2
 .Sh NAME
 .Nm gethostid ,
@@ -28,13 +28,22 @@ super-user and is normally performed at boot time.
 .Pp
 .Fn Gethostid
 returns the 32-bit identifier for the current processor.
 .Pp
 .Fn Gethostid
 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 .
 .Sh SEE ALSO
 .Sh SEE ALSO
-.Xr hostid 1 ,
-.Xr gethostname 2
+.Xr sysctl 2 ,
+.Xr gethostname 3 ,
+.Xr sysctl 8 .
 .Sh BUGS
 32 bits for the identifier is too small.
 .Sh HISTORY
 The
 .Sh BUGS
 32 bits for the identifier is too small.
 .Sh HISTORY
 The
-.Nm
-function call appeared in
-.Bx 4.2 .
+.Fn gethostid
+and
+.Fn sethostid
+syscalls appeared in 
+.Bx 4.2
+and were dropped in
+.Bx 4.4 .