Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 9 of 9) sorted by relevance

/bionic/libc/include/
Dpoll.h53 int poll(struct pollfd* fds, nfds_t fd_count, int timeout) __overloadable
54 __enable_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE &&
55 __bos(fds) < sizeof(*fds) * fd_count,
60 int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, in poll()
62 size_t bos_fds = __bos(fds); in poll()
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,
74 __enable_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE &&
75 __bos(fds) < sizeof(*fds) * fd_count,
[all …]
/bionic/tests/
Dsys_select_test.cpp29 fd_set fds; in TEST() local
30 FD_ZERO(&fds); in TEST()
33 EXPECT_FALSE(FD_ISSET(i, &fds)); in TEST()
36 FD_SET(0, &fds); in TEST()
37 EXPECT_TRUE(FD_ISSET(0, &fds)); in TEST()
38 EXPECT_FALSE(FD_ISSET(1, &fds)); in TEST()
39 FD_SET(1, &fds); in TEST()
40 EXPECT_TRUE(FD_ISSET(0, &fds)); in TEST()
41 EXPECT_TRUE(FD_ISSET(1, &fds)); in TEST()
42 FD_CLR(0, &fds); in TEST()
[all …]
Dsys_epoll_test.cpp53 int fds[2]; in TEST() local
54 ASSERT_NE(-1, pipe(fds)); in TEST()
62 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev)); in TEST()
65 ASSERT_EQ(1, write(fds[1], "\n", 1)); in TEST()
72 close(fds[0]); in TEST()
73 close(fds[1]); in TEST()
Dutils.h170 int fds[2]; in Run() local
171 ASSERT_NE(pipe(fds), -1); in Run()
178 close(fds[0]); in Run()
179 dup2(fds[1], STDOUT_FILENO); in Run()
180 dup2(fds[1], STDERR_FILENO); in Run()
181 if (fds[1] != STDOUT_FILENO && fds[1] != STDERR_FILENO) close(fds[1]); in Run()
187 close(fds[1]); in Run()
191 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run()
194 close(fds[0]); in Run()
Dfortify_compilation_test.cpp219 pollfd fds[1]; in test_poll() local
223 poll(fds, 2, 0); in test_poll()
227 pollfd fds[1]; in test_ppoll() local
232 ppoll(fds, 2, &timeout, NULL); in test_ppoll()
Difaddrs_test.cpp293 std::vector<int> fds; in TEST() local
300 fds.push_back(fd); in TEST()
307 for (int fd : fds) close(fd); in TEST()
/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()
Dfortify.cpp167 int __poll_chk(pollfd* fds, nfds_t fd_count, int timeout, size_t fds_size) { in __poll_chk() argument
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
175 return ppoll(fds, fd_count, timeout, mask); in __ppoll_chk()
/bionic/libc/
DSECCOMP_WHITELIST.TXT96 int poll:poll(struct pollfd *fds, nfds_t nfds, int timeout) arm,x86,mips