Lines Matching refs:timeout
24 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument
29 if (timeout >= 0) { in sys_poll()
30 t.tv_sec = timeout / 1000; in sys_poll()
31 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll()
33 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll()
37 if (timeout >= 0) { in sys_poll()
38 t.tv_sec = timeout / 1000; in sys_poll()
39 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll()
41 return my_syscall5(__NR_ppoll_time64, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll()
43 return my_syscall3(__NR_poll, fds, nfds, timeout); in sys_poll()
45 return __nolibc_enosys(__func__, fds, nfds, timeout); in sys_poll()
50 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
52 return __sysret(sys_poll(fds, nfds, timeout)); in poll()