GETHOSTID(2)
NAME
gethostid, sethostid − get/set unique identifier of current host
USAGE
hostid = gethostid() int hostid;
sethostid(hostid) int hostid;
DESCRIPTION
Sethostid establishes a 32-bit identifier for the current processor. This identifier is intended to be unique among all UNIX systems in existence; it is normally a DARPA Internet address for the local machine. Use of this call is limited to the super-user, and typically occurs only at boot time.
Gethostid returns the 32-bit identifier for the current processor.
RETURN VALUE
Upon successful execution, gethostid returns the 32-bit identifier for the current processor.