Lines Matching refs:fd1
33 static int fd_kcmp(int fd1, int fd2) { in fd_kcmp() argument
36 return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2); in fd_kcmp()
72 void validateTwoFdUnorderedFence(const C2Fence &fence, int fd1, int fd2, int mergeFd);
75 void validateThreeFdFence(const C2Fence &fence, int fd1, int fd2, int fd3);
79 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
83 EXPECT_THAT(fd1, ::testing::Not(IsDupOf(fd2))); in TEST_F()
92 close(fd1); in TEST_F()
207 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
213 { fd1, fd2, fd3 }, &status); in TEST_F()
216 validateThreeFdFence(fence, fd1, fd2, fd3); in TEST_F()
223 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
228 { fd1, fd2, fd3 }); in TEST_F()
230 validateThreeFdFence(fence, fd1, fd2, fd3); in TEST_F()
243 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
248 handle->data[0] = fd1; in TEST_F()
255 validateTwoFdUnorderedFence(fence, fd1, fd2, mergeFd); in TEST_F()
259 const C2Fence &fence, int fd1, int fd2, int mergeFd) { in validateTwoFdUnorderedFence() argument
272 EXPECT_THAT(fds, ::testing::ElementsAre(IsDupOf(fd1), IsDupOf(fd2))); in validateTwoFdUnorderedFence()
282 EXPECT_THAT(handle->data[0], IsDupOf(fd1)); in validateTwoFdUnorderedFence()
322 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
328 { fd1, fd2, fd3 }, &status); in TEST_F()
332 validateThreeFdFence(fence, fd1, fd2, fd3); in TEST_F()
335 void C2FenceTest::validateThreeFdFence(const C2Fence &fence, int fd1, int fd2, int fd3) { in validateThreeFdFence() argument
348 EXPECT_THAT(fds, ::testing::ElementsAre(IsDupOf(fd1), IsDupOf(fd2), IsDupOf(fd3))); in validateThreeFdFence()
358 EXPECT_THAT(handle->data[0], IsDupOf(fd1)); in validateThreeFdFence()
417 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
422 handle->data[0] = fd1; in TEST_F()
429 validateTwoFdUnorderedFence(fence, fd1, fd2, mergeFd); in TEST_F()
440 int fd1 = memfd_create("test1", 0 /* flags */); in TEST_F() local
445 handle->data[0] = fd1; in TEST_F()
452 validateThreeFdFence(fence, fd1, fd2, fd3); in TEST_F()