pub fn wait_event(fd: RawFd, d: Duration) -> Result<bool>
Wait for the file to have an event available to read.