Lines Matching defs:timeoutp
288 * Wait up to *timeoutp milliseconds for events on fd. Updates
289 * *timeoutp with time remaining.
293 waitfd(int fd, int *timeoutp, short events, volatile sig_atomic_t *stop)
300 if (timeoutp && *timeoutp == -1)
301 timeoutp = NULL;
305 if (timeoutp != NULL)
306 ptimeout_deadline_ms(&timeout, *timeoutp);
309 for (; timeoutp == NULL || *timeoutp >= 0;) {
323 if (timeoutp)
324 *timeoutp = ptimeout_get_ms(&timeout);
339 * Wait up to *timeoutp milliseconds for fd to be readable. Updates
340 * *timeoutp with time remaining.
344 waitrfd(int fd, int *timeoutp, volatile sig_atomic_t *stop) {
345 return waitfd(fd, timeoutp, POLLIN, stop);
350 * *timeoutp milliseconds for the connection to complete. If the timeout is
357 socklen_t addrlen, int *timeoutp)
363 if (timeoutp == NULL || *timeoutp <= 0)
379 if (waitfd(sockfd, timeoutp, POLLIN | POLLOUT, NULL) == -1)