Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
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
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
SYNOPSIS
#include <netdb.h>
int gethostid(void); |
DESCRIPTION
The gethostid() function retrieves the 32-bit identifier for the current host.
NOTES
The domain in which the host identifier is unique is not defined by the XPG4 specification.
RETURN VALUES
On successful completion, gethostid( ) returns a 32-bit identifier for the current host.
ERRORS
The gethostid( ) function does not set errno.
STANDARDS CONFORMANCE
The HP implementation uses the header file netdb.h instead of the unistd.h file required by the
XPG4 specification.
3−70 Hewlett-Packard Company 527187-017