Searched refs:dup_fd (Results 1 – 2 of 2) sorted by relevance
| /xnu-12377.41.6/tests/ |
| H A D | pipe_drain.c | 63 int dup_fd; variable 81 dup_fd = dup(pipe_fd[0]); 82 T_EXPECT_GE(dup_fd, 0, NULL);
|
| H A D | file_leases.c | 826 int err, dup_fd, fd; variable 843 dup_fd = dup(fd); 844 T_ASSERT_NE(dup_fd, -1, "Duplicate existing fd: %d", fd); 847 err = fcntl(dup_fd, F_GETLEASE); 848 T_ASSERT_EQ(err, F_WRLCK, "Retrieve lease with dup fd: %d", dup_fd); 851 err = fcntl(dup_fd, F_SETLEASE, F_RDLCK); 852 T_ASSERT_NE(err, -1, "Downgrade to read lease with dup fd: %d", dup_fd); 855 err = fcntl(dup_fd, F_GETLEASE); 856 T_ASSERT_EQ(err, F_RDLCK, "Retrieve lease with dup fd: %d", dup_fd); 859 T_ASSERT_POSIX_SUCCESS(close(dup_fd), "Close duplicated fd");
|