Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostna(2) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sethostname(2)

sys_id(4)

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 sys_id(4). The name is null-terminated.

SEE ALSO

sethostname(2), sys_id(4)

Version 3.6  —  December 20, 1987

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