bsd man page for gethostid

Query: gethostid

OS: bsd

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

GETHOSTID(2)							System Calls Manual						      GETHOSTID(2)

NAME
gethostid, sethostid - get/set unique identifier of current host
SYNOPSIS
hostid = gethostid() long hostid; sethostid(hostid) long hostid;
DESCRIPTION
Sethostid establishes a 32-bit identifier for the current processor that is intended to be unique among all UNIX systems in existence. This is normally a DARPA Internet address for the local machine. This call is allowed only to the super-user and is normally performed at boot time. Gethostid returns the 32-bit identifier for the current processor.
SEE ALSO
hostid(1), gethostname(2)
BUGS
32 bits for the identifier is too small. 4.2 Berkeley Distribution November 28, 1985 GETHOSTID(2)
Related Man Pages
gethostid(2) - redhat
sethostid(3) - linux
gethostid(3) - debian
sethostid(3) - centos
gethostid(3) - xfree86
Similar Topics in the Unix Linux Community
Get ip address
Creating a Unique ID on distributed systems
Change Solaris hostid