| /xnu-11215/tests/ |
| H A D | extract_right_soft_fail.c | 87 int status, fd[2], fd2[2]; variable 102 ret = pipe(fd2); 114 close(fd2[1]); 118 read(fd2[0], data, 6); /* Sync point 2 */ 119 close(fd2[0]); 123 close(fd2[0]); 130 write(fd2[1], "wakeup", 6); /* Sync point 2 */ 131 close(fd2[1]);
|
| H A D | testposixshm.c | 108 int fd2; variable 137 fd2 = shm_open(maxname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); 138 T_EXPECT_POSIX_SUCCESS(fd2, "shm_open() no O_EXCL"); 141 T_EXPECT_POSIX_ZERO(close(fd2), "close()"); 144 fd2 = shm_open(maxname, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 146 T_EXPECT_EQ(fd2, -1, "shm_open() existing but O_EXCL"); 169 fd2 = shm_open(maxname, O_RDWR, S_IRUSR | S_IWUSR); 171 T_EXPECT_EQ(fd2, -1, "shm_open() but removed");
|
| H A D | fd.c | 102 int fd1, fd2; variable 107 fd2 = open("/dev/null", O_RDONLY | O_CLOEXEC); 108 T_ASSERT_POSIX_SUCCESS(fd2, "open(/dev/null)"); 110 T_ASSERT_POSIX_SUCCESS(dup2(fd1, fd2), "dup2(fd1, fd2)"); 111 T_EXPECT_EQ(fcntl(fd2, F_GETFD, 0), 0,
|
| H A D | socket_raw_uint8_max.c | 10 int fd2 = socket(AF_INET, SOCK_RAW, 255); variable 12 T_ASSERT_POSIX_SUCCESS(fd2, "socket(AF_INET, SOCK_RAW, 255);");
|
| /xnu-11215/tests/vm/ |
| H A D | vm_tainted_executable.c | 49 int fd1, fd2; variable 64 fd2 = mkstemp(tmp_path); 65 T_QUIET; T_ASSERT_POSIX_SUCCESS(fd2, "mkstemp(%s)", tmp_path); 70 T_QUIET; T_ASSERT_POSIX_SUCCESS(write(fd2, mapaddr1, fsize), NULL); 85 T_QUIET; T_ASSERT_POSIX_SUCCESS(pwrite(fd2, &zero, 1, 90 T_QUIET; T_ASSERT_POSIX_SUCCESS(fchmod(fd2, S_IRUSR | S_IXUSR), NULL); 93 T_QUIET; T_ASSERT_POSIX_SUCCESS(close(fd2), NULL);
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_descrip.c | 4517 fp_drop(p, fd2, fp2, 1); in sys_fcntl_nocancel() 4523 fp_drop(p, fd2, fp2, 1); in sys_fcntl_nocancel() 4532 fp_drop(p, fd2, fp2, 1); in sys_fcntl_nocancel() 4537 AUDIT_ARG(fd, fd2); in sys_fcntl_nocancel() 4542 fp_drop(p, fd2, fp2, 0); in sys_fcntl_nocancel() 4548 fp_drop(p, fd2, fp2, 0); in sys_fcntl_nocancel() 4560 fp_drop(p, fd2, fp2, 0); in sys_fcntl_nocancel() 4612 fp_drop(p, fd2, fp2, 0); in sys_fcntl_nocancel() 4623 if (fd2 < 0) { in sys_fcntl_nocancel() 4671 AUDIT_ARG(fd, fd2); in sys_fcntl_nocancel() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_flow.c | 201 struct netif_flow_desc *fd2) in netif_flow_ethertype_match() argument 203 return fd1->fd_ethertype == fd2->fd_ethertype; in netif_flow_ethertype_match() 249 netif_flow_ipv6_ula_match(struct netif_flow_desc *fd1, struct netif_flow_desc *fd2) in netif_flow_ipv6_ula_match() argument 251 return IN6_ARE_ADDR_EQUAL(&fd1->fd_laddr, &fd2->fd_laddr) && in netif_flow_ipv6_ula_match() 252 IN6_ARE_ADDR_EQUAL(&fd1->fd_raddr, &fd2->fd_raddr); in netif_flow_ipv6_ula_match()
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_syscalls.c | 5691 linkat_internal(vfs_context_t ctx, int fd1, user_addr_t path, int fd2, in linkat_internal() argument 5759 error = nameiat(&nd, fd2); in linkat_internal() 5947 uap->fd2, uap->link, uap->flag, UIO_USERSPACE); in linkat() 8783 AUDIT_ARG(fd2, dst_dirfd); in clonefile_internal()
|