Home
last modified time | relevance | path

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

/system/update_engine/common/
Dsubprocess.cc125 record->stdout_fd, buf, arraysize(buf), &bytes_read, &eof); in OnStdoutReady()
194 record->stdout_fd = record->proc.GetPipe(STDOUT_FILENO); in ExecFlags()
196 int fd_flags = fcntl(record->stdout_fd, F_GETFL, 0) | O_NONBLOCK; in ExecFlags()
197 if (HANDLE_EINTR(fcntl(record->stdout_fd, F_SETFL, fd_flags)) < 0) { in ExecFlags()
199 << record->stdout_fd << "."; in ExecFlags()
204 record->stdout_fd, in ExecFlags()
Dsubprocess.h125 int stdout_fd{-1};
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp300 int stdout_fd[2]; in RunCmd() local
301 if (pipe(stdout_fd) != 0) { in RunCmd()
313 close(stdout_fd[0]); in RunCmd()
314 dup2(stdout_fd[1], 1); in RunCmd()
315 close(stdout_fd[1]); in RunCmd()
320 close(stdout_fd[1]); in RunCmd()
330 close(stdout_fd[0]); in RunCmd()
332 *stdout = ReadFile(fdopen(stdout_fd[0], "r")); in RunCmd()