Commit | Line | Data |
---|---|---|
4524b797 C |
1 | .TH GETHOSTID 2 "12 February 1983" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | gethostid, sethostid \- get/set unique identifier of current host | |
5 | .SH SYNOPSIS | |
6 | .nf | |
7 | .ft B | |
8 | hostid = gethostid() | |
9 | int hostid; | |
10 | .PP | |
11 | .ft B | |
12 | sethostid(hostid) | |
13 | int hostid; | |
14 | .fi | |
15 | .SH DESCRIPTION | |
16 | .I Sethostid | |
17 | establishes a 32-bit identifier for the | |
18 | current processor which is intended to be unique among all | |
19 | UNIX systems in existence. This is normally a DARPA Internet | |
20 | address for the local machine. This call is allowed only to the | |
21 | super-user and is normally performed at boot time. | |
22 | .PP | |
23 | .I Gethostid | |
24 | returns the 32-bit identifier for the current processor. | |
25 | .SH SEE ALSO | |
26 | hostid(1), gethostname(2) | |
27 | .SH BUGS | |
28 | 32 bits for the identifier is too small. |