GETHOSTID(3) Library Functions Manual GETHOSTID(3)
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.
EXAMPLES
None.
APPLICATION USAGE
The Open Group does not define the domain in which the return value is unique.
FUTURE DIRECTIONS
None.
SEE ALSO
random(3) , <unistd.h> .
February 1997 posix.fail