fn read_all(fd: i32) -> Result<Vec<u8>, i32>
Reads all of an open descriptor without taking ownership of it.