Home
last modified time | relevance | path

Searched refs:pipefds (Results 1 – 18 of 18) sorted by relevance

/freebsd-14.2/contrib/capsicum-test/
H A Dprocdesc.cc111 int pipefds[2]; in TEST() local
121 close(pipefds[0]); in TEST()
128 close(pipefds[1]); in TEST()
143 close(pipefds[0]); in TEST()
250 int pipefds[2]; in ThreadMain() local
279 close(pipefds[1]); in ThreadMain()
392 int pipefds[2]; in TEST_F() local
410 close(pipefds[1]); in TEST_F()
691 int pipefds[2]; in TEST() local
877 int pipefds[2]; in FORK_TEST() local
[all …]
H A Dsocket.cc23 int pipefds[2]; in TEST() local
24 EXPECT_EQ(0, pipe(pipefds)); in TEST()
28 close(pipefds[0]); in TEST()
29 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_CHILD_SHOULD_RUN); in TEST()
101 EXPECT_OK(close(pipefds[1])); in TEST()
102 SEND_INT_MESSAGE(pipefds[0], MSG_PARENT_CHILD_SHOULD_RUN); in TEST()
161 int pipefds[2]; in TEST() local
162 EXPECT_EQ(0, pipe(pipefds)); in TEST()
167 close(pipefds[0]); in TEST()
218 EXPECT_OK(close(pipefds[1])); in TEST()
[all …]
H A Dcapmode.cc573 int pipefds[2]; in FORK_TEST_F() local
574 EXPECT_OK(pipe(pipefds)); in FORK_TEST_F()
588 EXPECT_OK(close(pipefds[0])); in FORK_TEST_F()
589 SEND_INT_MESSAGE(pipefds[1], MSG_CHILD_STARTED); in FORK_TEST_F()
590 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_REQUEST_CHILD_EXIT); in FORK_TEST_F()
593 EXPECT_OK(close(pipefds[1])); in FORK_TEST_F()
594 AWAIT_INT_MESSAGE(pipefds[0], MSG_CHILD_STARTED); in FORK_TEST_F()
598 SEND_INT_MESSAGE(pipefds[0], MSG_PARENT_REQUEST_CHILD_EXIT); in FORK_TEST_F()
/freebsd-14.2/contrib/tcp_wrappers/
H A Dsafe_finger.c146 int pipefds[2]; in pipe_stdin() local
168 if (pipe(pipefds)) in pipe_stdin()
176 (void) close(pipefds[0]); /* close reading end */ in pipe_stdin()
178 if (dup(pipefds[1]) != 1) in pipe_stdin()
180 (void) close(pipefds[1]); /* close redundant fd */ in pipe_stdin()
185 (void) close(pipefds[1]); /* close writing end */ in pipe_stdin()
187 if (dup(pipefds[0]) != 0) in pipe_stdin()
189 (void) close(pipefds[0]); /* close redundant fd */ in pipe_stdin()
/freebsd-14.2/sbin/pfctl/tests/
H A Dpfctl_test.c127 int pipefds[2]; in run_pfctl_test() local
141 ATF_REQUIRE_ERRNO(0, pipe(pipefds) == 0); in run_pfctl_test()
146 posix_spawn_file_actions_addclose(&action, pipefds[1]); in run_pfctl_test()
147 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDOUT_FILENO); in run_pfctl_test()
148 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDERR_FILENO); in run_pfctl_test()
159 close(pipefds[0]); in run_pfctl_test()
161 real_output = read_fd(pipefds[1], 0); in run_pfctl_test()
170 close(pipefds[1]); in run_pfctl_test()
/freebsd-14.2/crypto/openssl/engines/
H A De_dasync.c524 OSSL_ASYNC_FD pipefds[2] = {0, 0}; in dummy_pause_job() local
550 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], in dummy_pause_job()
552 pipefds[1] = *writefd; in dummy_pause_job()
558 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { in dummy_pause_job()
563 if (pipe(pipefds) != 0) { in dummy_pause_job()
568 *writefd = pipefds[1]; in dummy_pause_job()
572 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); in dummy_pause_job()
582 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL); in dummy_pause_job()
584 if (write(pipefds[1], &buf, 1) < 0) in dummy_pause_job()
593 ReadFile(pipefds[0], &buf, 1, &numread, NULL); in dummy_pause_job()
[all …]
/freebsd-14.2/usr.sbin/uefisign/
H A Duefisign.c343 int pipefds[2]; in main() local
403 error = pipe(pipefds); in main()
412 close(pipefds[0]); in main()
413 exit(child(inpath, outpath, pipefds[1], Vflag, vflag)); in main()
416 close(pipefds[1]); in main()
433 sign(cert, key, pipefds[0]); in main()
/freebsd-14.2/contrib/bmake/
H A Dmain.c1724 int pipefds[2]; in Cmd_Exec() local
1743 if (pipe(pipefds) == -1) { in Cmd_Exec()
1753 (void)close(pipefds[0]); in Cmd_Exec()
1754 (void)dup2(pipefds[1], STDOUT_FILENO); in Cmd_Exec()
1755 (void)close(pipefds[1]); in Cmd_Exec()
1766 (void)close(pipefds[1]); /* No need for the writing half */ in Cmd_Exec()
1773 bytes_read = read(pipefds[0], result, sizeof result); in Cmd_Exec()
1780 (void)close(pipefds[0]); /* Close the input side of the pipe. */ in Cmd_Exec()
/freebsd-14.2/crypto/openssl/doc/man3/
H A DASYNC_start_job.pod204 int pipefds[2] = {0, 0};
219 if (pipe(pipefds) != 0) {
228 *wptr = pipefds[1];
230 pipefds[0], wptr, cleanup);
238 write(pipefds[1], &buf, 1);
244 read(pipefds[0], &buf, 1);
/freebsd-14.2/sys/compat/linux/
H A Dlinux_file.c1633 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe()
1661 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe2()
/freebsd-14.2/sys/amd64/linux/
H A Dlinux_systrace_args.c211 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
2253 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
H A Dlinux_proto.h126 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
1111 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
/freebsd-14.2/sys/i386/linux/
H A Dlinux_systrace_args.c289 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
2405 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
H A Dlinux_proto.h163 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
1177 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
/freebsd-14.2/sys/amd64/linux32/
H A Dlinux32_systrace_args.c289 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
2374 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
H A Dlinux32_proto.h163 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
1183 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
/freebsd-14.2/sys/arm64/linux/
H A Dlinux_systrace_args.c462 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
H A Dlinux_proto.h259 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member