Implementation status: to be implemented

Synopsis

#include <unistd.h>

long gethostid(void);

Description

The gethostid() function gets an identifier for the current host.

Arguments:

None.

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

Return value

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

Errors

No errors are defined.

Implementation tasks

  • Implement the gethostid() function.