gethostid(2)
NAME
gethostid − get an identifier for the current host
SYNOPSIS
#include <unistd.h>
long gethostid(void);
DESCRIPTION
The gethostid() function retrieves a 32−bit identifier for the current host.
RETURN VALUE
Upon successful completion, gethostid() returns an identifier for the current host.
ERRORS
No errors are defined.
APPLICATION USAGE
X/Open does not define the domain in which the return value is unique.
SEE ALSO
random(), <unistd.h>.
CHANGE HISTORY
First released in Issue 4, Version 2.
Hewlett-Packard Company — HP-UX Release 10.20: July 1996