Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sethostname(2X) — UNIX 2.9BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostname(2x)

SETHOSTNAME(2X)  —  Unix Programmer’s Manual

NAME

sethostname − set name of host cpu

SYNOPSIS

sethostname(name, namelen)
char ∗name;
int namelen;

DESCRIPTION

This call sets the name of the host processor to be name, which has length namelen characters.  This is normally executed when the system is bootstrapped, executed out of the file /etc/rc.local.  The name set should not be a nickname for the machine, but the full name of the machine, i.e. “ucbmatisse”. 

SEE ALSO

gethostname(2x)

BUGS

7th Edition  —  3/17/82

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