Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostname(2) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sethostname(2)

rhost(3N)

GETHOSTNAME(2)  —  Silicon Graphics

NAME

gethostname − get name of current host

SYNOPSIS

gethostname (hostname, sizeof (hostname));
char hostname[32];

DESCRIPTION

gethostname returns the standard host name for the current processor, as set by sethostname(2) and defined in rhost(3N). The name is null-terminated.

SEE ALSO

sethostname(2), rhost(3N)

Version 2.4  —  May 08, 1986

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