* Copyright (c) 1989 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)sethostname.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
sethostname(const char *name
, int namelen
)
sethostname(name
, namelen
)
if (sysctl(mib
, 2, NULL
, NULL
, (void *)name
, namelen
) == -1)