/external/libbrillo/brillo/ |
D | process_unittest.cc | 187 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 …]
|
D | process.cc | 193 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/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/curl/src/ |
D | tool_main.h | 39 #ifndef STDERR_FILENO 40 # define STDERR_FILENO fileno(stderr) macro
|
D | tool_main.c | 80 fd[0] == STDERR_FILENO || in main_checkfds() 83 fd[1] == STDERR_FILENO) in main_checkfds()
|
/external/bison/lib/ |
D | spawn-pipe.c | 159 orig_stderr = dup_safer_noinherit (STDERR_FILENO); in create_pipe() 170 && (nulloutfd == STDERR_FILENO in create_pipe() 171 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 in create_pipe() 220 undup_safer_noinherit (orig_stderr, STDERR_FILENO); in create_pipe() 308 STDERR_FILENO, in create_pipe()
|
D | dup-safer.c | 33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
|
D | dup-safer-flag.c | 37 STDERR_FILENO + 1); in dup_safer_flag()
|
D | fd-safer.c | 39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer()
|
D | fd-safer-flag.c | 42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer_flag()
|
D | fopen-safer.c | 39 if (0 <= fd && fd <= STDERR_FILENO) in fopen_safer()
|
/external/libchrome/sandbox/linux/services/ |
D | namespace_sandbox_unittest.cc | 56 std::make_pair(STDERR_FILENO, STDERR_FILENO), in TestProcWithOptions() 128 std::make_pair(STDERR_FILENO, STDERR_FILENO), in MULTIPROCESS_TEST_MAIN()
|
/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/curl/tests/libtest/ |
D | lib556.c | 34 #ifndef STDERR_FILENO 35 #define STDERR_FILENO 2 macro
|
/external/ltp/lib/ |
D | tst_run_cmd.c | 70 close(STDERR_FILENO); in tst_run_cmd_fds_() 71 dup2(stderr_fd, STDERR_FILENO); in tst_run_cmd_fds_()
|
/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/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/syslinux/com32/include/ |
D | unistd.h | 38 #define STDERR_FILENO 2 macro
|
/external/libcxx/test/std/numerics/rand/rand.device/ |
D | ctor.pass.cpp | 90 ec = close(STDERR_FILENO); in main()
|
/external/google-breakpad/src/tools/linux/dump_syms/ |
D | dump_syms.cc | 77 FILE* saved_stderr = fdopen(dup(STDERR_FILENO), "w"); in main()
|
/external/gptfdisk/ |
D | sgdisk.cc | 44 dup2(silence, STDERR_FILENO); in android_dump()
|
/external/libchrome/base/process/ |
D | launch_posix.cc | 238 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds() 268 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds() 583 STDERR_FILENO, true)); in GetAppOutputInternal()
|
/external/openssh/ |
D | sandbox-capsicum.c | 93 if (cap_rights_limit(STDERR_FILENO, &rights) < 0 && errno != ENOSYS) in ssh_sandbox_child()
|