simple_libc
pub fn gethostname() -> Result<OsString>
Attempts to determine the current system hostname.