Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostid(2) — Tru64 UNIX 5.0a

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)

sethostname(2)

gethostid(2)  —  System Calls

NAME

gethostid − Gets the unique identifier of the current host

SYNOPSIS

int gethostid ( void );

DESCRIPTION

The gethostid() function allows a process to retrieve the 32-bit identifier for the current host.  The host ID is stored in network standard byte order and is set either by the hostid(1) command or the sethostid(2) function call. 

RETURN VALUES

Upon completion, the gethostid() function returns the identifier for the current host. 

RELATED INFORMATION

Commands: hostid(1). 

Functions: gethostname(2), sethostname(2)

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