* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
"@(#) Copyright (c) 1983 Regents of the University of California.\n\
static char sccsid
[] = "@(#)hostname.c 5.1 (Berkeley) %G%";
* hostname -- get (or set hostname)
if (sethostname(*argv
,strlen(*argv
)))
gethostname(hostname
,sizeof(hostname
));