The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

gethostid - get an identifier for the current host

 SYNOPSIS



#include <unistd.h>

long gethostid(void);

 DESCRIPTION

The gethostid() function retrieves a 32-bit identifier for the current host.

 RETURN VALUE

Upon successful completion, gethostid() returns an identifier for the current host.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

The Open Group does not define the domain in which the return value is unique.

 FUTURE DIRECTIONS

None.

 SEE ALSO

random(), <unistd.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]