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