Searched defs:fd_count (Results 1 - 4 of 4) sorted by relevance

/bionic/libc/private/
H A Dbionic_fortify.h62 static inline void __check_pollfd_array(const char* fn, size_t fds_size, nfds_t fd_count) { argument
64 if (__predict_false(pollfd_array_length < fd_count)) {
66 fn, pollfd_array_length, fd_count);
/bionic/libc/bionic/
H A Dpoll.cpp40 int poll(pollfd* fds, nfds_t fd_count, int ms) { argument
47 return __ppoll(fds, fd_count, ts_ptr, nullptr, 0);
50 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) { argument
59 return ppoll64(fds, fd_count, ts, ss_ptr);
62 int ppoll64(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset64_t* ss) { argument
78 return __ppoll(fds, fd_count, mutable_ts_ptr, mutable_ss_ptr, sizeof(*mutable_ss_ptr));
81 int select(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, timeval* tv) { argument
91 int result = __pselect6(fd_count, read_fds, write_fds, error_fds, ts_ptr, nullptr);
98 int pselect(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, argument
108 return pselect64(fd_count, read_fd
111 pselect64(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, const timespec* ts, const sigset64_t* ss) argument
[all...]
H A Dfortify.cpp161 int __poll_chk(pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) { argument
162 __check_pollfd_array("poll", fds_size, fd_count);
163 return poll(fds, fd_count, timeout);
166 int __ppoll_chk(pollfd* fds, nfds_t fd_count, const timespec* timeout, argument
168 __check_pollfd_array("ppoll", fds_size, fd_count);
169 return ppoll(fds, fd_count, timeout, mask);
/bionic/tests/
H A Dfortify_test.cpp986 nfds_t fd_count = atoi("2"); // suppress compiler optimizations local
989 ASSERT_FORTIFY(poll(buf, fd_count, 0));
993 nfds_t fd_count = atoi("2"); // suppress compiler optimizations local
998 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, NULL));

Completed in 217 milliseconds