Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sethostid(2) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostname(2)

hostid(1)



GETHOSTID(2)        RISC/os Reference Manual         GETHOSTID(2)



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

SYNOPSIS
     For -systype svr3 and -systype bsd43:

     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 sys-
     tems 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 pro-
     cessor.

SEE ALSO
     gethostname(2).
     hostid(1) in the User's Reference Manual.

ERRORS
     32 bits for the identifier is too small.

NOTE
     When these routines are used in a program which is compiled
     in -systype svr3, they are not resolved by libc.a.  See
     intro(3) for more information.





















                        Printed 11/19/92                   Page 1



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