SETHOSTNAME(2) — Silicon Graphics
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. The name set should not be a nickname for the machine, but the full name of the machine, i.e., "IRIS1400".
SEE ALSO
NOTE
The primitives documented on this manual page are system calls, but unlike most system calls they are not resolved by libc. To compile and link a program that makes these calls, follow the procedures for section (3B) routines as described in intro(3).
Version 2.5 — April 22, 1987