gethostid(2) gethostid(2)
gethostid, sethostid - get/set unique identifier of current host
#include <unistd.h>
int gethostid (void);
int sethostid (int hostid);
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.
hostid(1), gethostname(2)
PPPPaaaaggggeeee 1111 [ Back ]
|