DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

gethostid(S)


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(S)

Standards conformance

This routine conforms to X/Open System Interfaces and Headers, Issue 4, Version 2.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005