Home
last modified time | relevance | path

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

1234

/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/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/curl/src/
Dtool_main.h39 #ifndef STDERR_FILENO
40 # define STDERR_FILENO fileno(stderr) macro
Dtool_main.c80 fd[0] == STDERR_FILENO || in main_checkfds()
83 fd[1] == STDERR_FILENO) in main_checkfds()
/external/bison/lib/
Dspawn-pipe.c159 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()
Ddup-safer.c33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); in dup_safer()
Ddup-safer-flag.c37 STDERR_FILENO + 1); in dup_safer_flag()
Dfd-safer.c39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer()
Dfd-safer-flag.c42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer_flag()
Dfopen-safer.c39 if (0 <= fd && fd <= STDERR_FILENO) in fopen_safer()
/external/libchrome/sandbox/linux/services/
Dnamespace_sandbox_unittest.cc56 std::make_pair(STDERR_FILENO, STDERR_FILENO), in TestProcWithOptions()
128 std::make_pair(STDERR_FILENO, STDERR_FILENO), in MULTIPROCESS_TEST_MAIN()
/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/curl/tests/libtest/
Dlib556.c34 #ifndef STDERR_FILENO
35 #define STDERR_FILENO 2 macro
/external/ltp/lib/
Dtst_run_cmd.c70 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/
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/compiler-rt/test/asan/TestCases/Posix/
Dclosed-fds.cc22 close(STDERR_FILENO); in main()
/external/openssh/openbsd-compat/
Ddaemon.c74 (void)dup2(fd, STDERR_FILENO); in daemon()
/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.cpp90 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/gptfdisk/
Dsgdisk.cc44 dup2(silence, STDERR_FILENO); in android_dump()
/external/libchrome/base/process/
Dlaunch_posix.cc238 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/
Dsandbox-capsicum.c93 if (cap_rights_limit(STDERR_FILENO, &rights) < 0 && errno != ENOSYS) in ssh_sandbox_child()

1234