BSD 4_2 development
[unix-history] / usr / man / man2 / gethostid.2
CommitLineData
4524b797
C
1.TH GETHOSTID 2 "12 February 1983"
2.UC 4
3.SH NAME
4gethostid, sethostid \- get/set unique identifier of current host
5.SH SYNOPSIS
6.nf
7.ft B
8hostid = gethostid()
9int hostid;
10.PP
11.ft B
12sethostid(hostid)
13int hostid;
14.fi
15.SH DESCRIPTION
16.I Sethostid
17establishes a 32-bit identifier for the
18current processor which is intended to be unique among all
19UNIX systems in existence. This is normally a DARPA Internet
20address for the local machine. This call is allowed only to the
21super-user and is normally performed at boot time.
22.PP
23.I Gethostid
24returns the 32-bit identifier for the current processor.
25.SH SEE ALSO
26hostid(1), gethostname(2)
27.SH BUGS
2832 bits for the identifier is too small.