Home
last modified time | relevance | path

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

123

/aosp12/art/libartbase/base/
H A Dlogging.cc156 TEMP_FAILURE_RETRY(write(STDERR_FILENO, program_name, strlen(program_name))); in LogLineLowStack()
157 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1)); in LogLineLowStack()
158 TEMP_FAILURE_RETRY(write(STDERR_FILENO, &kLogCharacters[static_cast<size_t>(log_severity)], 1)); in LogLineLowStack()
159 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1)); in LogLineLowStack()
161 TEMP_FAILURE_RETRY(write(STDERR_FILENO, file, strlen(file))); in LogLineLowStack()
164 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "] ", 2)); in LogLineLowStack()
165 TEMP_FAILURE_RETRY(write(STDERR_FILENO, message, strlen(message))); in LogLineLowStack()
166 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "\n", 1)); in LogLineLowStack()
/aosp12/bionic/tests/
H A Dsys_select_test.cpp87 FD_SET(STDERR_FILENO, &w); in TEST()
89 int max = STDERR_FILENO + 1; in TEST()
101 ASSERT_TRUE(FD_ISSET(STDERR_FILENO, &w)); in TEST()
142 FD_SET(STDERR_FILENO, &w); in TEST()
144 int max = STDERR_FILENO + 1; in TEST()
156 ASSERT_TRUE(FD_ISSET(STDERR_FILENO, &w)); in TEST()
H A Dutils.h243 dup2(fds[1], STDERR_FILENO); in Run()
244 if (fds[1] != STDOUT_FILENO && fds[1] != STDERR_FILENO) close(fds[1]); in Run()
H A Dfdtrack_test.cpp266 FDTRACK_TEST(dup2, dup2(STDOUT_FILENO, STDERR_FILENO));
267 FDTRACK_TEST(dup3, dup3(STDOUT_FILENO, STDERR_FILENO, 0));
/aosp12/frameworks/compile/mclinker/lib/Support/
H A Draw_ostream.cpp27 #ifndef STDERR_FILENO
28 #define STDERR_FILENO 2 macro
100 static raw_fd_ostream S(STDERR_FILENO, false, true); in errs()
/aosp12/system/update_engine/common/
H A Dsubprocess.cc56 if (HANDLE_EINTR(dup2(STDOUT_FILENO, STDERR_FILENO)) != STDERR_FILENO) in SetupChild()
246 if (!LaunchProcess(cmd, flags, {STDERR_FILENO}, &proc)) { in SynchronousExecFlags()
260 int stderr_fd = proc.GetPipe(STDERR_FILENO); in SynchronousExecFlags()
/aosp12/packages/modules/StatsD/statsd/src/external/
H A DPerfetto.cpp88 if (dup2(devNullFd, STDERR_FILENO) < 0) _exit(3); in CollectPerfettoTraceAndUploadToDropbox()
91 if (i != STDIN_FILENO && i != STDOUT_FILENO && i != STDERR_FILENO) close(i); in CollectPerfettoTraceAndUploadToDropbox()
/aosp12/bionic/libc/bionic/
H A Dpty.cpp190 dup2(fd, STDERR_FILENO); in login_tty()
191 if (fd > STDERR_FILENO) { in login_tty()
/aosp12/frameworks/native/cmds/dumpstate/
H A DDumpstateUtil.cpp335 TEMP_FAILURE_RETRY(dup2(devnull_fd, STDERR_FILENO)); in RunCommandToFd()
345 if (i != STDIN_FILENO && i!= STDOUT_FILENO && i != STDERR_FILENO) { in RunCommandToFd()
351 TEMP_FAILURE_RETRY(dup2(STDERR_FILENO, STDOUT_FILENO)); in RunCommandToFd()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/gen/
H A Ddaemon.c59 (void)dup2(fd, STDERR_FILENO); in daemon()
/aosp12/frameworks/native/cmds/cmd/
H A Dmain.cpp32 STDERR_FILENO, RunMode::kStandalone); in main()
/aosp12/bionic/benchmarks/tests/
H A Dinterface_test.cpp88 close(STDERR_FILENO); in Exec()
90 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
/aosp12/frameworks/native/libs/binder/
H A DStatic.cpp69 TextOutput& aerr(*new FdTextOutput(STDERR_FILENO));
/aosp12/bionic/libc/upstream-netbsd/lib/libc/gen/
H A Dpsignal.c78 (void)writev(STDERR_FILENO, iov, (int)((v - iov) + 1)); in __weak_alias()
/aosp12/frameworks/compile/mclinker/lib/Support/Windows/
H A DFileSystem.inc27 #ifndef STDERR_FILENO
28 #define STDERR_FILENO 2
/aosp12/system/libbase/
H A Dtest_utils.cpp62 if (std_fd_ == STDERR_FILENO) CHECK_EQ(0, setvbuf(stderr, nullptr, _IONBF, 0)); in Start()
/aosp12/bionic/libc/dns/resolv/
H A Dherror.c119 writev(STDERR_FILENO, iov, (v - iov) + 1); in herror()
/aosp12/system/libbase/include/android-base/
H A Dtest_utils.h48 CapturedStderr() : CapturedStdFd(STDERR_FILENO) {} in CapturedStderr()
/aosp12/system/core/init/
H A Dfirmware_handler.cpp132 close(STDERR_FILENO); in RunExternalHandler()
134 dup2(child_stderr.get(), STDERR_FILENO); in RunExternalHandler()
H A Dfirst_stage_console.cpp63 dup2(fd, STDERR_FILENO); in SetupConsole()
/aosp12/frameworks/base/libs/androidfw/
H A DPosixUtils.cpp97 if (dup2(stderr[1], STDERR_FILENO) == -1) { in ExecuteBinary()
/aosp12/packages/modules/adb/
H A Dadb_trace.cpp84 dup2(fd, STDERR_FILENO); in start_device_log()
/aosp12/packages/modules/adb/client/
H A Dmain.cpp57 if (dup2(fd, STDERR_FILENO) == -1) { in setup_daemon_logging()
/aosp12/hardware/google/pixel/pwrstats_util/
H A Dpwrstats_util.cpp145 dup2(devnull, STDERR_FILENO); in daemon()
/aosp12/bionic/libc/malloc_debug/tests/
H A Dmalloc_debug_system_tests.cpp80 close(STDERR_FILENO); in Exec()
82 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()

123