pub fn gethostname() -> OsString
Get the standard host name for the current machine.
Wraps POSIX gethostname in a safe interface. The function may
the internal buffer for the hostname is too small, but we use a buffer large
enough to hold the maximum hostname, so we consider any panics from this
function as bug which you should report.