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
BUGS
7th Edition — 3/17/82