Home
last modified time | relevance | path

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

123456

/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/valgrind/drd/tests/
Dpth_detached_sem.c28 write(STDOUT_FILENO, ".", 1); in thread_func1()
36 write(STDOUT_FILENO, ".", 1); in thread_func2()
84 write(STDOUT_FILENO, "\n", 1); in main()
Dpth_detached.c24 write(STDOUT_FILENO, ".", 1); in thread_func1()
32 write(STDOUT_FILENO, ".", 1); in thread_func2()
82 write(STDOUT_FILENO, "\n", 1); in main()
Dlinuxthreads_det.c18 write(STDOUT_FILENO, "NPTL or non-Linux POSIX threads implementation detected.\n", 57); in thread_func()
22 write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55); in thread_func()
Dpth_barrier_thr_cr.c20 write(STDOUT_FILENO, ".", 1); in thread()
54 write(STDOUT_FILENO, "\n", 1); in main()
/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/curl/src/
Dtool_main.h35 #ifndef STDOUT_FILENO
36 # define STDOUT_FILENO fileno(stdout) macro
/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.py204 self.orig_stdout_fileno = pty.STDOUT_FILENO
212 pty.STDOUT_FILENO = self.orig_stdout_fileno
233 pty.STDOUT_FILENO = mock_stdout_fd
262 pty.STDOUT_FILENO = mock_stdout_fd
/external/python/cpython3/Lib/test/
Dtest_pty.py206 self.orig_stdout_fileno = pty.STDOUT_FILENO
215 pty.STDOUT_FILENO = self.orig_stdout_fileno
246 pty.STDOUT_FILENO = mock_stdout_fd
274 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/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/ltp/testcases/kernel/syscalls/pwrite/
Dpwrite02.c102 ret = write(STDOUT_FILENO, "get wrong signal\n", in sighandler()
105 ret = write(STDOUT_FILENO, "caught SIGXFSZ\n", in sighandler()
/external/libbrillo/brillo/
Dprocess_unittest.cc208 EXPECT_EQ(-1, process_.GetPipe(STDOUT_FILENO)); in TEST_F()
231 process_.RedirectUsingPipe(STDOUT_FILENO, false); in TEST_F()
232 EXPECT_EQ(-1, process_.GetPipe(STDOUT_FILENO)); in TEST_F()
234 int pipe_fd = process_.GetPipe(STDOUT_FILENO); in TEST_F()

123456