| /freebsd-13.1/contrib/capsicum-test/ |
| H A D | procdesc.cc | 111 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 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() 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 D | capmode.cc | 531 int pipefds[2]; in FORK_TEST_F() local 532 EXPECT_OK(pipe(pipefds)); in FORK_TEST_F() 546 EXPECT_OK(close(pipefds[0])); in FORK_TEST_F() 547 SEND_INT_MESSAGE(pipefds[1], MSG_CHILD_STARTED); in FORK_TEST_F() 548 AWAIT_INT_MESSAGE(pipefds[1], MSG_PARENT_REQUEST_CHILD_EXIT); in FORK_TEST_F() 551 EXPECT_OK(close(pipefds[1])); in FORK_TEST_F() 552 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-13.1/contrib/tcp_wrappers/ |
| H A D | safe_finger.c | 150 int pipefds[2]; local 172 if (pipe(pipefds)) 180 (void) close(pipefds[0]); /* close reading end */ 182 if (dup(pipefds[1]) != 1) 184 (void) close(pipefds[1]); /* close redundant fd */ 189 (void) close(pipefds[1]); /* close writing end */ 191 if (dup(pipefds[0]) != 0) 193 (void) close(pipefds[0]); /* close redundant fd */
|
| /freebsd-13.1/sbin/pfctl/tests/ |
| H A D | pfctl_test.c | 129 int pipefds[2]; in run_pfctl_test() local 143 ATF_REQUIRE_ERRNO(0, pipe(pipefds) == 0); in run_pfctl_test() 148 posix_spawn_file_actions_addclose(&action, pipefds[1]); in run_pfctl_test() 149 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDOUT_FILENO); in run_pfctl_test() 150 posix_spawn_file_actions_adddup2(&action, pipefds[0], STDERR_FILENO); in run_pfctl_test() 161 close(pipefds[0]); in run_pfctl_test() 163 real_output = read_fd(pipefds[1], 0); in run_pfctl_test() 172 close(pipefds[1]); in run_pfctl_test()
|
| /freebsd-13.1/crypto/openssl/engines/ |
| H A D | e_dasync.c | 420 OSSL_ASYNC_FD pipefds[2] = {0, 0}; in dummy_pause_job() local 434 if (ASYNC_WAIT_CTX_get_fd(waitctx, engine_dasync_id, &pipefds[0], in dummy_pause_job() 436 pipefds[1] = *writefd; in dummy_pause_job() 442 if (CreatePipe(&pipefds[0], &pipefds[1], NULL, 256) == 0) { in dummy_pause_job() 447 if (pipe(pipefds) != 0) { in dummy_pause_job() 452 *writefd = pipefds[1]; in dummy_pause_job() 456 wait_cleanup(waitctx, engine_dasync_id, pipefds[0], writefd); in dummy_pause_job() 466 WriteFile(pipefds[1], &buf, 1, &numwritten, NULL); in dummy_pause_job() 468 if (write(pipefds[1], &buf, 1) < 0) in dummy_pause_job() 477 ReadFile(pipefds[0], &buf, 1, &numread, NULL); in dummy_pause_job() [all …]
|
| /freebsd-13.1/usr.sbin/uefisign/ |
| H A D | uefisign.c | 345 int pipefds[2]; in main() local 405 error = pipe(pipefds); in main() 414 close(pipefds[0]); in main() 415 exit(child(inpath, outpath, pipefds[1], Vflag, vflag)); in main() 418 close(pipefds[1]); in main() 435 sign(cert, key, pipefds[0]); in main()
|
| /freebsd-13.1/contrib/bmake/ |
| H A D | main.c | 1723 int pipefds[2]; in Cmd_Exec() local 1742 if (pipe(pipefds) == -1) { in Cmd_Exec() 1752 (void)close(pipefds[0]); in Cmd_Exec() 1753 (void)dup2(pipefds[1], STDOUT_FILENO); in Cmd_Exec() 1754 (void)close(pipefds[1]); in Cmd_Exec() 1765 (void)close(pipefds[1]); /* No need for the writing half */ in Cmd_Exec() 1772 bytes_read = read(pipefds[0], result, sizeof result); in Cmd_Exec() 1779 (void)close(pipefds[0]); /* Close the input side of the pipe. */ in Cmd_Exec()
|
| /freebsd-13.1/crypto/openssl/doc/man3/ |
| H A D | ASYNC_start_job.pod | 200 int pipefds[2] = {0, 0}; 215 if (pipe(pipefds) != 0) { 224 *wptr = pipefds[1]; 226 pipefds[0], wptr, cleanup); 234 write(pipefds[1], &buf, 1); 240 read(pipefds[0], &buf, 1);
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_file.c | 1855 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe() 1883 error = copyout(fildes, args->pipefds, sizeof(fildes)); in linux_pipe2()
|
| /freebsd-13.1/sys/arm/linux/ |
| H A D | linux_systrace_args.c | 229 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2369 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 129 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1160 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd-13.1/sys/amd64/linux/ |
| H A D | linux_systrace_args.c | 212 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2242 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 113 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1097 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd-13.1/sys/amd64/linux32/ |
| H A D | linux32_systrace_args.c | 290 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2368 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux32_proto.h | 160 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1172 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd-13.1/sys/i386/linux/ |
| H A D | linux_systrace_args.c | 298 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args() 2407 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 164 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member 1165 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|
| /freebsd-13.1/sys/arm64/linux/ |
| H A D | linux_systrace_args.c | 456 uarg[0] = (intptr_t)p->pipefds; /* l_int * */ in systrace_args()
|
| H A D | linux_proto.h | 258 char pipefds_l_[PADL_(l_int *)]; l_int * pipefds; char pipefds_r_[PADR_(l_int *)]; member
|