Searched refs:infd (Results 1 – 7 of 7) sorted by relevance
/glibc-2.36/io/ |
D | tst-copy_file_range.c | 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() [all …]
|
D | copy_file_range.c | 23 copy_file_range (int infd, __off64_t *pinoff, in copy_file_range() argument
|
/glibc-2.36/libio/ |
D | tst-wfile-sync.c | 36 int infd; in do_test() local 39 infd = create_temp_file ("tst-wfile-sync-in-", &infile); in do_test() 40 xwrite (infd, test_data, strlen (test_data)); in do_test() 41 xclose (infd); in do_test() 43 infd = xopen (infile, O_RDONLY, 0); in do_test() 44 infp = fdopen (infd, "r"); in do_test() 52 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 1); in do_test()
|
/glibc-2.36/support/ |
D | support_capture_subprocess.c | 117 int infd = -1; in copy_and_spawn_sgid() local 125 infd = open ("/proc/self/exe", O_RDONLY); in copy_and_spawn_sgid() 126 if (infd < 0) in copy_and_spawn_sgid() 137 ssize_t rdcount = read (infd, buf, sizeof (buf)); in copy_and_spawn_sgid() 165 TEST_VERIFY (close (infd) == 0); in copy_and_spawn_sgid() 173 infd = outfd = -1; in copy_and_spawn_sgid() 182 if (infd >= 0) in copy_and_spawn_sgid() 183 close (infd); in copy_and_spawn_sgid()
|
D | support_copy_file_range.c | 29 support_copy_file_range (int infd, __off64_t *pinoff, in support_copy_file_range() argument 41 if (fstat64 (infd, &instat) != 0 || fstat64 (outfd, &outstat) != 0) in support_copy_file_range() 81 read_count = read (infd, buf, to_read); in support_copy_file_range() 83 read_count = pread64 (infd, buf, to_read, *pinoff); in support_copy_file_range() 122 (void) lseek64 (infd, -overread, SEEK_CUR); in support_copy_file_range()
|
D | xcopy_file_range.c | 24 xcopy_file_range (int infd, off64_t *pinoff, int outfd, off64_t *poutoff, in xcopy_file_range() argument 27 ssize_t status = support_copy_file_range (infd, pinoff, outfd, in xcopy_file_range()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | copy_file_range.c | 24 copy_file_range (int infd, __off64_t *pinoff, in copy_file_range() argument 28 return SYSCALL_CANCEL (copy_file_range, infd, pinoff, outfd, poutoff, in copy_file_range()
|