[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    gethostid(3C) manual page Table of Contents

Name

gethostid - get unique identifier of current host

Synopsis

#include <unistd.h>

long gethostid(void);

Description

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 .

See Also

hostid(1) , sysinfo(2)


Table of Contents