GETHOSTID(2) — System Interface Manual — System Calls
NAME
gethostid − get unique identifier of current host
SYNOPSIS
hostid = gethostid()
int hostid;
DESCRIPTION
Gethostid returns the 32-bit identifier for the current host, which is unique across all hosts.
SEE ALSO
Sun System Release 1.0 — 12 February 1983