Annotated edit history of
sethostid(2) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
GETHOSTID |
|
|
2 |
!!!GETHOSTID |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
FILES |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
gethostid, sethostid - get or set the unique identifier of the current host |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include __ |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
__long int gethostid(void); |
|
|
22 |
int sethostid(long int__ |
|
|
23 |
''hostid''__);__ |
|
|
24 |
!!DESCRIPTION |
|
|
25 |
|
|
|
26 |
|
|
|
27 |
Get or set a unique 32-bit identifier for the current |
|
|
28 |
machine. The 32-bit identifier is intended to be unique |
|
|
29 |
among all UNIX systems in existence. This normally resembles |
|
|
30 |
the Internet address for the local machine, as returned by |
|
|
31 |
gethostbyname(3), and thus usually never needs to be |
|
|
32 |
set. |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
The __sethostid__ call is restricted to the |
|
|
36 |
superuser. |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
The ''hostid'' argument is stored in the file |
|
|
40 |
''/etc/hostid''. |
|
|
41 |
!!RETURN VALUE |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
__gethostid__ returns the 32-bit identifier for the |
|
|
45 |
current host as set by sethostid(2). |
|
|
46 |
!!CONFORMING TO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
4.2BSD. These functions were dropped in 4.4BSD. POSIX.1 does |
|
|
50 |
not define these functions, but ISO/IEC 9945-1:1990 mentions |
|
|
51 |
them in B.4.4.1. SVr4 includes __gethostid__ but not |
|
|
52 |
__sethostid__. |
|
|
53 |
!!FILES |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
''/etc/hostid'' |
|
|
57 |
!!SEE ALSO |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
hostid(1), gethostbyname(3) |
|
|
61 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.