Lines Matching refs:infd
41 static int infd; variable
69 xwrite (infd, random_data, current_size); in simple_file_copy()
75 xlseek (infd, 1, SEEK_SET); in simple_file_copy()
82 xlseek (infd, 3, SEEK_SET); in simple_file_copy()
102 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in simple_file_copy()
107 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 1); in simple_file_copy()
110 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 3 + length); in simple_file_copy()
155 xftruncate (infd, 0); in short_copy()
156 xlseek (infd, 0, SEEK_SET); in short_copy()
157 xwrite (infd, random_data, current_size - !shift); in short_copy()
162 xlseek (infd, 2, SEEK_SET); in short_copy()
167 xlseek (infd, shift, SEEK_SET); in short_copy()
174 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in short_copy()
186 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 2); in short_copy()
189 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), current_size - 1 + shift); in short_copy()
199 TEST_COMPARE (copy_file_range (infd, pinoff, outfd, poutoff, in short_copy()
205 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 2); in short_copy()
208 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), current_size - 1 + shift); in short_copy()
240 infd = create_temp_file ("tst-copy_file_range-in-", &infile); in do_test()
243 ssize_t ret = copy_file_range (infd, NULL, outfd, NULL, 0, 0); in do_test()
251 xclose (infd); in do_test()
276 infd = xopen (infile, O_RDWR | O_LARGEFILE, 0); in do_test()
277 xftruncate (infd, 0); in do_test()
283 xclose (infd); in do_test()