Home
last modified time | relevance | path

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

123

/external/libbrillo/brillo/
Dprocess_unittest.cc163 int saved_stderr = dup(STDERR_FILENO); in TEST_F()
164 close(STDERR_FILENO); in TEST_F()
166 dup2(saved_stderr, STDERR_FILENO); in TEST_F()
179 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F()
180 EXPECT_EQ(-1, process_.GetPipe(STDERR_FILENO)); in TEST_F()
182 int pipe_fd = process_.GetPipe(STDERR_FILENO); in TEST_F()
192 int saved_stderr = dup(STDERR_FILENO); in TEST_F()
193 close(STDERR_FILENO); in TEST_F()
196 process_.RedirectUsingPipe(STDERR_FILENO, false); in TEST_F()
199 dup2(saved_stderr, STDERR_FILENO); in TEST_F()
[all …]
Dprocess.cc191 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) { in CloseUnusedFileDescriptors()
260 HANDLE_EINTR(dup2(output_handle, STDERR_FILENO)); in Start()
263 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()
Dw32spawn.h56 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) in fd_safer_noinherit()
/external/libchrome/sandbox/linux/services/
Dnamespace_sandbox_unittest.cc57 std::make_pair(STDERR_FILENO, STDERR_FILENO), in TestProcWithOptions()
129 std::make_pair(STDERR_FILENO, STDERR_FILENO), in MULTIPROCESS_TEST_MAIN()
/external/curl/tests/libtest/
Dlib556.c34 #ifndef STDERR_FILENO
35 #define STDERR_FILENO 2 macro
/external/compiler-rt/test/asan/TestCases/Posix/
Dclosed-fds.cc22 close(STDERR_FILENO); in main()
/external/jemalloc/include/jemalloc/internal/
Djemalloc_internal_decls.h45 # define STDERR_FILENO 2 macro
/external/libweave/third_party/chromium/base/
Dlogging.cc242 write(STDERR_FILENO, message + bytes_written, in RawLog()
253 rv = HANDLE_EINTR(write(STDERR_FILENO, "\n", 1)); in RawLog()
/external/libcxx/test/std/numerics/rand/rand.device/
Dctor.pass.cpp55 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/bison/m4/
Dposix_spawn.m4114 #ifndef STDERR_FILENO
115 # define STDERR_FILENO 2
257 #ifndef STDERR_FILENO
258 # define STDERR_FILENO 2
/external/libchrome/base/process/
Dlaunch_posix.cc233 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
263 if (fd == STDIN_FILENO || fd == STDOUT_FILENO || fd == STDERR_FILENO) in CloseSuperfluousFds()
593 STDERR_FILENO, true)); in GetAppOutputInternal()
/external/llvm/lib/Support/
Draw_ostream.cpp55 #ifndef STDERR_FILENO
56 # define STDERR_FILENO 2 macro
717 static raw_fd_ostream S(STDERR_FILENO, false, true); in errs()
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc328 ignored = write(STDERR_FILENO, argv[0], strlen(argv[0]));
330 ignored = write(STDERR_FILENO, message, strlen(message));
/external/dbus/bus/
Dmain.c94 write (STDERR_FILENO, message, strlen (message)); in signal_handler()
116 write (STDERR_FILENO, message, strlen (message)); in signal_handler()

123