Home
last modified time | relevance | path

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

/system/libbase/include/android-base/
Dunique_fd.h196 int pipefd[2]; variable
199 if (pipe2(pipefd, flags) != 0) {
206 if (pipe(pipefd) != 0) {
211 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) {
212 close(pipefd[0]);
213 close(pipefd[1]);
218 if (fcntl(pipefd[0], F_SETFL, O_NONBLOCK) != 0 || fcntl(pipefd[1], F_SETFL, O_NONBLOCK) != 0) {
219 close(pipefd[0]);
220 close(pipefd[1]);
226 read->reset(pipefd[0]);
[all …]
/system/libprocinfo/
Dprocess_test.cpp94 int pipefd[2]; in TEST() local
95 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); in TEST()
100 close(pipefd[1]); in TEST()
102 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1)); in TEST()
137 int pipefd[2]; in TEST() local
138 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); in TEST()
146 close(pipefd[1]); in TEST()
148 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1)); in TEST()
/system/testing/gtest_extras/gtest_isolated/
DIsolate.cpp201 int pipefd[2]; in Pipe() local
204 if (pipe2(pipefd, O_CLOEXEC) != 0) { in Pipe()
208 if (pipe(pipefd) != 0) { in Pipe()
211 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC)) { in Pipe()
212 close(pipefd[0]); in Pipe()
213 close(pipefd[1]); in Pipe()
218 *read_fd = pipefd[0]; in Pipe()
219 *write_fd = pipefd[1]; in Pipe()
/system/extras/simpleperf/
Dcmd_record_test.cpp488 int pipefd[2]; in TEST() local
489 ASSERT_EQ(0, pipe(pipefd)); in TEST()
490 int read_fd = pipefd[0]; in TEST()
491 int write_fd = pipefd[1]; in TEST()
536 int pipefd[2]; in TEST() local
537 ASSERT_EQ(0, pipe(pipefd)); in TEST()
538 int read_fd = pipefd[0]; in TEST()
539 int write_fd = pipefd[1]; in TEST()