Home
last modified time | relevance | path

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

/system/netd/server/
DTetherController.cpp148 int pipefd[2]; in startTethering() local
150 if (pipe(pipefd) < 0) { in startTethering()
161 close(pipefd[0]); in startTethering()
162 close(pipefd[1]); in startTethering()
167 close(pipefd[1]); in startTethering()
168 if (pipefd[0] != STDIN_FILENO) { in startTethering()
169 if (dup2(pipefd[0], STDIN_FILENO) != STDIN_FILENO) { in startTethering()
173 close(pipefd[0]); in startTethering()
211 close(pipefd[0]); in startTethering()
213 mDaemonFd = pipefd[1]; in startTethering()
/system/core/adb/
Dshell_service.cpp702 int pipefd[2]; in ReportError() local
703 if (pipe(pipefd) != 0) { in ReportError()
712 WriteFdExactly(pipefd[1], &id, sizeof(id)); in ReportError()
713 WriteFdExactly(pipefd[1], &length, sizeof(length)); in ReportError()
716 WriteFdExactly(pipefd[1], buf.data(), buf.length()); in ReportError()
722 WriteFdExactly(pipefd[1], &id, sizeof(id)); in ReportError()
723 WriteFdExactly(pipefd[1], &length, sizeof(length)); in ReportError()
724 WriteFdExactly(pipefd[1], &exit_code, sizeof(exit_code)); in ReportError()
727 adb_close(pipefd[1]); in ReportError()
728 return pipefd[0]; in ReportError()
/system/bt/service/
Dgatt_server_old.cc123 int pipefd[kPipeNumEnds]; member
281 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()
492 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()
563 *gatt_pipe = internal_->pipefd[kPipeReadEnd]; in Initialize()