sethostid(2) DG/UX 5.4R3.00 sethostid(2)
NAME
sethostid - set unique identifier of current host
SYNOPSIS
#include <unistd.h>
int sethostid (new_hostid)
long new_hostid;
where:
new_hostid Hostid to set
DESCRIPTION
Sethostid establishes an identifier for the current node, which is
intended to be unique among all UNIX systems in existence. This is
normally a DARPA Internet address for the local machine. Only the
superuser may use this call; it is normally performed at boot time.
ACCESS CONTROL
The effective user id of the calling process must be superuser.
RETURN VALUE
0 Completed successfully.
-1 An error occurred. errno is set to indicate the error.
DIAGNOSTICS
Errno may be set to the following error code:
EPERM Caller must be superuser.
SEE ALSO
hostid(1C), getdomainname(2), gethostid(2), gethostname(2).
Licensed material--property of copyright holder(s) 1