gethostid(2)gethostid(2)NAME
gethostid, sethostid - get/set unique identifier of current host
C SYNOPSIS
#include <unistd.h>
int gethostid (void);
int sethostid (int hostid);
DESCRIPTION
Sethostid establishes a 32-bit identifier for the current host that is
intended to be unique among all UNIX systems in existence. This is
normally a DARPA Internet address for the local machine. This call is
allowed only to the superuser and is normally performed at boot time.
Gethostid returns the 32-bit identifier for the current host.
SEE ALSOhostid(1), gethostname(2)
Page 1