BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 3 Apr 1983 17:03:58 +0000 (09:03 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Sun, 3 Apr 1983 17:03:58 +0000 (09:03 -0800)
Work on file usr/man/man2/gethostid.2

Synthesized-from: CSRG/cd1/4.2

usr/man/man2/gethostid.2 [new file with mode: 0644]

diff --git a/usr/man/man2/gethostid.2 b/usr/man/man2/gethostid.2
new file mode 100644 (file)
index 0000000..77a9cd5
--- /dev/null
@@ -0,0 +1,28 @@
+.TH GETHOSTID 2 "12 February 1983"
+.UC 4
+.SH NAME
+gethostid, sethostid \- get/set unique identifier of current host
+.SH SYNOPSIS
+.nf
+.ft B
+hostid = gethostid()
+int hostid;
+.PP
+.ft B
+sethostid(hostid)
+int hostid;
+.fi
+.SH DESCRIPTION
+.I Sethostid
+establishes a 32-bit identifier for the
+current processor which is intended to be unique among all
+UNIX systems in existence.  This is normally a DARPA Internet
+address for the local machine.  This call is allowed only to the
+super-user and is normally performed at boot time.
+.PP
+.I Gethostid
+returns the 32-bit identifier for the current processor.
+.SH SEE ALSO
+hostid(1), gethostname(2)
+.SH BUGS
+32 bits for the identifier is too small.