Lines Matching refs:nfds
839 * int poll(struct pollfd *fds, int nfds, int timeout);
843 int sys_poll(struct pollfd *fds, int nfds, int timeout)
852 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
854 return my_syscall3(__NR_poll, fds, nfds, timeout);
856 return __nolibc_enosys(__func__, fds, nfds, timeout);
861 int poll(struct pollfd *fds, int nfds, int timeout)
863 return __sysret(sys_poll(fds, nfds, timeout));
957 * int select(int nfds, fd_set *read_fds, fd_set *write_fds,
962 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
969 } arg = { .n = nfds, .r = rfds, .w = wfds, .e = efds, .t = timeout };
972 return my_syscall5(__NR__newselect, nfds, rfds, wfds, efds, timeout);
974 return my_syscall5(__NR_select, nfds, rfds, wfds, efds, timeout);
982 return my_syscall6(__NR_pselect6, nfds, rfds, wfds, efds, timeout ? &t : NULL, NULL);
984 return __nolibc_enosys(__func__, nfds, rfds, wfds, efds, timeout);
989 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout)
991 return __sysret(sys_select(nfds, rfds, wfds, efds, timeout));