gethostid(3c) sunos man page | unix.com

Man Page: gethostid

Operating Environment: sunos

Section: 3c

gethostid(3C)						   Standard C Library Functions 					     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. This identifier is taken from the CPU board's ID PROM. It is not guaranteed to be unique.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+
SEE ALSO
hostid(1), sysinfo(2), attributes(5), standards(5) SunOS 5.10 24 Jul 2002 gethostid(3C)
Related Man Pages
gethostid(2) - redhat
gethostid(3) - linux
sethostid(3) - linux
gethostid(3) - xfree86
gethostid(3) - x11r4
Similar Topics in the Unix Linux Community
Get ip address
Creating a Unique ID on distributed systems
Change Solaris hostid