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/core/libprocinfo/
Dprocess_test.cpp90 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/bt/service/
Dgatt_server_old.cc123 int pipefd[kPipeNumEnds]; member
283 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], in RequestWriteCallback()
324 OSI_NO_INTR(status = write(g_internal->pipefd[kPipeWriteEnd], uuid.data(), in RequestExecWriteCallback()
494 int status = pipe(pipefd); in Initialize()
518 pipefd{INVALID_FD, INVALID_FD} {} in ServerInternals()
521 if (pipefd[0] != INVALID_FD) close(pipefd[0]); in ~ServerInternals()
522 if (pipefd[1] != INVALID_FD) close(pipefd[1]); in ~ServerInternals()
561 *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.cpp553 int pipefd[2]; in TEST() local
554 ASSERT_EQ(0, pipe(pipefd)); in TEST()
555 int read_fd = pipefd[0]; in TEST()
556 int write_fd = pipefd[1]; in TEST()
597 int pipefd[2]; in TEST() local
598 ASSERT_EQ(0, pipe(pipefd)); in TEST()
599 int read_fd = pipefd[0]; in TEST()
600 int write_fd = pipefd[1]; in TEST()