Searched refs:pipefd (Results 1 - 19 of 19) sorted by relevance

/external/chromium_org/third_party/libusb/src/libusb/os/
H A Dpoll_posix.c28 int usbi_pipe(int pipefd[2]) argument
30 int ret = pipe(pipefd);
34 ret = fcntl(pipefd[1], F_GETFL);
39 ret = fcntl(pipefd[1], F_SETFL, ret | O_NONBLOCK);
48 usbi_close(pipefd[0]);
49 usbi_close(pipefd[1]);
H A Dpoll_posix.h9 int usbi_pipe(int pipefd[2]);
H A Dpoll_windows.h87 int usbi_pipe(int pipefd[2]);
/external/strace/test/
H A Dwait_must_be_interruptible.c53 int pipefd[2]; local
57 pipe(pipefd);
60 if (pipefd[1] != 1) {
61 dup2(pipefd[1], 1);
62 close(pipefd[1]);
67 if (pipefd[0] != 0) {
68 dup2(pipefd[0], 0);
69 close(pipefd[0]);
/external/chromium_org/net/test/spawned_test_server/
H A Dlocal_test_server_posix.cc117 int pipefd[2]; local
118 if (pipe(pipefd) != 0) {
124 child_fd_.reset(pipefd[0]);
125 base::ScopedFD write_closer(pipefd[1]);
127 map_write_fd.push_back(std::make_pair(pipefd[1], pipefd[1]));
129 python_command.AppendArg("--startup-pipe=" + base::IntToString(pipefd[1]));
/external/dnsmasq/src/
H A Dhelper.c56 int i, pipefd[2]; local
61 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1)
69 close(pipefd[0]); /* close reader side */
70 return pipefd[1];
106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd)
118 if (!read_write(pipefd[0], (unsigned char *)&data, sizeof(data), 1))
142 if (!read_write(pipefd[0], buf, data.clid_len, 1))
158 if (!read_write(pipefd[0], buf,
275 close(pipefd[
[all...]
H A Ddnsmasq.c78 int piperead, pipefd[2], err_pipe[2]; local
274 safe_pipe(pipefd, 1);
276 piperead = pipefd[0];
277 pipewrite = pipefd[1];
/external/qemu/util/
H A Doslib-posix.c195 int qemu_pipe(int pipefd[2]) argument
200 ret = pipe2(pipefd, O_CLOEXEC);
205 ret = pipe(pipefd);
207 qemu_set_cloexec(pipefd[0]);
208 qemu_set_cloexec(pipefd[1]);
/external/chromium_org/chrome/browser/
H A Dchrome_browser_main_posix.cc265 int pipefd[2]; local
266 int ret = pipe(pipefd);
271 g_shutdown_pipe_read_fd = pipefd[0];
272 g_shutdown_pipe_write_fd = pipefd[1];
/external/chromium_org/components/nacl/loader/
H A Dnacl_helper_linux.cc59 int pipefd[2]; local
60 PCHECK(0 == pipe(pipefd));
61 PCHECK(-1 != dup2(pipefd[0], file_descriptor));
62 PCHECK(0 == IGNORE_EINTR(close(pipefd[0])));
63 PCHECK(0 == IGNORE_EINTR(close(pipefd[1])));
/external/chromium_org/content/renderer/media/android/
H A Daudio_decoder_android.cc68 int pipefd[2]; local
70 if (pipe(pipefd))
73 read_fd_ = pipefd[0];
74 write_fd_ = pipefd[1];
/external/chromium_org/sandbox/linux/seccomp-bpf-helpers/
H A Dbaseline_policy_unittest.cc89 int pipefd[2]; local
90 int sys_ret = pipe(pipefd);
92 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1]));
/external/libpcap/
H A Dpcap-canusb-linux.c290 int pipefd[2]; local
292 if (pipe(pipefd) == -1)
295 this->rdpipe = pipefd[0];
296 this->wrpipe = pipefd[1];
/external/ppp/pppd/
H A Dmain.c798 int pipefd[2]; local
802 if (pipe(pipefd) == -1)
803 pipefd[0] = pipefd[1] = -1;
830 close(pipefd[1]);
831 complete_read(pipefd[0], numbuf, 1);
832 close(pipefd[0]);
1513 int fd, pipefd[2]; local
1524 if (pipe(pipefd) == -1)
1525 pipefd[
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dcode-reading.c333 int pipefd[2]; local
337 if (pipe(pipefd) < 0) {
341 close(pipefd[1]);
342 close(pipefd[0]);
/external/compiler-rt/lib/msan/tests/
H A Dmsan_test.cc718 int* pipefd = new int[2]; local
719 int res = pipe(pipefd);
721 EXPECT_NOT_POISONED(pipefd[0]);
722 EXPECT_NOT_POISONED(pipefd[1]);
723 close(pipefd[0]);
724 close(pipefd[1]);
728 int* pipefd = new int[2]; local
729 int res = pipe2(pipefd, O_NONBLOCK);
731 EXPECT_NOT_POISONED(pipefd[0]);
732 EXPECT_NOT_POISONED(pipefd[
748 int* pipefd = new int[2]; local
771 int* pipefd = new int[2]; local
796 int* pipefd = new int[2]; local
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors.cc1541 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { argument
1542 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd);
1543 int res = REAL(pipe)(pipefd);
1544 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0)
1545 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]);
1549 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { argument
1550 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags);
1551 int res = REAL(pipe2)(pipefd, flag
[all...]
/external/qemu/include/
H A Dqemu-common.h229 int qemu_eventfd(int pipefd[2]);
230 int qemu_pipe(int pipefd[2]);
/external/compiler-rt/lib/msan/
H A Dmsan_interceptors.cc686 INTERCEPTOR(int, pipe, int pipefd[2]) { argument
688 return REAL(pipe)(pipefd);
690 int res = REAL(pipe)(pipefd);
692 __msan_unpoison(pipefd, sizeof(int[2]));
696 INTERCEPTOR(int, pipe2, int pipefd[2], int flags) { argument
698 int res = REAL(pipe2)(pipefd, flags);
700 __msan_unpoison(pipefd, sizeof(int[2]));

Completed in 570 milliseconds