Home
last modified time | relevance | path

Searched refs:STDERR_FILENO (Results 1 – 25 of 77) sorted by relevance

1234

/external/tensorflow/tensorflow/core/platform/
Dstacktrace_handler.cc47 (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()
Dstacktrace_handler_test.cc45 dup2(test_pipe[1], STDERR_FILENO); in TEST()
/external/libbrillo/brillo/
Dprocess_unittest.cc187 int saved_stderr = dup(STDERR_FILENO); in TEST_F()
188 close(STDERR_FILENO); in TEST_F()
190 dup2(saved_stderr, STDERR_FILENO); in TEST_F()
203 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F()
204 EXPECT_EQ(-1, process_.GetPipe(STDERR_FILENO)); in TEST_F()
206 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F()
216 int saved_stderr = dup(STDERR_FILENO); in TEST_F()
217 close(STDERR_FILENO); in TEST_F()
220 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F()
223 dup2(saved_stderr, STDERR_FILENO); in TEST_F()
[all …]
Dprocess.cc193 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) { in CloseUnusedFileDescriptors()
270 HANDLE_EINTR(dup2(output_handle, STDERR_FILENO)); in Start()
273 if (output_handle != STDOUT_FILENO && output_handle != STDERR_FILENO) { in Start()
/external/honggfuzz/libcommon/
Dlog.c48 static int log_fd = STDERR_FILENO;
55 log_fd = fcntl(STDERR_FILENO, F_DUPFD_CLOEXEC, 0); in log_init()
57 log_fd = STDERR_FILENO; in log_init()
75 log_fd = STDERR_FILENO; in logInitLogFile()
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer_unittest.cc97 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/
Dlibcontainer_target_unittest.cc110 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/
Dtool_main.h39 #ifndef STDERR_FILENO
40 # define STDERR_FILENO fileno(stderr) macro
Dtool_main.c89 fd[0] == STDERR_FILENO || in main_checkfds()
92 fd[1] == STDERR_FILENO) in main_checkfds()
/external/libusb/tests/
Dtestlib.c45 #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/
Ddebug_crash_stack_trace.cc68 write(STDERR_FILENO, str, sizeof(str)); in Print()
76 write(STDERR_FILENO, &c, 1); in PrintHex()
196 write(STDERR_FILENO, sym.sym_name, strlen(sym.sym_name)); in SignalHandler()
203 write(STDERR_FILENO, sym.file_name, strlen(sym.file_name)); in SignalHandler()
/external/python/cpython3/Lib/
Dpty.py17 STDERR_FILENO = 2 variable
106 os.dup2(slave_fd, STDERR_FILENO)
107 if (slave_fd > STDERR_FILENO):
/external/python/cpython2/Lib/
Dpty.py17 STDERR_FILENO = 2 variable
117 os.dup2(slave_fd, STDERR_FILENO)
118 if (slave_fd > STDERR_FILENO):
/external/curl/tests/libtest/
Dlib556.c34 #ifndef STDERR_FILENO
35 #define STDERR_FILENO 2 macro
/external/ltp/lib/
Dtst_run_cmd.c72 close(STDERR_FILENO); in tst_run_cmd_fds_()
73 dup2(stderr_fd, STDERR_FILENO); in tst_run_cmd_fds_()
/external/swiftshader/third_party/LLVM/lib/Support/
Draw_ostream.cpp52 #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/minijail/
Dtestrunner.cc22 init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO); in SetUp()
Dparse_seccomp_policy.cc14 init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO); in main()
Dminijail0_cli.c726 init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO); in parse_args()
731 minijail_preserve_fd(j, STDERR_FILENO, STDERR_FILENO)) { in parse_args()
/external/compiler-rt/test/asan/TestCases/Posix/
Dclosed-fds.cc22 close(STDERR_FILENO); in main()
/external/jemalloc/include/jemalloc/internal/
Djemalloc_internal_decls.h55 # define STDERR_FILENO 2 macro
/external/syslinux/com32/include/
Dunistd.h38 #define STDERR_FILENO 2 macro
/external/libcxx/test/std/numerics/rand/rand.device/
Dctor.pass.cpp98 ec = close(STDERR_FILENO); in main()
/external/google-breakpad/src/tools/linux/dump_syms/
Ddump_syms.cc77 FILE* saved_stderr = fdopen(dup(STDERR_FILENO), "w"); in main()
/external/libchrome/base/process/
Dlaunch_posix.cc240 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
270 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
597 STDERR_FILENO, true)); in GetAppOutputInternal()

1234