Home
last modified time | relevance | path

Searched refs:fd1 (Results 1 – 4 of 4) sorted by relevance

/xnu-8796.101.5/tests/
H A Dtestposixshm.c107 int fd1; variable
115 fd1 = shm_open(maxname, O_RDWR, S_IRUSR | S_IWUSR);
116 T_EXPECT_EQ(fd1, -1, "shm_open() missing O_CREAT");
121 fd1 = shm_open(toolong, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
122 T_EXPECT_EQ(fd1, -1, "shm_open() name too long");
127 fd1 = shm_open(noname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
128 T_EXPECT_EQ(fd1, -1, "shm_open() invalid name");
133 fd1 = shm_open(maxname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
134 T_EXPECT_POSIX_SUCCESS(fd1, "valid shm_open() result");
150 T_EXPECT_POSIX_ZERO(ftruncate(fd1, 16 * 1024), NULL);
[all …]
H A Dfd.c102 int fd1, fd2; variable
104 fd1 = open("/dev/null", O_RDONLY | O_CLOEXEC);
105 T_ASSERT_POSIX_SUCCESS(fd1, "open(/dev/null)");
110 T_ASSERT_POSIX_SUCCESS(dup2(fd1, fd2), "dup2(fd1, fd2)");
/xnu-8796.101.5/bsd/skywalk/nexus/netif/
H A Dnx_netif_flow.c200 netif_flow_ethertype_match(struct netif_flow_desc *fd1, 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-8796.101.5/bsd/vfs/
H A Dvfs_syscalls.c5551 linkat_internal(vfs_context_t ctx, int fd1, user_addr_t path, int fd2, in linkat_internal() argument
5574 error = nameiat(&nd, fd1); in linkat_internal()
5778 return linkat_internal(vfs_context_current(), uap->fd1, uap->path, in linkat()