Home
last modified time | relevance | path

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

/system/core/debuggerd/
Dutil.cpp93 int pipefds[2]; in Pipe() local
94 if (pipe(pipefds) != 0) { in Pipe()
97 read->reset(pipefds[0]); in Pipe()
98 write->reset(pipefds[1]); in Pipe()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp265 int pipefds[2]; in debuggerd_dispatch_pseudothread() local
266 if (pipe(pipefds) != 0) { in debuggerd_dispatch_pseudothread()
276 TEMP_FAILURE_RETRY(dup2(pipefds[1], STDOUT_FILENO)); in debuggerd_dispatch_pseudothread()
277 close(pipefds[0]); in debuggerd_dispatch_pseudothread()
278 close(pipefds[1]); in debuggerd_dispatch_pseudothread()
291 close(pipefds[1]); in debuggerd_dispatch_pseudothread()
293 ssize_t rc = TEMP_FAILURE_RETRY(read(pipefds[0], &buf, sizeof(buf))); in debuggerd_dispatch_pseudothread()
308 close(pipefds[0]); in debuggerd_dispatch_pseudothread()
/system/extras/perfprofd/
Dperfprofdcore.cc303 int pipefds[2]; in get_camera_active() local
304 if (pipe2(pipefds, O_CLOEXEC) != 0) { in get_camera_active()
311 close(pipefds[0]); in get_camera_active()
312 close(pipefds[1]); in get_camera_active()
316 close(pipefds[0]); in get_camera_active()
317 dup2(pipefds[1], fileno(stderr)); in get_camera_active()
318 dup2(pipefds[1], fileno(stdout)); in get_camera_active()
330 close(pipefds[1]); in get_camera_active()
336 bool result = android::base::ReadFdToString(pipefds[0], &dump_output); in get_camera_active()
337 close(pipefds[0]); in get_camera_active()