Lines Matching refs:outFd
321 static void stdinout_raw_prologue(int inFd, int outFd, int& old_stdin_mode, int& old_stdout_mode) { in stdinout_raw_prologue() argument
333 if (outFd == STDOUT_FILENO) { in stdinout_raw_prologue()
342 static void stdinout_raw_epilogue(int inFd, int outFd, int old_stdin_mode, int old_stdout_mode) { in stdinout_raw_epilogue() argument
353 if (outFd == STDOUT_FILENO) { in stdinout_raw_epilogue()
361 void copy_to_file(int inFd, int outFd) { in copy_to_file() argument
368 D("copy_to_file(%d -> %d)", inFd, outFd); in copy_to_file()
370 stdinout_raw_prologue(inFd, outFd, old_stdin_mode, old_stdout_mode); in copy_to_file()
386 if (outFd == STDOUT_FILENO) { in copy_to_file()
390 adb_write(outFd, buf.data(), len); in copy_to_file()
395 stdinout_raw_epilogue(inFd, outFd, old_stdin_mode, old_stdout_mode); in copy_to_file()
1252 unique_fd outFd(adb_creat(filename, 0640)); in backup() local
1253 if (outFd < 0) { in backup()
1276 copy_to_file(fd.get(), outFd.get()); in backup()