Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sethostid(2) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)

GETHOSTID(2)                BSD Programmer's Manual               GETHOSTID(2)

NAME
     gethostid, sethostid - get/set unique identifier of current host

SYNOPSIS
     #include <unistd.h>

     long
     gethostid(void)

     int
     sethostid(long hostid)

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

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

SEE ALSO
     hostid(1),  gethostname(2)

BUGS
     32 bits for the identifier is too small.

HISTORY
     The gethostid function call appeared in 4.2BSD.

4.2 Berkeley Distribution       March 26, 1993                               1


































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