pub fn fs_write_all_to_descriptor(
descriptor: RawDescriptor,
bytes: &[u8],
) -> Result<()>Expand description
Write every byte of bytes, or report why not.
write(2) is allowed to write fewer bytes than asked and to fail with
EINTR when a signal arrives mid-call. Neither is an error, and neither
is optional to handle: a caller that treats a short write as a whole one
silently truncates, which for a log tee means losing the middle of a line
rather than noticing anything.