BSD 4_3_Tahoe development
[unix-history] / usr / man / cat2 / sethostid.0
CommitLineData
2cf6fecc
C
1
2
3
4GETHOSTID(2) UNIX Programmer's Manual GETHOSTID(2)
5
6
7
8N\bNA\bAM\bME\bE
9 gethostid, sethostid - get/set unique identifier of current
10 host
11
12S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
13 h\bho\bos\bst\bti\bid\bd =\b= g\bge\bet\bth\bho\bos\bst\bti\bid\bd(\b()\b)
14 l\blo\bon\bng\bg h\bho\bos\bst\bti\bid\bd;\b;
15
16 s\bse\bet\bth\bho\bos\bst\bti\bid\bd(\b(h\bho\bos\bst\bti\bid\bd)\b)
17 l\blo\bon\bng\bg h\bho\bos\bst\bti\bid\bd;\b;
18
19D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
20 _\bS_\be_\bt_\bh_\bo_\bs_\bt_\bi_\bd establishes a 32-bit identifier for the current
21 processor that is intended to be unique among all UNIX sys-
22 tems in existence. This is normally a DARPA Internet
23 address for the local machine. This call is allowed only to
24 the super-user and is normally performed at boot time.
25
26 _\bG_\be_\bt_\bh_\bo_\bs_\bt_\bi_\bd returns the 32-bit identifier for the current pro-
27 cessor.
28
29S\bSE\bEE\bE A\bAL\bLS\bSO\bO
30 hostid(1), gethostname(2)
31
32B\bBU\bUG\bGS\bS
33 32 bits for the identifier is too small.
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63Printed 7/9/88 November 28, 1985 1
64
65
66