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 IEEE Std 1003.1-2001 (“POSIX.1”) does not define the domain in which the return value is unique.

None.

None.

random(3), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <unistd.h>

First released in Issue 4, Version 2.

Moved from X/OPEN UNIX extension to BASE.

footer end

January 1, 2004 posix.fail