Query: gethostid
OS: opensolaris
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
gethostid(3C) Standard C Library Functions gethostid(3C)NAMEgethostid - get an identifier for the current hostSYNOPSIS#include <unistd.h> long gethostid(void);DESCRIPTIONThe 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. If the calling thread's process is executing within a non-global zone that emulates a host identifier, then the zone's emulated 32-bit host identifier is returned.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ |Standard |See standards(5). | +-----------------------------+-----------------------------+SEE ALSOhostid(1), sysinfo(2), attributes(5), standards(5), zones(5) SunOS 5.11 29 Jan 2009 gethostid(3C)
Related Man Pages |
---|
gethostid(3c) - opensolaris |
gethostid(3) - centos |
sethostid(3) - centos |
gethostid(3) - php |
gethostid(3) - xfree86 |
Similar Topics in the Unix Linux Community |
---|
Creating a Unique ID on distributed systems |