new copyright notice
[unix-history] / usr / src / lib / libc / compat-43 / gethostid.3
... / ...
CommitLineData
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)gethostid.3 6.5 (Berkeley) %G%
7.\"
8.TH GETHOSTID 2 ""
9.UC 5
10.SH NAME
11gethostid, sethostid \- get/set unique identifier of current host
12.SH SYNOPSIS
13.nf
14.ft B
15hostid = gethostid()
16long hostid;
17.PP
18.ft B
19sethostid(hostid)
20long hostid;
21.fi
22.SH DESCRIPTION
23.I Sethostid
24establishes a 32-bit identifier for the
25current processor that is intended to be unique among all
26UNIX systems in existence. This is normally a DARPA Internet
27address for the local machine. This call is allowed only to the
28super-user and is normally performed at boot time.
29.PP
30.I Gethostid
31returns the 32-bit identifier for the current processor.
32.SH SEE ALSO
33hostid(1), gethostname(2)
34.SH BUGS
3532 bits for the identifier is too small.