Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sethostid(2N) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1N)

gethostname(2N)



     gethostid(2N)                                       gethostid(2N)



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

     SYNOPSIS
          hostid = gethostid()
          int hostid;

          sethostid(hostid)
          int hostid;

          cc ... -lnet

     DESCRIPTION
          sethostid establishes a 32-bit identifier for the current
          processor which 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.

     LINKING
          This library is accessed by specifying -lnet as the last
          argument to the compile line, e.g.:

            cc -o prog prog.c -lnet

     SEE ALSO
          hostid(1N), gethostname(2N).

     BUGS
          32 bits for the identifier is too small.





















     Page 1                                        (last mod. 1/14/87)



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