GETHOSTID(3) Library Functions Manual GETHOSTID(3)
NAME
gethostid — get an
identifier for the current host
SYNOPSIS
long gethostid(void);
DESCRIPTION
The gethostid () function shall retrieve a
32-bit identifier for the current host.
RETURN VALUE
Upon successful completion, gethostid ()
shall return an identifier for the current host.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
This volume of POSIX.1-2008 does not define the domain in which the return value is unique.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
XBD <unistd.h>
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 5
Moved from X/OPEN UNIX extension to BASE.
January 1, 2008 posix.fail