Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

gethostid(3) OSS Library Calls Reference Manual
NAME
gethostid - gets the identier for the current host.
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <netdb.h>
long gethostid(void)
DESCRIPTION
The gethostid() function retrieves the 32-bit identier for the current host.
RETURN VALUES
On successful completion, gethostid() returns a 32-bit identier for the current host.
ERRORS
The gethostid() function does not set errno.
NOTES
The domain in which the host identier is unique is not dened by the XPG4 specication.
STANDARDS CONFORMANCE
The HP implementation uses the header le netdb.h instead of the unistd.h le required by the
XPG4 specication.
340 Hewlett-Packard Company 527187-007