GETHOSTID(2) RISC/os Reference Manual GETHOSTID(2)
NAME
gethostid, sethostid - get/set unique identifier of current
host
SYNOPSIS
For -systype sysv and -systype bsd43:
hostid = gethostid()
long hostid;
sethostid(hostid)
long hostid;
DESCRIPTION
sethostid establishes a 32-bit identifier for the current
processor that is intended to be unique among all UNIX sys-
tems in existence. This is normally a DARPA Internet
address for the local machine. This call is allowed only to
the super-user and is normally performed at boot time.
gethostid returns the 32-bit identifier for the current pro-
cessor.
SEE ALSO
gethostname(2).
hostid(1) in the User's Reference Manual.
ERRORS
32 bits for the identifier is too small.
NOTE
When these routines are used in a program which is compiled
in -systype sysv, they are not resolved by libc.a. See
intro(3-SysV) for more information.
Printed 1/15/91 Page 1