Lines Matching refs:fd2

163 	int fd1, fd2;  in TEST_F()  local
185 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
186 ASSERT_EQ(-1, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
210 int fd1, fd2; in TEST_F() local
240 fd2 = open(FULLPATH2, O_RDWR); in TEST_F()
244 ASSERT_EQ(m_maxbcachebuf, pread(fd2, buf, m_maxbcachebuf, start2)) in TEST_F()
249 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
257 ASSERT_EQ(m_maxbcachebuf, pread(fd2, buf, m_maxbcachebuf, start2)) in TEST_F()
265 leak(fd2); in TEST_F()
287 int fd1, fd2; in TEST_F() local
319 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
320 ASSERT_GE(fd2, 0); in TEST_F()
321 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
411 int fd1, fd2; in TEST_F() local
430 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
431 ASSERT_EQ(-1, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
458 int fd1, fd2; in TEST_F() local
483 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
484 ASSERT_EQ(len / 2, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
502 int fd1, fd2; in TEST_F() local
527 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
528 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
593 int fd1, fd2; in TEST_F() local
619 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
620 ASSERT_GE(fd2, 0); in TEST_F()
622 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
626 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
628 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()
638 leak(fd2); in TEST_F()
704 int fd1, fd2; in TEST_F() local
728 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
729 ASSERT_GE(fd2, 0); in TEST_F()
730 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
733 leak(fd2); in TEST_F()
756 int fd1, fd2; in TEST_F() local
782 fd2 = open(FULLPATH2, O_WRONLY); in TEST_F()
783 ASSERT_GE(fd2, 0); in TEST_F()
785 ASSERT_EQ(0, fstat(fd2, &sb2a)) << strerror(errno); in TEST_F()
789 ASSERT_EQ(len, copy_file_range(fd1, &start1, fd2, &start2, len, 0)); in TEST_F()
791 ASSERT_EQ(0, fstat(fd2, &sb2b)) << strerror(errno); in TEST_F()
801 leak(fd2); in TEST_F()