Home
last modified time | relevance | path

Searched refs:pipefds (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/crypto/rand_extra/
Drand_test.cc60 int pipefds[2]; in ForkAndRand() local
61 if (pipe(pipefds) < 0) { in ForkAndRand()
71 close(pipefds[0]); in ForkAndRand()
72 close(pipefds[1]); in ForkAndRand()
78 close(pipefds[0]); in ForkAndRand()
81 ssize_t ret = write(pipefds[1], out.data(), out.size()); in ForkAndRand()
95 close(pipefds[1]); in ForkAndRand()
97 ssize_t ret = read(pipefds[0], out.data(), out.size()); in ForkAndRand()
107 close(pipefds[0]); in ForkAndRand()
112 close(pipefds[0]); in ForkAndRand()
/external/cronet/third_party/boringssl/src/crypto/rand_extra/
Drand_test.cc60 int pipefds[2]; in ForkAndRand() local
61 if (pipe(pipefds) < 0) { in ForkAndRand()
71 close(pipefds[0]); in ForkAndRand()
72 close(pipefds[1]); in ForkAndRand()
78 close(pipefds[0]); in ForkAndRand()
81 ssize_t ret = write(pipefds[1], out.data(), out.size()); in ForkAndRand()
95 close(pipefds[1]); in ForkAndRand()
97 ssize_t ret = read(pipefds[0], out.data(), out.size()); in ForkAndRand()
107 close(pipefds[0]); in ForkAndRand()
112 close(pipefds[0]); in ForkAndRand()
/external/rust/crates/quiche/deps/boringssl/src/crypto/rand_extra/
Drand_test.cc61 int pipefds[2]; in ForkAndRand() local
62 if (pipe(pipefds) < 0) { in ForkAndRand()
72 close(pipefds[0]); in ForkAndRand()
73 close(pipefds[1]); in ForkAndRand()
79 close(pipefds[0]); in ForkAndRand()
82 ssize_t ret = write(pipefds[1], out.data(), out.size()); in ForkAndRand()
96 close(pipefds[1]); in ForkAndRand()
98 ssize_t ret = read(pipefds[0], out.data(), out.size()); in ForkAndRand()
108 close(pipefds[0]); in ForkAndRand()
113 close(pipefds[0]); in ForkAndRand()
/external/libcups/notifier/
Dmailto.c491 int pipefds[2]; /* Pipe file descriptors */ in pipe_sendmail() local
535 if (pipe(pipefds)) in pipe_sendmail()
553 dup(pipefds[0]); in pipe_sendmail()
558 close(pipefds[0]); in pipe_sendmail()
559 close(pipefds[1]); in pipe_sendmail()
572 close(pipefds[0]); in pipe_sendmail()
573 close(pipefds[1]); in pipe_sendmail()
583 close(pipefds[0]); in pipe_sendmail()
585 if ((fp = cupsFileOpenFd(pipefds[1], "w")) == NULL) in pipe_sendmail()
590 close(pipefds[1]); in pipe_sendmail()
/external/perfetto/src/profiling/common/
Dproc_utils_unittest.cc106 int pipefds[2]; in TEST() local
107 PERFETTO_CHECK(pipe(pipefds) == 0); in TEST()
112 close(pipefds[1]); in TEST()
115 read(pipefds[0], buf, sizeof(buf)); in TEST()
119 close(pipefds[0]); in TEST()
123 close(pipefds[1]); in TEST()
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddemand_paging_test.c286 int *pipefds = NULL; in run_test() local
309 pipefds = malloc(sizeof(int) * nr_vcpus * 2); in run_test()
310 TEST_ASSERT(pipefds, "Unable to allocate memory for pipefd"); in run_test()
327 r = pipe2(&pipefds[vcpu_id * 2], in run_test()
332 pipefds[vcpu_id * 2], p->uffd_mode, in run_test()
354 r = write(pipefds[vcpu_id * 2 + 1], &c, 1); in run_test()
373 free(pipefds); in run_test()
/external/libbrillo/brillo/
Dprocess.cc150 int pipefds[2]; in PopulatePipeMap() local
151 if (pipe(pipefds) < 0) { in PopulatePipeMap()
158 i->second.parent_fd_ = pipefds[1]; in PopulatePipeMap()
159 i->second.child_fd_ = pipefds[0]; in PopulatePipeMap()
161 i->second.parent_fd_ = pipefds[0]; in PopulatePipeMap()
162 i->second.child_fd_ = pipefds[1]; in PopulatePipeMap()
/external/linux-kselftest/tools/testing/selftests/resctrl/
Dresctrlfs.c670 int pipefds[2]; in filter_dmesg() local
674 ret = pipe(pipefds); in filter_dmesg()
681 close(pipefds[0]); in filter_dmesg()
682 dup2(pipefds[1], STDOUT_FILENO); in filter_dmesg()
687 close(pipefds[1]); in filter_dmesg()
688 fp = fdopen(pipefds[0], "r"); in filter_dmesg()
/external/cronet/base/process/
Dlaunch_mac.cc125 int pipefds[2]; in GetAppOutputInternal() local
126 if (pipe(pipefds) != 0) { in GetAppOutputInternal()
130 read_fd.reset(pipefds[0]); in GetAppOutputInternal()
131 write_fd.reset(pipefds[1]); in GetAppOutputInternal()
/external/libchrome/base/message_loop/
Dmessage_loop_io_posix_unittest.cc37 int pipefds[2]; in SetUp() local
38 int err = pipe(pipefds); in SetUp()
40 read_fd_ = ScopedFD(pipefds[0]); in SetUp()
41 write_fd_ = ScopedFD(pipefds[1]); in SetUp()
/external/linux-kselftest/tools/testing/selftests/net/mptcp/
Dmptcp_sockopt.c710 int pipefds[2]; in main() local
716 e1 = pipe(pipefds); in main()
722 return server(pipefds[1]); in main()
724 close(pipefds[1]); in main()
727 e1 = read(pipefds[0], &e1, 4); in main()
732 return client(pipefds[0]); in main()
734 close(pipefds[0]); in main()
/external/cronet/base/message_loop/
Dfd_watch_controller_posix_unittest.cc42 int pipefds[2]; in SetUp() local
43 int err = pipe(pipefds); in SetUp()
45 read_fd_ = ScopedFD(pipefds[0]); in SetUp()
46 write_fd_ = ScopedFD(pipefds[1]); in SetUp()