Searched refs:stdout_fd (Results 1 – 4 of 4) sorted by relevance
/system/update_engine/common/ |
D | subprocess.cc | 127 record->stdout_fd, buf, base::size(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() 203 record->stdout_fd, in ExecFlags() 260 int stdout_fd = proc.GetPipe(STDOUT_FILENO); in SynchronousExecFlags() local 266 int rc = HANDLE_EINTR(read(stdout_fd, buffer.data(), buffer.size())); in SynchronousExecFlags()
|
D | subprocess.h | 128 int stdout_fd{-1};
|
/system/extras/simpleperf/app_api/cpp/ |
D | simpleperf.cpp | 300 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()
|
/system/extras/simpleperf/scripts/ |
D | test.py | 223 stdout_fd = subprocess.PIPE 227 stdout_fd = subprocess.DEVNULL 229 stdout_fd = open(os.devnull, 'w') 231 stdout_fd = None 233 subproc = subprocess.Popen(args, stdout=stdout_fd, 240 stdout_fd.close()
|