Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostid(2) — 4D1 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)



     GETHOSTID(2)                                         GETHOSTID(2)



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

     SYNOPSIS
          hostid = gethostid()
          long hostid;

          sethostid(hostid)
          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.

     NOTE
          The primitives documented on this manual page are system
          calls, but unlike most system calls they are not resolved by
          libc.  To compile and link a program that makes these calls,
          follow the procedures for section (3B) routines as described
          in intro(3).

     SEE ALSO
          hostid(1), gethostname(2)

     BUGS
          32 bits for the identifier is too small.

     ORIGIN
          4th Berkeley Software Distribution



















     Page 1                                        (last mod. 8/20/87)



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