Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ gethostname(2X) — UNIX 2.9BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sethostname(2x)

GETHOSTNAME(2X)  —  Unix Programmer’s Manual

NAME

gethostname − get name of current host

SYNOPSIS

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

DESCRIPTION

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

SEE ALSO

sethostname(2x)

BUGS

7th Edition  —  3/17/82

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