| /freebsd/tests/sys/capsicum/ |
| H A D | procdesc.cc | 99 int pipefds[2]; in TEST() local 101 EXPECT_OK(pipe(pipefds)); in TEST() 109 close(pipefds[0]); in TEST() 110 SEND_INT_MESSAGE(pipefds[1], MSG_CHILD_STARTED); in TEST() 113 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_REQUEST_CHILD_EXIT); in TEST() 116 close(pipefds[1]); in TEST() 118 AWAIT_INT_MESSAGE(pipefds[0], MSG_CHILD_STARTED); in TEST() 127 SEND_INT_MESSAGE(pipefds[0], MSG_PARENT_REQUEST_CHILD_EXIT); in TEST() 131 close(pipefds[0]); in TEST() 234 int pipefds[2]; in ThreadMain() local [all …]
|
| H A D | socket.cc | 23 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() 159 int pipefds[2]; in TEST() local 160 EXPECT_EQ(0, pipe(pipefds)); in TEST() 165 close(pipefds[0]); in TEST() 166 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_CHILD_SHOULD_RUN); in TEST() [all …]
|
| H A D | capmode.cc | 532 int pipefds[2]; in FORK_TEST_F() local 533 EXPECT_OK(pipe(pipefds)); in FORK_TEST_F() 547 EXPECT_OK(close(pipefds[0])); in FORK_TEST_F() 548 SEND_INT_MESSAGE(pipefds[1], MSG_CHILD_STARTED); in FORK_TEST_F() 549 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_REQUEST_CHILD_EXIT); in FORK_TEST_F() 552 EXPECT_OK(close(pipefds[1])); in FORK_TEST_F() 553 AWAIT_INT_MESSAGE(pipefds[0], MSG_CHILD_STARTED); in FORK_TEST_F() 556 SEND_INT_MESSAGE(pipefds[0], MSG_PARENT_REQUEST_CHILD_EXIT); in FORK_TEST_F()
|
| /freebsd/contrib/tcp_wrappers/ |
| H A D | safe_finger.c | 146 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/sbin/pfctl/tests/ |
| H A D | pfctl_test.c | 108 int pipefds[2]; in run_command_pipe() local 111 ATF_REQUIRE_ERRNO(0, pipe(pipefds) == 0); in run_command_pipe() 115 posix_spawn_file_actions_addclose(&action, pipefds[1]); in run_command_pipe() 116 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDOUT_FILENO); in run_command_pipe() 117 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDERR_FILENO); in run_command_pipe() 129 close(pipefds[0]); in run_command_pipe() 131 (*output) = read_fd(pipefds[1], 0); in run_command_pipe() 136 close(pipefds[1]); in run_command_pipe()
|
| /freebsd/crypto/openssl/engines/ |
| H A D | e_dasync.c | 522 OSSL_ASYNC_FD pipefds[2] = { 0, 0 }; in dummy_pause_job() local 547 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], in dummy_pause_job() 549 pipefds[1] = *writefd; in dummy_pause_job() 555 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { in dummy_pause_job() 560 if (pipe(pipefds) != 0) { in dummy_pause_job() 565 *writefd = pipefds[1]; in dummy_pause_job() 567 if (!ASYNC_WAIT_CTX_set_wait_fd(waitctx, engine_dasync_id, pipefds[0], in dummy_pause_job() 569 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); in dummy_pause_job() 579 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL); in dummy_pause_job() 581 if (write(pipefds[1], &buf, 1) < 0) in dummy_pause_job() [all …]
|
| /freebsd/usr.sbin/uefisign/ |
| H A D | uefisign.c | 343 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/crypto/openssl/doc/man3/ |
| H A D | ASYNC_start_job.pod | 228 int pipefds[2] = {0, 0}; 250 if (pipe(pipefds) != 0) { 259 *wptr = pipefds[1]; 261 pipefds[0], wptr, cleanup); 271 write(pipefds[1], &buf, 1); 275 * method. The main thread will wait until pipefds[0] is ready 281 read(pipefds[0], &buf, 1);
|
| /freebsd/contrib/bmake/ |
| H A D | main.c | 1779 int pipefds[2]; in Cmd_Exec() local 1793 if (pipe(pipefds) == -1) { in Cmd_Exec() 1804 (void)close(pipefds[0]); in Cmd_Exec() 1805 (void)dup2(pipefds[1], STDOUT_FILENO); in Cmd_Exec() 1806 (void)close(pipefds[1]); in Cmd_Exec() 1816 (void)close(pipefds[1]); /* No need for the writing half */ in Cmd_Exec() 1823 bytes_read = read(pipefds[0], result, sizeof result); in Cmd_Exec() 1830 (void)close(pipefds[0]); /* Close the input side of the pipe. */ in Cmd_Exec()
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_file.c | 1696 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe() 1724 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe2()
|
| /freebsd/sys/amd64/linux/ |
| H A D | linux_systrace_args.c | 212 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2261 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 126 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1114 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd/sys/amd64/linux32/ |
| H A D | linux32_systrace_args.c | 290 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2382 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux32_proto.h | 163 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1186 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_systrace_args.c | 290 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2413 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 163 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1180 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd/sys/arm64/linux/ |
| H A D | linux_systrace_args.c | 470 uarg[a++] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 262 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|