gethostid man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

GETHOSTID(3C)							 GETHOSTID(3C)

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.

       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.

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

       ┌────────────────────┬───────────────────┐
       │  ATTRIBUTE TYPE    │  ATTRIBUTE VALUE	│
       ├────────────────────┼───────────────────┤
       │Interface Stability │ Committed		│
       ├────────────────────┼───────────────────┤
       │MT-Level	    │ MT-Safe		│
       ├────────────────────┼───────────────────┤
       │Standard	    │ See standards(5). │
       └────────────────────┴───────────────────┘

SEE ALSO
       hostid(1), sysinfo(2), attributes(5), standards(5), zones(5)

				 Jan 29, 2009			 GETHOSTID(3C)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net