Searched refs:pfd (Results 1 – 6 of 6) sorted by relevance
| /xnu-11215/tests/ |
| H A D | poll.c | 75 pfd[0].fd = file; pfd[0].revents = 0; 76 pfd[1].fd = dir; pfd[1].revents = 0; 84 pfd[0].fd = dir; pfd[0].revents = 0; 85 pfd[1].fd = file; pfd[1].revents = 0; 93 pfd[0].fd = file; pfd[0].revents = 0; 94 pfd[1].fd = pipes[0]; pfd[0].revents = 0; 102 pfd[0].fd = file; pfd[0].revents = 0; 103 pfd[1].fd = dir; pfd[1].revents = 0; 104 pfd[2].fd = pipes[0]; pfd[2].revents = 0; 114 pfd[0].fd = dir; pfd[0].revents = 0; [all …]
|
| H A D | fd_guarded.c | 16 static int pfd[2]; variable 18 guardid_t guard = (uintptr_t)&pfd; 20 T_ASSERT_POSIX_SUCCESS(pipe(pfd), "pipe"); 23 (uintptr_t)pfd[0], 0, NULL); 27 T_EXPECT_POSIX_SUCCESS(change_fdguard_np(pfd[0], NULL, 0,
|
| H A D | uipc_sosendcheck.c | 25 struct pollfd pfd[1] = { { sk, POLLIN, 0 } }; in do_recv() local 26 T_QUIET; T_ASSERT_POSIX_SUCCESS(poll(pfd, 1, -1), "poll"); in do_recv() 57 struct pollfd pfd[1] = { { sk, POLLOUT, 0 } }; in do_send() local 58 int res = poll(pfd, 1, -1); in do_send() 63 if (!(pfd[0].revents & POLLOUT)) { in do_send()
|
| H A D | kqueue_close.c | 111 int pfd[2]; variable 138 rc = pipe(pfd); 144 .ident = (unsigned long)pfd[0],
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_mptest_driver.c | 193 int pfd[2]; in skywalk_mptest_driver_run() local 208 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, pfd) == -1) { in skywalk_mptest_driver_run() 226 error = close(pfd[1]); in skywalk_mptest_driver_run() 228 dup2(pfd[0], MPTEST_SEQ_FILENO); in skywalk_mptest_driver_run() 229 if (pfd[0] != MPTEST_SEQ_FILENO) { in skywalk_mptest_driver_run() 230 error = close(pfd[0]); in skywalk_mptest_driver_run() 241 error = close(pfd[0]); in skywalk_mptest_driver_run() 243 int fdflags = fcntl(pfd[1], F_GETFD); in skywalk_mptest_driver_run() 248 error = fcntl(pfd[1], F_SETFD, fdflags | FD_CLOEXEC); in skywalk_mptest_driver_run() 250 fds[j] = pfd[1]; in skywalk_mptest_driver_run()
|
| /xnu-11215/bsd/kern/ |
| H A D | proc_info.c | 488 proc_fdlist_internal(proc_t p, struct proc_fdinfo *pfd, size_t numfds) in proc_fdlist_internal() argument 500 pfd[count].proc_fd = fdt_foreach_fd(); in proc_fdlist_internal() 501 pfd[count].proc_fdtype = (fdtype != DTYPE_ATALK) ? in proc_fdlist_internal()
|