Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)

GETHOSTID(2)  —  UNIX Programmer’s Manual

NAME

gethostid − get unique identifier of current host

SYNOPSIS

hostid = gethostid()
long hostid;

DESCRIPTION

Gethostid returns a CPU identification number which is guaranteed to be unique for each CPU.  This allows third-party software vendors to use the hostid for copy protection.  The hostid is a four byte number with the first byte being the CPU version (only version 1 exists today) and the last three bytes are the last three bytes in the ethernet address (which are guaranteed to be unique). 

SEE ALSO

hostid(1), gethostname(2)

4.2 Berkeley Distribution  —  June 27, 1989

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