Lines Matching refs:outfd
43 static int outfd; variable
89 xlseek (outfd, 4, SEEK_SET); in simple_file_copy()
95 xlseek (outfd, 6, SEEK_SET); in simple_file_copy()
102 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in simple_file_copy()
114 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 4); in simple_file_copy()
117 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 6 + length); in simple_file_copy()
120 xfstat (outfd, &st); in simple_file_copy()
131 xlseek (outfd, 0, SEEK_SET); in simple_file_copy()
133 TEST_COMPARE (read (outfd, bytes, st.st_size), st.st_size); in simple_file_copy()
169 ftruncate (outfd, 0); in short_copy()
170 xlseek (outfd, 0, SEEK_SET); in short_copy()
174 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in short_copy()
177 TEST_COMPARE (pread64 (outfd, buffer, current_size, 0), in short_copy()
193 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 0); in short_copy()
196 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), current_size - 1); in short_copy()
199 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in short_copy()
212 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 0); in short_copy()
215 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), current_size - 1); in short_copy()
241 outfd = create_temp_file ("tst-copy_file_range-out-", &outfile); in do_test()
243 ssize_t ret = copy_file_range (infd, NULL, outfd, NULL, 0, 0); in do_test()
252 xclose (outfd); in do_test()
278 outfd = xopen (outfile, O_RDWR | O_LARGEFILE, 0); in do_test()
279 xftruncate (outfd, 0); in do_test()
284 xclose (outfd); in do_test()