Home
last modified time | relevance | path

Searched refs:stderr_fd (Results 1 – 12 of 12) sorted by relevance

/external/ltp/lib/
Dtst_run_cmd.c37 int stderr_fd, in tst_run_cmd_fds_() argument
71 if (stderr_fd != -1) { in tst_run_cmd_fds_()
73 dup2(stderr_fd, STDERR_FILENO); in tst_run_cmd_fds_()
117 int stderr_fd = -1; in tst_run_cmd_() local
131 stderr_fd = open(stderr_path, in tst_run_cmd_()
134 if (stderr_fd == -1) in tst_run_cmd_()
140 rc = tst_run_cmd_fds(cleanup_fn, argv, stdout_fd, stderr_fd, in tst_run_cmd_()
148 if ((stderr_fd != -1) && (close(stderr_fd) == -1)) in tst_run_cmd_()
/external/ltp/include/
Dtst_cmd.h37 int stderr_fd,
58 int stderr_fd, in tst_run_cmd_fds() argument
62 stdout_fd, stderr_fd, pass_exit_val); in tst_run_cmd_fds()
77 int stderr_fd, in tst_run_cmd_fds() argument
81 stdout_fd, stderr_fd, pass_exit_val); in tst_run_cmd_fds()
/external/ltp/testcases/lib/
Dtst_rod.c21 int stderr_fd = 0; in main() local
110 int stderr_fd = dup(2); in main() local
112 if (stderr_fd < 0) { in main()
128 WRITE_STRING(stderr_fd, "Failed to dup2 stderr\n"); in main()
139 if (stderr_fd) { in main()
140 WRITE_STRING(stderr_fd, "Failed to popen /bin/sh\n"); in main()
/external/python/cpython3/Lib/test/libregrtest/
Dsetup.py18 stderr_fd = sys.__stderr__.fileno()
24 stderr_fd = None
27 faulthandler.enable(all_threads=True, file=stderr_fd)
36 faulthandler.register(signum, chain=True, file=stderr_fd)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc334 fd_t stdin_fd, fd_t stdout_fd, fd_t stderr_fd) { in StartSubprocess() argument
342 if (stderr_fd != kInvalidFd) { in StartSubprocess()
343 internal_close(stderr_fd); in StartSubprocess()
369 if (stderr_fd != kInvalidFd) { in StartSubprocess()
371 internal_dup2(stderr_fd, STDERR_FILENO); in StartSubprocess()
372 internal_close(stderr_fd); in StartSubprocess()
Dsanitizer_win.cc868 fd_t stdin_fd, fd_t stdout_fd, fd_t stderr_fd) { in StartSubprocess() argument
Dsanitizer_common.h296 fd_t stderr_fd = kInvalidFd);
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cpp426 fd_t stderr_fd) { in StartSubprocess() argument
434 if (stderr_fd != kInvalidFd) { in StartSubprocess()
435 internal_close(stderr_fd); in StartSubprocess()
461 if (stderr_fd != kInvalidFd) { in StartSubprocess()
463 internal_dup2(stderr_fd, STDERR_FILENO); in StartSubprocess()
464 internal_close(stderr_fd); in StartSubprocess()
Dsanitizer_file.h92 fd_t stdout_fd = kInvalidFd, fd_t stderr_fd = kInvalidFd);
Dsanitizer_win.cpp1087 fd_t stderr_fd) { in StartSubprocess() argument
/external/bcc/tests/python/
Dtest_clang.py17 stderr_fd = sys.stderr.fileno()
18 with os.fdopen(os.dup(stderr_fd), 'wb') as copied, os.fdopen(to, 'w') as to:
20 os.dup2(to.fileno(), stderr_fd)
25 os.dup2(copied.fileno(), stderr_fd)
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/
DMachProcess.mm2433 int stderr_fd = proc->GetStderrFileDescriptor();
2434 if (stdout_fd == stderr_fd)
2435 stderr_fd = -1;
2437 while (stdout_fd >= 0 || stderr_fd >= 0) {
2444 if (stderr_fd >= 0)
2445 FD_SET(stderr_fd, &read_fds);
2446 int nfds = std::max<int>(stdout_fd, stderr_fd) + 1;
2503 if (stderr_fd >= 0 && FD_ISSET(stderr_fd, &read_fds)) {
2505 bytes_read = ::read(stderr_fd, s, sizeof(s) - 1);
2509 "read (stderr_fd, ) => %zd errno: %d (%s)",
[all …]