Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostid(3B) — SunOS 5.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1B)

sysinfo(2)

gethostid(3B)

NAME

gethostid − get unique identifier of current host

SYNOPSIS

/usr/ucb/cc [ flag ... ] file ...

long gethostid()

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(1B), sysinfo(2)

NOTES

Use of these interfaces should be restricted to only applications written on BSD platforms.  Use of these interfaces with any of the system libraries or in multi-thread applications is unsupported. 

SunOS 5.4  —  Last change: 12 Feb 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026