unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



gethostid(2)							 gethostid(2)



NAME
  gethostid - Gets the unique identifier of the	current	host

SYNOPSIS

  #include <&lt;unistd.h>&gt;

  long gethostid ( void	);

STANDARDS

  Interfaces documented	on this	reference page conform to industry standards
  as follows:

  gethostid():	XNS5.0

  Refer	to the standards(5) reference page for more information	about indus-
  try standards	and associated tags.

DESCRIPTION

  The gethostid() function allows a process to retrieve	the 32-bit identifier
  for the current host.	 The host ID is	stored in network standard byte	order
  and is set either by the hostid(1) command or	the sethostid(2) function
  call.

RETURN VALUES

  Upon completion, the gethostid() function returns the	identifier for the
  current host.

RELATED	INFORMATION

  Commands: hostid(1)

  Functions: gethostname(2), sethostname(2)

  Standards: standards(5)