Home
last modified time | relevance | path

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

/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/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/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/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()