Home
last modified time | relevance | path

Searched refs:STDOUT_FILENO (Results 1 – 25 of 169) sorted by relevance

1234567

/external/vboot_reference/host/lib/
Dhost_signature.c193 close(c_to_p[STDOUT_FILENO]); in InvokeExternalSigner()
196 if (write(p_to_c[STDOUT_FILENO], inbuf, size) != size) { in InvokeExternalSigner()
200 close(p_to_c[STDOUT_FILENO]); /* Send EOF to child (signer process). */ in InvokeExternalSigner()
217 close (p_to_c[STDOUT_FILENO]); in InvokeExternalSigner()
230 if (STDOUT_FILENO != c_to_p[STDOUT_FILENO]) { in InvokeExternalSigner()
231 if (dup2(c_to_p[STDOUT_FILENO], STDOUT_FILENO) != STDOUT_FILENO) { in InvokeExternalSigner()
233 close(c_to_p[STDOUT_FILENO]); in InvokeExternalSigner()
/external/autotest/client/site_tests/security_Libcontainer/src/
Dlibcontainer_target_unittest.cc30 original_stdout_fd_.reset(dup(STDOUT_FILENO)); in ScopedCaptureStdout()
35 CHECK(dup2(pipe_fds[1], STDOUT_FILENO) != -1); in ScopedCaptureStdout()
40 CHECK(dup2(original_stdout_fd_.get(), STDOUT_FILENO) != -1); in ~ScopedCaptureStdout()
110 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F()
145 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F()
190 int stdio_fds[] = {STDOUT_FILENO, STDERR_FILENO}; in TEST_F()
/external/protobuf/src/google/protobuf/testing/
Dzcgunzip.cc50 #ifndef STDOUT_FILENO
51 #define STDOUT_FILENO 1 macro
74 int err = write(STDOUT_FILENO, inptr, inlen); in main()
Dzcgzip.cc49 #ifndef STDOUT_FILENO
50 #define STDOUT_FILENO 1 macro
61 FileOutputStream fout(STDOUT_FILENO); in main()
/external/selinux/policycoreutils/run_init/
Dopen_init_pty.c212 setfd_block(STDOUT_FILENO); in setfd_atexit()
260 if (tcgetattr(STDOUT_FILENO, &tty_attr) < 0) { in main()
266 if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &window_size) < 0) { in main()
304 setfd_nonblock(STDOUT_FILENO); in main()
341 FD_SET(STDOUT_FILENO, &writefds); in main()
366 if (FD_ISSET(STDOUT_FILENO, &writefds)) { in main()
370 ssize_t n = rb_write(&outbuf, STDOUT_FILENO); in main()
/external/curl/tests/libtest/
Dlib556.c31 #ifndef STDOUT_FILENO
32 #define STDOUT_FILENO 1 macro
91 if(!write(STDOUT_FILENO, buf, iolen)) in test()
/external/protobuf/src/google/protobuf/compiler/
Dplugin.cc44 #ifndef STDOUT_FILENO
45 #define STDOUT_FILENO 1 macro
164 _setmode(STDOUT_FILENO, _O_BINARY); in PluginMain()
178 if (!response.SerializeToFileDescriptor(STDOUT_FILENO)) { in PluginMain()
/external/libusb/tests/
Dtestlib.c35 #define STDOUT_FILENO 1 macro
44 #define STDOUT_FILENO 1 macro
85 IGNORE_RETVAL(dup2(ctx->old_stdout, STDOUT_FILENO)); in cleanup_test_output()
114 ctx->old_stdout = dup(STDOUT_FILENO); in setup_test_output()
135 if ((dup2(ctx->null_fd, STDOUT_FILENO) < 0) || in setup_test_output()
/external/python/cpython3/Lib/
Dpty.py16 STDOUT_FILENO = 1 variable
105 os.dup2(slave_fd, STDOUT_FILENO)
111 tmp_fd = os.open(os.ttyname(STDOUT_FILENO), os.O_RDWR)
142 os.write(STDOUT_FILENO, data)
/external/python/cpython2/Lib/
Dpty.py16 STDOUT_FILENO = 1 variable
116 os.dup2(slave_fd, STDOUT_FILENO)
122 tmp_fd = os.open(os.ttyname(STDOUT_FILENO), os.O_RDWR)
153 os.write(STDOUT_FILENO, data)
/external/openssh/
Dprogressmeter.c84 return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); in can_output()
225 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
282 atomicio(vwrite, STDOUT_FILENO, "\n", 1); in stop_progress_meter()
297 if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &winsize) != -1 && in setscreensize()
/external/curl/src/
Dtool_main.h35 #ifndef STDOUT_FILENO
36 # define STDOUT_FILENO fileno(stdout) macro
Dtool_main.c89 fd[0] == STDOUT_FILENO || in main_checkfds()
92 fd[1] == STDOUT_FILENO || in main_checkfds()
/external/squashfs-tools/squashfs-tools/
Dprogressbar.c60 if(isatty(STDOUT_FILENO)) in sigwinch_handler()
111 tty = isatty(STDOUT_FILENO); in progress_bar()
186 if(isatty(STDOUT_FILENO)) in progress_thrd()
/external/python/cpython2/Lib/test/
Dtest_pty.py218 self.orig_stdout_fileno = pty.STDOUT_FILENO
226 pty.STDOUT_FILENO = self.orig_stdout_fileno
247 pty.STDOUT_FILENO = mock_stdout_fd
276 pty.STDOUT_FILENO = mock_stdout_fd
/external/python/cpython3/Lib/test/
Dtest_pty.py219 self.orig_stdout_fileno = pty.STDOUT_FILENO
228 pty.STDOUT_FILENO = self.orig_stdout_fileno
259 pty.STDOUT_FILENO = mock_stdout_fd
287 pty.STDOUT_FILENO = mock_stdout_fd
/external/linux-kselftest/tools/testing/selftests/size/
Dget_size.c27 #define STDOUT_FILENO 1 macro
31 return write(STDOUT_FILENO, s, __builtin_strlen(s)); in print()
/external/gptfdisk/
Dsgdisk.cc41 int stdout = dup(STDOUT_FILENO); in android_dump()
43 dup2(silence, STDOUT_FILENO); in android_dump()
/external/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite02.c77 ret = write(STDOUT_FILENO, "get wrong signal\n", in sighandler()
80 ret = write(STDOUT_FILENO, "caught SIGXFSZ\n", in sighandler()
/external/libbrillo/brillo/
Dprocess_unittest.cc218 EXPECT_EQ(-1, process_.GetPipe(STDOUT_FILENO)); in TEST_F()
237 EXPECT_EQ(-1, process_.GetPipe(STDOUT_FILENO)); in TEST_F()
250 process_.RedirectUsingPipe(STDOUT_FILENO, false); in TEST_F()
251 EXPECT_EQ(-1, process_.GetPipe(STDOUT_FILENO)); in TEST_F()
253 int pipe_fd = process_.GetPipe(STDOUT_FILENO); in TEST_F()
/external/swiftshader/third_party/LLVM/lib/Support/
Draw_ostream.cpp49 #ifndef STDOUT_FILENO
50 # define STDOUT_FILENO 1 macro
434 FD = STDOUT_FILENO; in raw_fd_ostream()
477 if (fd == STDOUT_FILENO || fd == STDERR_FILENO) in raw_fd_ostream()
649 static raw_fd_ostream S(STDOUT_FILENO, true); in outs()
/external/ltp/lib/
Dtst_run_cmd.c67 close(STDOUT_FILENO); in tst_run_cmd_fds_()
68 dup2(stdout_fd, STDOUT_FILENO); in tst_run_cmd_fds_()
/external/libxml2/
DtestC14N.c14 #ifndef STDOUT_FILENO
18 #define STDOUT_FILENO fileno(stdout) macro
111 if (write(STDOUT_FILENO, result, ret) == -1) { in test_c14n()
/external/perfetto/src/traced/probes/ftrace/
Datrace_wrapper.cc70 if ((dup2(null_fd, STDOUT_FILENO) == -1)) { in ExecvAtrace()
86 if (i != STDIN_FILENO && i != STDERR_FILENO && i != STDOUT_FILENO) in ExecvAtrace()
/external/protobuf/conformance/
Dconformance_cpp.cc182 CheckedWrite(STDOUT_FILENO, &bytes, sizeof(uint32_t)); in DoTestIo()
183 CheckedWrite(STDOUT_FILENO, serialized_output.c_str(), bytes); in DoTestIo()

1234567