/external/tensorflow/tensorflow/core/platform/ |
D | stacktrace_handler.cc | 47 (void)write(STDERR_FILENO, begin_msg, strlen(begin_msg)); in SafePrintStackTrace() 55 backtrace_symbols_fd(trace, buffer_size, STDERR_FILENO); in SafePrintStackTrace() 58 (void)write(STDERR_FILENO, end_msg, strlen(end_msg)); in SafePrintStackTrace() 80 (void)write(STDERR_FILENO, buf, strlen(buf)); in StacktraceHandler() 90 (void)write(STDERR_FILENO, stacktrace.c_str(), stacktrace.length()); in StacktraceHandler() 118 (void)write(STDERR_FILENO, buf, strlen(buf)); in InstallStacktraceHandler() 125 (void)write(STDERR_FILENO, buf, strlen(buf)); in InstallStacktraceHandler()
|
D | stacktrace_handler_test.cc | 45 dup2(test_pipe[1], STDERR_FILENO); in TEST()
|
/external/libbrillo/brillo/ |
D | process_unittest.cc | 198 int saved_stderr = dup(STDERR_FILENO); in TEST_F() 199 close(STDERR_FILENO); in TEST_F() 201 dup2(saved_stderr, STDERR_FILENO); in TEST_F() 213 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F() 214 EXPECT_EQ(-1, process_.GetPipe(STDERR_FILENO)); in TEST_F() 216 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F() 227 int saved_stderr = dup(STDERR_FILENO); in TEST_F() 228 close(STDERR_FILENO); in TEST_F() 233 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F() 235 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F() [all …]
|
D | process.cc | 185 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) { in CloseUnusedFileDescriptors() 279 HANDLE_EINTR(dup2(output_handle, STDERR_FILENO)); in Start() 282 if (output_handle != STDOUT_FILENO && output_handle != STDERR_FILENO) { in Start()
|
/external/google-breakpad/src/client/linux/microdump_writer/ |
D | microdump_writer_unittest.cc | 97 int save_err = dup(STDERR_FILENO); in TEST() 99 ASSERT_NE(-1, dup2(err_fd, STDERR_FILENO)); in TEST() 104 dup2(save_err, STDERR_FILENO); in TEST()
|
/external/autotest/client/site_tests/security_Libcontainer/src/ |
D | libcontainer_target_unittest.cc | 110 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F() 145 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F() 190 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F() 232 minijail_log_to_fd(STDERR_FILENO, SYSLOG_LOG_INFO); in main()
|
/external/curl/src/ |
D | tool_main.h | 39 #ifndef STDERR_FILENO 40 # define STDERR_FILENO fileno(stderr) macro
|
D | tool_main.c | 90 fd[0] == STDERR_FILENO || in main_checkfds() 93 fd[1] == STDERR_FILENO) in main_checkfds()
|
/external/honggfuzz/libhfcommon/ |
D | log.c | 51 static int log_fd = STDERR_FILENO; 59 log_fd = STDERR_FILENO; in log_init() 74 log_fd = STDERR_FILENO; in logInitLogFile()
|
/external/libusb/tests/ |
D | testlib.c | 45 #define STDERR_FILENO 2 macro 89 IGNORE_RETVAL(dup2(ctx->old_stderr, STDERR_FILENO)); in cleanup_test_output() 120 ctx->old_stderr = dup(STDERR_FILENO); in setup_test_output() 136 (dup2(ctx->null_fd, STDERR_FILENO) < 0)) { in setup_test_output()
|
/external/perfetto/src/base/ |
D | debug_crash_stack_trace.cc | 69 perfetto::base::WriteAll(STDERR_FILENO, str, sizeof(str)); in Print() 77 perfetto::base::WriteAll(STDERR_FILENO, &c, 1); in PrintHex() 201 perfetto::base::WriteAll(STDERR_FILENO, sym.sym_name, in SignalHandler() 209 perfetto::base::WriteAll(STDERR_FILENO, sym.file_name, in SignalHandler()
|
/external/python/cpython3/Lib/ |
D | pty.py | 17 STDERR_FILENO = 2 variable 106 os.dup2(slave_fd, STDERR_FILENO) 107 if (slave_fd > STDERR_FILENO):
|
/external/python/cpython2/Lib/ |
D | pty.py | 17 STDERR_FILENO = 2 variable 117 os.dup2(slave_fd, STDERR_FILENO) 118 if (slave_fd > STDERR_FILENO):
|
/external/curl/tests/libtest/ |
D | lib556.c | 34 #ifndef STDERR_FILENO 35 #define STDERR_FILENO 2 macro
|
/external/ltp/lib/ |
D | tst_run_cmd.c | 72 close(STDERR_FILENO); in tst_run_cmd_fds_() 73 dup2(stderr_fd, STDERR_FILENO); in tst_run_cmd_fds_()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | atrace_wrapper.cc | 57 if ((dup2(*err_pipe.wr, STDERR_FILENO) == -1)) { in ExecvAtrace() 86 if (i != STDIN_FILENO && i != STDERR_FILENO && i != STDOUT_FILENO) in ExecvAtrace()
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | raw_ostream.cpp | 52 #ifndef STDERR_FILENO 53 # define STDERR_FILENO 2 macro 477 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) in raw_fd_ostream() 657 static raw_fd_ostream S(STDERR_FILENO, false, true); in errs()
|
/external/linux-kselftest/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 36 STDERR_FILENO}[i])) in terminal_set_stdfds() 56 if (fd > STDERR_FILENO) in login_pty()
|
/external/minijail/ |
D | testrunner.cc | 22 init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO); in SetUp()
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | closed-fds.cc | 22 close(STDERR_FILENO); in main()
|
/external/openssh/openbsd-compat/ |
D | daemon.c | 74 (void)dup2(fd, STDERR_FILENO); in daemon()
|
/external/jemalloc/include/jemalloc/internal/ |
D | jemalloc_internal_decls.h | 55 # define STDERR_FILENO 2 macro
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | jemalloc_internal_decls.h | 73 # define STDERR_FILENO 2 macro
|
/external/libcxx/test/std/numerics/rand/rand.device/ |
D | ctor.pass.cpp | 98 ec = close(STDERR_FILENO); in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | raw_ostream.cpp | 57 #ifndef STDERR_FILENO 58 # define STDERR_FILENO 2 macro 567 if (FD <= STDERR_FILENO) in raw_fd_ostream() 788 static raw_fd_ostream S(STDERR_FILENO, false, true); in errs()
|