Home
last modified time | relevance | path

Searched refs:pipefd (Results 1 – 15 of 15) sorted by relevance

/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_dumper_unittest_helper.cc59 int pipefd = *static_cast<int *>(data); in thread_function() local
63 if (write(pipefd, &byte, sizeof(byte)) != sizeof(byte)) { in thread_function()
79 int pipefd = atoi(argv[1]); in main() local
90 pthread_create(&threads[i], &thread_attributes, &thread_function, &pipefd); in main()
92 thread_function(&pipefd); in main()
/external/dnsmasq/src/
Dhelper.c56 int i, pipefd[2]; in create_helper() local
61 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1) in create_helper()
69 close(pipefd[0]); /* close reader side */ in create_helper()
70 return pipefd[1]; in create_helper()
106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd) in create_helper()
118 if (!read_write(pipefd[0], (unsigned char *)&data, sizeof(data), 1)) in create_helper()
142 if (!read_write(pipefd[0], buf, data.clid_len, 1)) in create_helper()
158 if (!read_write(pipefd[0], buf, in create_helper()
275 close(pipefd[0]); in create_helper()
Ddnsmasq.c78 int piperead, pipefd[2], err_pipe[2]; in main() local
274 safe_pipe(pipefd, 1); in main()
276 piperead = pipefd[0]; in main()
277 pipewrite = pipefd[1]; in main()
/external/squashfs-tools/squashfs-tools/
Dpseudo.c221 int res, pipefd[2]; in pseudo_exec_file() local
223 res = pipe(pipefd); in pseudo_exec_file()
236 close(pipefd[0]); in pseudo_exec_file()
238 res = dup(pipefd[1]); in pseudo_exec_file()
246 close(pipefd[1]); in pseudo_exec_file()
247 return pipefd[0]; in pseudo_exec_file()
250 close(pipefd[0]); in pseudo_exec_file()
251 close(pipefd[1]); in pseudo_exec_file()
Daction.c2534 int pipefd[2]; in file_fn() local
2538 res = pipe(pipefd); in file_fn()
2552 res = dup(pipefd[1]); in file_fn()
2564 close(pipefd[1]); in file_fn()
2571 res = read_bytes(pipefd[0], buffer + size, 512); in file_fn()
2592 close(pipefd[0]); in file_fn()
/external/toybox/toys/pending/
Dtar.c287 int pipefd[2]; in compress_stream() local
290 xpipe(pipefd); in compress_stream()
298 xclose(pipefd[1]); /* Close unused write*/ in compress_stream()
299 dup2(pipefd[0], 0); in compress_stream()
303 xclose(pipefd[0]); /* Close unused read end */ in compress_stream()
304 dup2(pipefd[1], tar_hdl->src_fd); //write to pipe in compress_stream()
318 int pipefd[2], status = 0; in extract_to_command() local
322 if (pipe(pipefd) == -1) error_exit("pipe"); in extract_to_command()
346 xclose(pipefd[1]); // Close unused write in extract_to_command()
347 dup2(pipefd[0], 0); in extract_to_command()
[all …]
/external/ppp/pppd/
Dmain.c801 int pipefd[2]; in detach() local
805 if (pipe(pipefd) == -1) in detach()
806 pipefd[0] = pipefd[1] = -1; in detach()
833 close(pipefd[1]); in detach()
834 complete_read(pipefd[0], numbuf, 1); in detach()
835 close(pipefd[0]); in detach()
1594 int fd, pipefd[2]; in safe_fork() local
1605 if (pipe(pipefd) == -1) in safe_fork()
1606 pipefd[0] = pipefd[1] = -1; in safe_fork()
1614 close(pipefd[1]); in safe_fork()
[all …]
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dbaseline_policy_unittest.cc75 int pipefd[2]; in BPF_TEST_C() local
76 int sys_ret = pipe(pipefd); in BPF_TEST_C()
78 TestPipeOrSocketPair(base::ScopedFD(pipefd[0]), base::ScopedFD(pipefd[1])); in BPF_TEST_C()
/external/libpcap/
Dpcap-canusb-linux.c292 int pipefd[2]; in canusb_startcapture() local
294 if (pipe(pipefd) == -1) in canusb_startcapture()
297 this->rdpipe = pipefd[0]; in canusb_startcapture()
298 this->wrpipe = pipefd[1]; in canusb_startcapture()
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc761 int* pipefd = new int[2]; in TEST() local
762 int res = pipe(pipefd); in TEST()
764 EXPECT_NOT_POISONED(pipefd[0]); in TEST()
765 EXPECT_NOT_POISONED(pipefd[1]); in TEST()
766 close(pipefd[0]); in TEST()
767 close(pipefd[1]); in TEST()
771 int* pipefd = new int[2]; in TEST() local
772 int res = pipe2(pipefd, O_NONBLOCK); in TEST()
774 EXPECT_NOT_POISONED(pipefd[0]); in TEST()
775 EXPECT_NOT_POISONED(pipefd[1]); in TEST()
[all …]
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch14 piperead = pipefd[0];
15 pipewrite = pipefd[1];
196 +size_t dhcp_reply(int pipefd, struct dhcp_context *context, char *iface_name, int int_index,
302 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1)
/external/autotest/client/site_tests/security_SeccompSyscallFilters/src/
Dseccomp_bpf_tests.c842 int pipefd[2]; in FIXTURE_SETUP() local
855 ASSERT_EQ(0, pipe(pipefd)); in FIXTURE_SETUP()
862 close(pipefd[0]); in FIXTURE_SETUP()
863 tracer(_metadata, tracee, poke_addr, pipefd[1]); in FIXTURE_SETUP()
866 close(pipefd[1]); in FIXTURE_SETUP()
869 long ret = read(pipefd[0], &sync, 1); in FIXTURE_SETUP()
870 close(pipefd[0]); in FIXTURE_SETUP()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc1766 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument
1767 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR()
1768 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1769 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1770 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
1775 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument
1776 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR()
1777 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1778 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1779 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc818 INTERCEPTOR(int, pipe, int pipefd[2]) { in INTERCEPTOR()
820 return REAL(pipe)(pipefd); in INTERCEPTOR()
822 int res = REAL(pipe)(pipefd); in INTERCEPTOR()
824 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
828 INTERCEPTOR(int, pipe2, int pipefd[2], int flags) { in INTERCEPTOR()
830 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR()
832 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3946 LSS_INLINE _syscall2(int, pipe2, int *, pipefd, int, flags)
3976 LSS_INLINE pid_t LSS_NAME(pipe)(int *pipefd) { in LSS_NAME()
3977 return LSS_NAME(pipe2)(pipefd, 0); in LSS_NAME()