Since sethostname(3c) simply makes the same call to
sysinfo(SI_SET_HOSTNAME,...), it's certainly not for any performance
benefit. It's probably just cleaner, code-wise.
I can sponsor this one.
On Mon, Dec 04, 2006 at 09:30:03PM -0800, Stephen Potter wrote:
> Fairly trivial change; part of my interest in this change is to understand
> *why*. What does it matter if sysinfo() is used instead of get/sethostname().
> OSC: #0020
> This message posted from opensolaris.org
> request-sponsor mailing list
> request-sponsor at opensolaris.org
stephen lau // stevel at sun.com | 650.786.0845 | http://whacked.net
opensolaris // solaris kernel development