Lines Matching defs:fds
22 let mut fds = [PollFd::new(r, PollFlags::POLLIN)];
25 let nfds = loop_while_eintr!(poll(&mut fds, 100));
27 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN));
32 let nfds = poll(&mut fds, 100).unwrap();
34 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN));
54 let mut fds = [PollFd::new(r, PollFlags::POLLIN)];
58 let nfds = loop_while_eintr!(ppoll(&mut fds, Some(timeout), Some(sigset)));
60 assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN));
65 let nfds = ppoll(&mut fds, Some(timeout), None).unwrap();
67 assert!(fds[0].revents().unwrap().contains(PollFlags::POLLIN));