Lines Matching defs:timeout

44  *      but well before the specified timeout expired. The
50 * The DP_POLL ioctl arguments include a relative timeout in milliseconds,
52 * the timeout expires, or a signal was received. In this case we noticed
53 * that DP_POLL was returning before the timeout expired despite no events
70 * relative timeout rather then an absolute timeout, so we avoid the
81 * the specified timeout expires.
163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
168 debug_log("POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout);
170 ret = poll(fds, nfds, timeout);
175 fds, nfds, timeout, ret, (*elapsed));
181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
189 arg.dp_timeout = timeout;
191 debug_log("DP_POLL start: (0x%p, %d, %d)\n", fds, nfds, timeout);
234 int timeout = 10;
237 test_start(testName, "poll for %d sec with no fds\n", timeout);
239 ret = poll_wrapper(NULL, 0, timeout * 1000, &elapsed);
245 if (!check_time(elapsed, timeout)) {
247 elapsed, timeout);
262 int timeout = 10;
270 test_start(testName, "poll for %d sec with fds\n", timeout);
272 ret = poll_wrapper(&fd, 1, timeout * 1000, &elapsed);
278 if (!check_time(elapsed, timeout)) {
280 elapsed, timeout);
295 int timeout = 10;
298 test_start(testName, "poll for %d sec with no fds\n", timeout);
300 ret = dppoll(pollfd, NULL, 0, timeout * 1000, &elapsed);
306 if (!check_time(elapsed, timeout)) {
308 elapsed, timeout);
323 int timeout = 10;
327 test_start(testName, "poll for %d sec with fds\n", timeout);
352 ret = dppoll(pollfd, fds, 5, timeout * 1000, &elapsed);
358 if (!check_time(elapsed, timeout)) {
360 elapsed, timeout);