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