Lines Matching refs:timeout

39 static void sigwrap_InitTimeout(SIGWRAP_TIMEOUT *pDst, const struct timespec *timeout)  in sigwrap_InitTimeout()  argument
41 pDst->Timeout = *timeout; in sigwrap_InitTimeout()
43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout()
110 int sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout)
114 if (timeout == NULL)
117 sigwrap_InitTimeout(&To, timeout);
136 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in sigwrap_epoll_wait() argument
140 if (timeout != -1) in sigwrap_epoll_wait()
144 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_wait()
145 Timeout.tv_nsec = (timeout % 1000) * 1000000; // Convert msec to nsec in sigwrap_epoll_wait()
152 int Result = epoll_wait(epfd, events, maxevents, timeout); in sigwrap_epoll_wait()
160 if (timeout == -1) in sigwrap_epoll_wait()
166 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_epoll_wait()
171 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sig… in sigwrap_epoll_pwait() argument
175 if (timeout != -1) in sigwrap_epoll_pwait()
179 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_pwait()
180 Timeout.tv_nsec = (timeout % 1000) * 1000000; // Convert msec to nsec in sigwrap_epoll_pwait()
187 int Result = epoll_pwait(epfd, events, maxevents, timeout, sigmask); in sigwrap_epoll_pwait()
195 if (timeout == -1) in sigwrap_epoll_pwait()
201 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_epoll_pwait()
221 int sigwrap_sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout) in sigwrap_sigtimedwait() argument
225 sigwrap_InitTimeout(&To, timeout); in sigwrap_sigtimedwait()
317 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout) in sigwrap_poll() argument
321 if (timeout > 0) in sigwrap_poll()
325 Timeout.tv_sec = timeout / 1000; in sigwrap_poll()
326 Timeout.tv_nsec = (timeout % 1000) * 1000000; in sigwrap_poll()
333 int Result = poll(fds, nfds, timeout); in sigwrap_poll()
341 if (timeout < 0) // Specifying a negative value in timeout means an infinite/no timeout. in sigwrap_poll()
343 else if (timeout == 0) in sigwrap_poll()
349 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_poll()
383 …rap_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) in sigwrap_select() argument
387 int Result = select(nfds, readfds, writefds, exceptfds, timeout); in sigwrap_select()
398 …ect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, in sigwrap_pselect() argument
403 if (timeout != NULL) in sigwrap_pselect()
405 sigwrap_InitTimeout(&To, timeout); in sigwrap_pselect()
406 timeout = &To.Timeout; in sigwrap_pselect()
411 int Result = pselect(nfds, readfds, writefds, exceptfds, timeout, sigmask); in sigwrap_pselect()
419 if (timeout == NULL) in sigwrap_pselect()