gethostid(3bsd) (BSD System Compatibility)


gethostid -- get unique identifier of current host

Synopsis

/usr/ucb/cc [flag . . . ] file . . .
gethostid(void); 

Description

This routine is provided for compatibility with applications originally written for BSD systems; new or ported applications should use the equivalent System V routines instead. See gethostid(3C).

gethostid returns the 32-bit identifier for the current host, which should be unique across all hosts. This number is usually taken from the CPU board's ID PROM.

References

``BSD system libraries and header files''

cc(1bsd), hostid(1bsd), ld(1bsd), gethostid(3C). sysinfo(2)


30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.