Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)

GETHOSTID(2)

NAME

gethostid, sethostid − get or set unique identifier of current host

USAGE

hostid = gethostid()
int hostid;

sethostid(hostid)
int hostid;

DESCRIPTION

Sethostid establishes a 32-bit identifier for the current processor.  This identifier is intended to be unique among all UNIX systems in existence; it is normally a DARPA Internet address for the local machine.  This call is allowed only to the super-user and normally occurs at boot time. 

Gethostid returns the 32-bit identifier for the current processor. 

RETURN VALUE

Upon succesful execution, gethostid returns the 32-bit identifier for the current processor. 

RELATED INFORMATION

hostid(1), gethostname(2)

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