pub fn read_loop(fd: i32, buf: &mut [u8]) -> Result<usize>
Read/write loop wrappers (from utils.c read_loop/write_loop)