GETHOSTID(3) Library Functions Manual GETHOSTID(3)

gethostidget an identifier for the current host


#include <unistd.h>

long gethostid(void);

The gethostid () function shall retrieve a 32-bit identifier for the current host.

Upon successful completion, gethostid () shall return an identifier for the current host.

No errors are defined.

None.

This volume of POSIX.1-2008 does not define the domain in which the return value is unique.

None.

None.

initstate(3)

XBD <unistd.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

January 1, 2008 posix.fail