Manual Page Result
0
Command: gethostid | Section: 2 | Source: Digital UNIX | File: gethostid.2.gz
gethostid(2) System Calls Manual gethostid(2)
NAME
gethostid - Gets the unique identifier of the current host
SYNOPSIS
#include <unistd.h>
long gethostid ( void );
DESCRIPTION
The gethostid() function allows a process to retrieve the 32-bit iden-
tifier for the current host. In most cases, the host ID is stored in
network standard byte order and is a DARPA Internet address for the lo-
cal machine.
RETURN VALUES
Upon completion, the gethostid() function returns the identifier for
the current host.
RELATED INFORMATION
Functions: gethostname(2), sethostname(2) delim off
gethostid(2)