Home
last modified time | relevance | path

Searched refs:pipefds (Results 1 – 6 of 6) 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/perfetto/src/profiling/memory/
Dproc_utils_unittest.cc52 int pipefds[2]; in TEST() local
53 PERFETTO_CHECK(pipe(pipefds) == 0); in TEST()
58 close(pipefds[1]); in TEST()
61 read(pipefds[0], buf, sizeof(buf)); in TEST()
65 close(pipefds[0]); in TEST()
69 close(pipefds[1]); in TEST()
/external/libxkbcommon/xkbcommon/test/
Dx11comp.c42 int pipefds[2]; in main() local
68 ret = pipe(pipefds); in main()
71 ret = snprintf(displayfd, sizeof(displayfd), "%d", pipefds[1]); in main()
80 close(pipefds[1]); in main()
83 ret = read(pipefds[0], display + 1, sizeof(display) - 1); in main()
91 close(pipefds[0]); in main()
/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()
/external/u-boot/common/
Dcli_hush.c1539 int pipefds[2]; /* pipefds[0] is for reading */ local
1688 if (pipe(pipefds)<0) perror_msg_and_die("pipe");
1689 nextout = pipefds[1];
1692 pipefds[0] = -1;
1716 if (pipefds[0]!=-1) {
1717 close(pipefds[0]); /* opposite end of our output pipe */
1755 nextin = pipefds[0];