Home
last modified time | relevance | path

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

/netbsd-src/tests/lib/librumphijack/
H A Dh_client.c53 int pipefd[2]; in main() local
59 if (pipe(pipefd) == -1) in main()
62 FD_SET(pipefd[0], &rfds); in main()
64 rv = select(pipefd[0]+1, &rfds, NULL, NULL, &tv); in main()
70 if (FD_ISSET(pipefd[0], &rfds)) in main()
/netbsd-src/external/mit/libuv/dist/src/unix/
H A Dasync.c203 int pipefd[2]; in uv__async_start() local
214 pipefd[0] = err; in uv__async_start()
215 pipefd[1] = -1; in uv__async_start()
217 err = uv__make_pipe(pipefd, UV_NONBLOCK_PIPE); in uv__async_start()
222 uv__io_init(&loop->async_io_watcher, uv__async_io, pipefd[0]); in uv__async_start()
224 loop->async_wfd = pipefd[1]; in uv__async_start()
/netbsd-src/external/mit/libuv/dist/test/
H A Drunner-unix.c86 int pipefd[2]; in process_start() local
119 if (pipe(pipefd)) { in process_start()
124 snprintf(fdstr, sizeof(fdstr), "%d", pipefd[1]); in process_start()
144 closefd(pipefd[0]); in process_start()
160 closefd(pipefd[1]); in process_start()
164 rc = read(pipefd[0], &n, 1); in process_start()
167 closefd(pipefd[0]); in process_start()
/netbsd-src/libexec/makewhatis/
H A Dmakewhatis.c776 int tempfd, bytes, pipefd[2], status; in nroff() local
808 if (pipe(pipefd) == -1) { in nroff()
816 (void)close(pipefd[1]); in nroff()
817 (void)close(pipefd[0]); in nroff()
823 (void)close(pipefd[0]); in nroff()
828 if (pipefd[1] != STDOUT_FILENO) { in nroff()
829 (void)dup2(pipefd[1], STDOUT_FILENO); in nroff()
830 (void)close(pipefd[1]); in nroff()
840 (void)close(pipefd[1]); in nroff()
845 if ((in = gzdopen(pipefd[0], "r")) == NULL) { in nroff()
[all …]
/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_diff.c768 int pipefd[2]; in zfs_show_diffs() local
779 if (pipe(pipefd)) { in zfs_show_diffs()
790 di.datafd = pipefd[0]; in zfs_show_diffs()
794 (void) close(pipefd[0]); in zfs_show_diffs()
795 (void) close(pipefd[1]); in zfs_show_diffs()
804 zc.zc_cookie = pipefd[1]; in zfs_show_diffs()
821 (void) close(pipefd[1]); in zfs_show_diffs()
833 (void) close(pipefd[1]); in zfs_show_diffs()
H A Dlibzfs_sendrecv.c1741 int pipefd[2]; in zfs_send() local
1766 if ((err = pipe(pipefd)) != 0) { in zfs_send()
1772 dda.inputfd = pipefd[1]; in zfs_send()
1775 (void) close(pipefd[0]); in zfs_send()
1776 (void) close(pipefd[1]); in zfs_send()
1855 sdd.outfd = pipefd[0]; in zfs_send()
1959 (void) close(pipefd[0]); in zfs_send()
1996 (void) close(pipefd[0]); in zfs_send()
/netbsd-src/external/apache2/llvm/dist/clang/lib/DirectoryWatcher/linux/
H A DDirectoryWatcher-linux.cpp45 SemaphorePipe(int pipefd[2]) in SemaphorePipe()
46 : FDRead(pipefd[0]), FDWrite(pipefd[1]), OwnsFDs(true) {} in SemaphorePipe()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/msan/tests/
H A Dmsan_test.cc789 int* pipefd = new int[2]; in TEST() local
790 int res = pipe(pipefd); in TEST()
792 EXPECT_NOT_POISONED(pipefd[0]); in TEST()
793 EXPECT_NOT_POISONED(pipefd[1]); in TEST()
794 close(pipefd[0]); in TEST()
795 close(pipefd[1]); in TEST()
799 int* pipefd = new int[2]; in TEST() local
800 int res = pipe2(pipefd, O_NONBLOCK); in TEST()
802 EXPECT_NOT_POISONED(pipefd[0]); in TEST()
803 EXPECT_NOT_POISONED(pipefd[1]); in TEST()
[all …]
/netbsd-src/external/bsd/less/dist/
H A Dedit.c268 static void close_pipe(FILE *pipefd) in close_pipe() argument
273 if (pipefd == NULL) in close_pipe()
280 kill(pipefd->_pid, SIGINT); in close_pipe()
282 status = pclose(pipefd); in close_pipe()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_interceptors.cc1676 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument
1677 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR()
1678 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1679 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1680 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
1685 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument
1686 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR()
1687 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1688 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1689 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/
H A Dtsan_interceptors_posix.cpp1784 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument
1785 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR()
1786 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1787 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1788 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
1793 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument
1794 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR()
1795 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1796 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1797 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_interceptors.cc1718 TSAN_INTERCEPTOR(int, pipe, int *pipefd) { in TSAN_INTERCEPTOR() argument
1719 SCOPED_TSAN_INTERCEPTOR(pipe, pipefd); in TSAN_INTERCEPTOR()
1720 int res = REAL(pipe)(pipefd); in TSAN_INTERCEPTOR()
1721 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1722 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
1727 TSAN_INTERCEPTOR(int, pipe2, int *pipefd, int flags) { in TSAN_INTERCEPTOR() argument
1728 SCOPED_TSAN_INTERCEPTOR(pipe2, pipefd, flags); in TSAN_INTERCEPTOR()
1729 int res = REAL(pipe2)(pipefd, flags); in TSAN_INTERCEPTOR()
1730 if (res == 0 && pipefd[0] >= 0 && pipefd[1] >= 0) in TSAN_INTERCEPTOR()
1731 FdPipeCreate(thr, pc, pipefd[0], pipefd[1]); in TSAN_INTERCEPTOR()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/msan/
H A Dmsan_interceptors.cc730 INTERCEPTOR(int, pipe, int pipefd[2]) { in INTERCEPTOR()
732 return REAL(pipe)(pipefd); in INTERCEPTOR()
734 int res = REAL(pipe)(pipefd); in INTERCEPTOR()
736 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
740 INTERCEPTOR(int, pipe2, int pipefd[2], int flags) { in INTERCEPTOR()
742 int res = REAL(pipe2)(pipefd, flags); in INTERCEPTOR()
744 __msan_unpoison(pipefd, sizeof(int[2])); in INTERCEPTOR()
/netbsd-src/usr.bin/mail/
H A Dpopen.c112 register_file(FILE *fp, int pipefd, pid_t pid) in register_file() argument
118 fpp->pipe = pipefd; in register_file()
/netbsd-src/lib/librumphijack/
H A Dhijack.c2166 int pipefd;
2182 rump_sys_write(parg->pipefd, &rv, sizeof(rv));
2293 parg.pipefd = rpipe[1];
2148 int pipefd; global() member