gethostid(3C)


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. The domain over which this number is unique is unspecified.

References

sysinfo(2)

Standards conformance

This routine conforms to X/Open System Interfaces and Headers, Issue 4, Version 2.
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.