gethostid(3C) manual page
Table of Contents
gethostid - get unique identifier of current host
#include
<unistd.h>
long gethostid(void);
gethostid() returns the 32-bit
identifier for the current host, which should be unique across all hosts.
This number is usually taken from the CPU
board’s ID PROM
.
hostid(1)
,
sysinfo(2)
Table of Contents