[−][src]Function uapi::gethostname
pub fn gethostname(buf: &mut [u8]) -> Result<&CStr>
This function returns libc::ENAMETOOLONG
if the hostname does not fit in the supplied
buffer. If the hostname is longer than 255 bytes (excluding the nul byte), then this
function always returns libc::ENAMETOOLONG
.