Function uapi::gethostname
source · [−]Expand description
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.