Improved english
[unix-history] / usr / src / lib / libc / compat-43 / gethostid.3
.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)gethostid.3 6.2 (Berkeley) %G%
.\"
.TH GETHOSTID 2 ""
.UC 5
.SH NAME
gethostid, sethostid \- get/set unique identifier of current host
.SH SYNOPSIS
.nf
.ft B
hostid = gethostid()
int hostid;
.PP
.ft B
sethostid(hostid)
int hostid;
.fi
.SH DESCRIPTION
.I Sethostid
establishes a 32-bit identifier for the
current processor 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
super-user and is normally performed at boot time.
.PP
.I Gethostid
returns the 32-bit identifier for the current processor.
.SH SEE ALSO
hostid(1), gethostname(2)
.SH BUGS
32 bits for the identifier is too small.