(BSD System Compatibility)

gethostid(3bsd)


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'' in Programming with system calls and libraries

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


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004