Home
last modified time | relevance | path

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

/external/parameter-framework/test/test-platform/
Dmain.cpp88 int pipefd[2]; in startDaemonTestPlatform() local
90 if (pipe(pipefd) == -1) { in startDaemonTestPlatform()
111 close(pipefd[0]); in startDaemonTestPlatform()
129 notifyParent(pipefd[1], false); in startDaemonTestPlatform()
134 notifyParent(pipefd[1], true); in startDaemonTestPlatform()
149 close(pipefd[1]); in startDaemonTestPlatform()
154 if (not utility::fullRead(pipefd[0], &msgFromChild, sizeof(msgFromChild))) { in startDaemonTestPlatform()
/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.c220 int res, pipefd[2]; in pseudo_exec_file() local
222 res = pipe(pipefd); in pseudo_exec_file()
235 close(pipefd[0]); in pseudo_exec_file()
237 res = dup(pipefd[1]); in pseudo_exec_file()
245 close(pipefd[1]); in pseudo_exec_file()
246 return pipefd[0]; in pseudo_exec_file()
249 close(pipefd[0]); in pseudo_exec_file()
250 close(pipefd[1]); in pseudo_exec_file()
Daction.c2527 int pipefd[2]; in file_fn() local
2531 res = pipe(pipefd); in file_fn()
2545 res = dup(pipefd[1]); in file_fn()
2557 close(pipefd[1]); in file_fn()
2564 res = read_bytes(pipefd[0], buffer + size, 512); in file_fn()
2585 close(pipefd[0]); in file_fn()
/external/toybox/toys/pending/
Dtar.c287 int pipefd[2]; in compress_stream() local
290 if (pipe(pipefd) == -1) error_exit("pipe"); 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/libpcap/
Dpcap-canusb-linux.c290 int pipefd[2]; in canusb_startcapture() local
292 if (pipe(pipefd) == -1) in canusb_startcapture()
295 this->rdpipe = pipefd[0]; in canusb_startcapture()
296 this->wrpipe = pipefd[1]; in canusb_startcapture()
/external/linux-tools-perf/src/tools/perf/tests/
Dcode-reading.c333 int pipefd[2]; in syscall_something() local
337 if (pipe(pipefd) < 0) { in syscall_something()
341 close(pipefd[1]); in syscall_something()
342 close(pipefd[0]); in syscall_something()
/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/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc1794 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument
1795 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR()
1796 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1797 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1798 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
1802 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument
1803 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR()
1804 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1805 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1806 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc812 INTERCEPTOR(int, pipe, int pipefd[2]) { in INTERCEPTOR()
814 return REAL(pipe)(pipefd); in INTERCEPTOR()
816 int res = REAL(pipe)(pipefd); in INTERCEPTOR()
818 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
822 INTERCEPTOR(int, pipe2, int pipefd[2], int flags) { in INTERCEPTOR()
824 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR()
826 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
/external/google-breakpad/src/third_party/lss/
Dlinux_syscall_support.h3944 LSS_INLINE _syscall2(int, pipe2, int *, pipefd, int, flags)
3974 LSS_INLINE pid_t LSS_NAME(pipe)(int *pipefd) { in LSS_NAME()
3975 return LSS_NAME(pipe2)(pipefd, 0); in LSS_NAME()