Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
gethostid(3) OSS Library Calls Reference Manual
NAME
gethostid - gets the identifier 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 identifier for the current host.
RETURN VALUES
On successful completion, gethostid() returns a 32-bit identifier for the current host.
ERRORS
The gethostid() function does not set errno.
NOTES
The domain in which the host identifier is unique is not defined by the XPG4 specification.
STANDARDS CONFORMANCE
The HP implementation uses the header file netdb.h instead of the unistd.h file required by the
XPG4 specification.
3−40 Hewlett-Packard Company 527187-007