Lines Matching defs:timeout
219 static int UserPoll(struct pollfd *fds, nfds_t nfds, int timeout)
227 ret = poll(fds, nfds, timeout);
1147 int SysSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
1165 if (timeout != NULL) {
1166 if (LOS_ArchCopyFromUser(&timeoutRet, timeout, sizeof(struct timeval)) != 0) {
1172 (exceptfds ? exceptfdsRet : NULL), (timeout ? (&timeoutRet) : NULL), UserPoll);
1552 int SysPoll(struct pollfd *fds, nfds_t nfds, int timeout)
1576 ret = poll(kfds, nfds, timeout);
2659 int timeout, retVal;
2667 timeout = tmo_p->tv_sec * OS_SYS_US_PER_MS + tmo_p->tv_nsec / OS_SYS_NS_PER_MS;
2668 if (timeout < 0) {
2672 timeout = -1;
2685 retVal = SysPoll(fds, nfds, timeout);
2692 const struct timespec *timeout, const long data[2])
2702 CHECK_ASPACE(timeout, sizeof(struct timeval));
2707 DUP_FROM_USER(timeout, sizeof(struct timeval));
2709 if (timeout != NULL) {
2710 ((struct timeval *)timeout)->tv_usec = timeout->tv_nsec / 1000; /* 1000, convert ns to us */
2717 FREE_DUP(timeout);
2723 ret = do_select(nfds, readfds, writefds, exceptfds, (struct timeval *)timeout, UserPoll);
2727 FREE_DUP(timeout);
2735 FREE_DUP(timeout);
2796 int SysEpollWait(int epfd, struct epoll_event *evs, int maxevents, int timeout)
2809 ret = epoll_wait(epfd, evs, maxevents, timeout);
2819 int SysEpollPwait(int epfd, struct epoll_event *evs, int maxevents, int timeout, const sigset_t *mask)
2844 ret = epoll_wait(epfd, evs, maxevents, timeout);