Lines Matching refs:timeout
828 * int poll(struct pollfd *fds, int nfds, int timeout);
832 int sys_poll(struct pollfd *fds, int nfds, int timeout)
837 if (timeout >= 0) {
838 t.tv_sec = timeout / 1000;
839 t.tv_nsec = (timeout % 1000) * 1000000;
841 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
843 return my_syscall3(__NR_poll, fds, nfds, timeout);
850 int poll(struct pollfd *fds, int nfds, int timeout)
852 return __sysret(sys_poll(fds, nfds, timeout));
910 * fd_set *except_fds, struct timeval *timeout);
914 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
921 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout };
926 if (timeout) {
927 t.tv_sec = timeout->tv_sec;
928 t.tv_nsec = timeout->tv_usec * 1000;
930 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL);
935 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout);
942 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
944 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout));