Home
last modified time | relevance | path

Searched refs:fd_count (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/include/
Dpoll.h53 int poll(struct pollfd* fds, nfds_t fd_count, int timeout) __overloadable
55 __bos(fds) < sizeof(*fds) * fd_count,
60 int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, in poll() argument
65 return __call_bypassing_fortify(poll)(fds, fd_count, timeout); in poll()
68 return __poll_chk(fds, fd_count, timeout, bos_fds); in poll()
72 int ppoll(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout,
75 __bos(fds) < sizeof(*fds) * fd_count,
80 int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, in ppoll() argument
85 return __call_bypassing_fortify(ppoll)(fds, fd_count, timeout, mask); in ppoll()
88 return __ppoll_chk(fds, fd_count, timeout, mask, bos_fds); in ppoll()
[all …]
/bionic/libc/bionic/
Dpoll.cpp40 int poll(pollfd* fds, nfds_t fd_count, int ms) __overloadable { in poll() argument
47 return __ppoll(fds, fd_count, ts_ptr, NULL, 0); in poll()
50 int ppoll(pollfd* fds, nfds_t fd_count, const timespec* ts, const sigset_t* ss) __overloadable { in ppoll() argument
65 return __ppoll(fds, fd_count, mutable_ts_ptr, kernel_ss_ptr, sizeof(kernel_ss)); in ppoll()
68 int select(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, timeval* tv) { in select() argument
78 int result = __pselect6(fd_count, read_fds, write_fds, error_fds, ts_ptr, NULL); in select()
85 int pselect(int fd_count, fd_set* read_fds, fd_set* write_fds, fd_set* error_fds, in pselect() argument
111 return __pselect6(fd_count, read_fds, write_fds, error_fds, mutable_ts_ptr, &extra_data); in pselect()
Dfortify.cpp167 int __poll_chk(pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) { in __poll_chk() argument
168 __check_pollfd_array("poll", fds_size, fd_count); in __poll_chk()
169 return poll(fds, fd_count, timeout); in __poll_chk()
172 int __ppoll_chk(pollfd* fds, nfds_t fd_count, const timespec* timeout, in __ppoll_chk() argument
174 __check_pollfd_array("ppoll", fds_size, fd_count); in __ppoll_chk()
175 return ppoll(fds, fd_count, timeout, mask); in __ppoll_chk()
/bionic/libc/private/
Dbionic_fortify.h60 static inline void __check_pollfd_array(const char* fn, size_t fds_size, nfds_t fd_count) { in __check_pollfd_array() argument
62 if (__predict_false(pollfd_array_length < fd_count)) { in __check_pollfd_array()
64 fn, pollfd_array_length, fd_count); in __check_pollfd_array()
/bionic/tests/
Dfortify_test.cpp974 nfds_t fd_count = atoi("2"); // suppress compiler optimizations in TEST_F() local
977 ASSERT_FORTIFY(poll(buf, fd_count, 0)); in TEST_F()
981 nfds_t fd_count = atoi("2"); // suppress compiler optimizations in TEST_F() local
986 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, NULL)); in TEST_F()