1GETHOSTID(2)                  System Calls Manual                 GETHOSTID(2)
2
3
4

NAME

6       gethostid, sethostid - get/set unique identifier of current host
7

SYNOPSIS

9       hostid = gethostid()
10       long hostid;
11
12       sethostid(hostid)
13       long hostid;
14

DESCRIPTION

16       Sethostid  establishes  a  32-bit  identifier for the current processor
17       that is intended to be unique among  all  UNIX  systems  in  existence.
18       This  is normally a DARPA Internet address for the local machine.  This
19       call is allowed only to the super-user and  is  normally  performed  at
20       boot time.
21
22       Gethostid returns the 32-bit identifier for the current processor.
23

SEE ALSO

25       hostid(1), gethostname(2)
26

BUGS

28       32 bits for the identifier is too small.
29
30
31
324.2 Berkeley Distribution      November 28, 1985                  GETHOSTID(2)
Impressum