Home
last modified time | relevance | path

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

/system/libbase/include/android-base/
Dunique_fd.h186 int pipefd[2]; variable
189 if (pipe2(pipefd, flags) != 0) {
196 if (pipe(pipefd) != 0) {
201 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) {
202 close(pipefd[0]);
203 close(pipefd[1]);
208 if (fcntl(pipefd[0], F_SETFL, O_NONBLOCK) != 0 || fcntl(pipefd[1], F_SETFL, O_NONBLOCK) != 0) {
209 close(pipefd[0]);
210 close(pipefd[1]);
216 read->reset(pipefd[0]);
[all …]
/system/libprocinfo/
Dprocess_test.cpp93 int pipefd[2]; in TEST() local
94 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); in TEST()
99 close(pipefd[1]); in TEST()
101 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1)); in TEST()
133 int pipefd[2]; in TEST() local
134 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); in TEST()
142 close(pipefd[1]); in TEST()
144 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1)); in TEST()
/system/bt/service/
Dgatt_server_old.cc123 int pipefd[kPipeNumEnds]; member
284 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], in RequestWriteCallback()
325 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], uuid.data(), in RequestExecWriteCallback()
496 int status = pipe(pipefd); in Initialize()
520 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals()
523 if (pipefd[0] != INVALID_FD) close(pipefd[0]); in ~ServerInternals()
524 if (pipefd[1] != INVALID_FD) close(pipefd[1]); in ~ServerInternals()
564 *gatt_pipe = internal_->pipefd[kPipeReadEnd]; in Initialize()
/system/testing/gtest_extras/
DIsolate.cpp198 int pipefd[2]; in Pipe() local
201 if (pipe2(pipefd, O_CLOEXEC) != 0) { in Pipe()
205 if (pipe(pipefd) != 0) { in Pipe()
208 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC)) { in Pipe()
209 close(pipefd[0]); in Pipe()
210 close(pipefd[1]); in Pipe()
215 *read_fd = pipefd[0]; in Pipe()
216 *write_fd = pipefd[1]; in Pipe()
/system/extras/simpleperf/
Dcmd_record_test.cpp440 int pipefd[2]; in TEST() local
441 ASSERT_EQ(0, pipe(pipefd)); in TEST()
442 int read_fd = pipefd[0]; in TEST()
443 int write_fd = pipefd[1]; in TEST()
485 int pipefd[2]; in TEST() local
486 ASSERT_EQ(0, pipe(pipefd)); in TEST()
487 int read_fd = pipefd[0]; in TEST()
488 int write_fd = pipefd[1]; in TEST()