gethostid(3N) (BSD Compatibility Package) gethostid(3N)
NAME
gethostid, sethostid - get/set unique identifier of current host
SYNOPSIS
/usr/ucb/cc [flag ...] file ... -lucb
#include <unistd.h>
long gethostid(void);
int sethostid(long hostid);
DESCRIPTION
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.
sethostid establishes a 32-bit identifier for the current processor,
which is intended to be unique among all Reliant 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.
This routine resides in libucb.
SEE ALSO
sysinfo(2).
Page 1 Reliant UNIX 5.44 Printed 11/98