Content-type: text/html Man page of gethostid

gethostid

Section: Standard C Library Functions (3C)
Updated: 21 May 2007
Index Return to Main Contents
 

NAME

gethostid - get an identifier for the current host  

SYNOPSIS

#include <unistd.h>

long gethostid(void);

 

DESCRIPTION

The gethostid() function returns the 32-bit identifier for the current host. If the hardware capability exists, this identifier is taken from platform-dependent stable storage; otherwise it is a randomly generated number. It is not guaranteed to be unique.  

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE

Interface StabilityStandard

MT-Level

 

SEE ALSO

hostid(1), sysinfo(2), attributes(5), standards(5)


 

Index

NAME
SYNOPSIS
DESCRIPTION
ATTRIBUTES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 02:37:26 GMT, October 02, 2010