/aosp12/art/libartbase/base/ |
H A D | logging.cc | 156 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 D | sys_select_test.cpp | 87 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 D | utils.h | 243 dup2(fds[1], STDERR_FILENO); in Run() 244 if (fds[1] != STDOUT_FILENO && fds[1] != STDERR_FILENO) close(fds[1]); in Run()
|
H A D | fdtrack_test.cpp | 266 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 D | raw_ostream.cpp | 27 #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 D | subprocess.cc | 56 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 D | Perfetto.cpp | 88 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 D | pty.cpp | 190 dup2(fd, STDERR_FILENO); in login_tty() 191 if (fd > STDERR_FILENO) { in login_tty()
|
/aosp12/frameworks/native/cmds/dumpstate/ |
H A D | DumpstateUtil.cpp | 335 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 D | daemon.c | 59 (void)dup2(fd, STDERR_FILENO); in daemon()
|
/aosp12/frameworks/native/cmds/cmd/ |
H A D | main.cpp | 32 STDERR_FILENO, RunMode::kStandalone); in main()
|
/aosp12/bionic/benchmarks/tests/ |
H A D | interface_test.cpp | 88 close(STDERR_FILENO); in Exec() 90 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
|
/aosp12/frameworks/native/libs/binder/ |
H A D | Static.cpp | 69 TextOutput& aerr(*new FdTextOutput(STDERR_FILENO));
|
/aosp12/bionic/libc/upstream-netbsd/lib/libc/gen/ |
H A D | psignal.c | 78 (void)writev(STDERR_FILENO, iov, (int)((v - iov) + 1)); in __weak_alias()
|
/aosp12/frameworks/compile/mclinker/lib/Support/Windows/ |
H A D | FileSystem.inc | 27 #ifndef STDERR_FILENO 28 #define STDERR_FILENO 2
|
/aosp12/system/libbase/ |
H A D | test_utils.cpp | 62 if (std_fd_ == STDERR_FILENO) CHECK_EQ(0, setvbuf(stderr, nullptr, _IONBF, 0)); in Start()
|
/aosp12/bionic/libc/dns/resolv/ |
H A D | herror.c | 119 writev(STDERR_FILENO, iov, (v - iov) + 1); in herror()
|
/aosp12/system/libbase/include/android-base/ |
H A D | test_utils.h | 48 CapturedStderr() : CapturedStdFd(STDERR_FILENO) {} in CapturedStderr()
|
/aosp12/system/core/init/ |
H A D | firmware_handler.cpp | 132 close(STDERR_FILENO); in RunExternalHandler() 134 dup2(child_stderr.get(), STDERR_FILENO); in RunExternalHandler()
|
H A D | first_stage_console.cpp | 63 dup2(fd, STDERR_FILENO); in SetupConsole()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | PosixUtils.cpp | 97 if (dup2(stderr[1], STDERR_FILENO) == -1) { in ExecuteBinary()
|
/aosp12/packages/modules/adb/ |
H A D | adb_trace.cpp | 84 dup2(fd, STDERR_FILENO); in start_device_log()
|
/aosp12/packages/modules/adb/client/ |
H A D | main.cpp | 57 if (dup2(fd, STDERR_FILENO) == -1) { in setup_daemon_logging()
|
/aosp12/hardware/google/pixel/pwrstats_util/ |
H A D | pwrstats_util.cpp | 145 dup2(devnull, STDERR_FILENO); in daemon()
|
/aosp12/bionic/libc/malloc_debug/tests/ |
H A D | malloc_debug_system_tests.cpp | 80 close(STDERR_FILENO); in Exec() 82 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
|