Searched refs:pipefd (Results 1 – 6 of 6) sorted by relevance
/system/core/base/include/android-base/ |
D | unique_fd.h | 102 int pipefd[2]; in Pipe() local 105 if (pipe2(pipefd, O_CLOEXEC) != 0) { in Pipe() 109 if (pipe(pipefd) != 0) { in Pipe() 113 if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) != 0 || fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) != 0) { in Pipe() 114 close(pipefd[0]); in Pipe() 115 close(pipefd[1]); in Pipe() 120 read->reset(pipefd[0]); in Pipe() 121 write->reset(pipefd[1]); in Pipe()
|
/system/core/libprocinfo/ |
D | process_test.cpp | 90 int pipefd[2]; in TEST() local 91 ASSERT_EQ(0, pipe2(pipefd, O_CLOEXEC)); in TEST() 96 close(pipefd[1]); in TEST() 98 TEMP_FAILURE_RETRY(read(pipefd[0], &buf, 1)); in TEST()
|
/system/core/adb/ |
D | shell_service.cpp | 699 int pipefd[2]; in ReportError() local 700 if (pipe(pipefd) != 0) { in ReportError() 709 WriteFdExactly(pipefd[1], &id, sizeof(id)); in ReportError() 710 WriteFdExactly(pipefd[1], &length, sizeof(length)); in ReportError() 713 WriteFdExactly(pipefd[1], buf.data(), buf.length()); in ReportError() 719 WriteFdExactly(pipefd[1], &id, sizeof(id)); in ReportError() 720 WriteFdExactly(pipefd[1], &length, sizeof(length)); in ReportError() 721 WriteFdExactly(pipefd[1], &exit_code, sizeof(exit_code)); in ReportError() 724 adb_close(pipefd[1]); in ReportError() 725 return pipefd[0]; in ReportError()
|
/system/netd/server/ |
D | TetherController.cpp | 180 int pipefd[2]; in startTethering() local 182 if (pipe(pipefd) < 0) { in startTethering() 193 close(pipefd[0]); in startTethering() 194 close(pipefd[1]); in startTethering() 199 close(pipefd[1]); in startTethering() 200 if (pipefd[0] != STDIN_FILENO) { in startTethering() 201 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) { in startTethering() 205 close(pipefd[0]); in startTethering() 246 close(pipefd[0]); in startTethering() 248 mDaemonFd = pipefd[1]; in startTethering()
|
/system/bt/service/ |
D | gatt_server_old.cc | 123 int pipefd[kPipeNumEnds]; member 282 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], in RequestWriteCallback() 323 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], uuid.data(), in RequestExecWriteCallback() 493 int status = pipe(pipefd); in Initialize() 517 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals() 520 if (pipefd[0] != INVALID_FD) close(pipefd[0]); in ~ServerInternals() 521 if (pipefd[1] != INVALID_FD) close(pipefd[1]); in ~ServerInternals() 560 *gatt_pipe = internal_->pipefd[kPipeReadEnd]; in Initialize()
|
/system/extras/simpleperf/ |
D | cmd_record_test.cpp | 462 int pipefd[2]; in TEST() local 463 ASSERT_EQ(0, pipe(pipefd)); in TEST() 464 int read_fd = pipefd[0]; in TEST() 465 int write_fd = pipefd[1]; in TEST()
|