GETHOSTID(2)
NAME
gethostid, sethostid − get or 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. This call is allowed only to the super-user and normally occurs at boot time.
Gethostid returns the 32-bit identifier for the current processor.
RETURN VALUE
Upon succesful execution, gethostid returns the 32-bit identifier for the current processor.