Home
last modified time | relevance | path

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

/bionic/libc/include/
Dpoll.h55 int poll(struct pollfd* fds, nfds_t fd_count, int timeout) { in poll() argument
57 return __poll_chk(fds, fd_count, timeout, __bos(fds)); in poll()
60 if (!__builtin_constant_p(fd_count)) { in poll()
61 return __poll_chk(fds, fd_count, timeout, __bos(fds)); in poll()
62 } else if (__bos(fds) / sizeof(*fds) < fd_count) { in poll()
66 return __poll_real(fds, fd_count, timeout); in poll()
71 int ppoll(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask… in ppoll() argument
73 return __ppoll_chk(fds, fd_count, timeout, mask, __bos(fds)); in ppoll()
76 if (!__builtin_constant_p(fd_count)) { in ppoll()
77 return __ppoll_chk(fds, fd_count, timeout, mask, __bos(fds)); in ppoll()
[all …]
/bionic/libc/bionic/
D__poll_chk.cpp33 extern "C" int __poll_chk(struct pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) { in __poll_chk() argument
34 if (__predict_false(fds_size / sizeof(*fds) < fd_count)) { in __poll_chk()
37 return poll(fds, fd_count, timeout); in __poll_chk()
40 extern "C" int __ppoll_chk(struct pollfd* fds, nfds_t fd_count, const struct timespec* timeout, con… in __ppoll_chk() argument
41 if (__predict_false(fds_size / sizeof(*fds) < fd_count)) { in __ppoll_chk()
44 return ppoll(fds, fd_count, timeout, mask); in __ppoll_chk()
Dpoll.cpp40 int poll(pollfd* fds, nfds_t fd_count, int ms) { 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) { 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()
/bionic/tests/
Dfortify_test.cpp1022 nfds_t fd_count = atoi("2"); // suppress compiler optimizations in TEST_F() local
1025 ASSERT_FORTIFY(poll(buf, fd_count, 0)); in TEST_F()
1029 nfds_t fd_count = atoi("2"); // suppress compiler optimizations in TEST_F() local
1034 ASSERT_FORTIFY(ppoll(buf, fd_count, &timeout, NULL)); in TEST_F()