| 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 |
| 11 | gethostid, sethostid \- get/set unique identifier of current host |
| 12 | .SH SYNOPSIS |
| 13 | .nf |
| 14 | .ft B |
| 15 | hostid = gethostid() |
| 16 | long hostid; |
| 17 | .PP |
| 18 | .ft B |
| 19 | sethostid(hostid) |
| 20 | long hostid; |
| 21 | .fi |
| 22 | .SH DESCRIPTION |
| 23 | .I Sethostid |
| 24 | establishes a 32-bit identifier for the |
| 25 | current processor that is intended to be unique among all |
| 26 | UNIX systems in existence. This is normally a DARPA Internet |
| 27 | address for the local machine. This call is allowed only to the |
| 28 | super-user and is normally performed at boot time. |
| 29 | .PP |
| 30 | .I Gethostid |
| 31 | returns the 32-bit identifier for the current processor. |
| 32 | .SH SEE ALSO |
| 33 | hostid(1), gethostname(2) |
| 34 | .SH BUGS |
| 35 | 32 bits for the identifier is too small. |