Home
last modified time | relevance | path

Searched refs:src_fd (Results 1 – 3 of 3) sorted by relevance

/coreutils/src/
Dinstall.c173 int src_fd, dest_fd; in need_copy() local
239 src_fd = open (src_name, O_RDONLY | O_BINARY); in need_copy()
240 if (src_fd < 0) in need_copy()
246 close (src_fd); in need_copy()
250 content_match = have_same_content (src_fd, dest_fd); in need_copy()
252 close (src_fd); in need_copy()
Dcopy.c313 sparse_copy (int src_fd, int dest_fd, char **abuf, size_t buf_size, in sparse_copy() argument
336 ssize_t n_copied = copy_file_range (src_fd, nullptr, dest_fd, nullptr, in sparse_copy()
392 ssize_t n_read = read (src_fd, buf, MIN (max_n_read, buf_size)); in sparse_copy()
487 clone_file (int dest_fd, int src_fd) in clone_file() argument
490 return ioctl (dest_fd, FICLONE, src_fd); in clone_file()
493 (void) src_fd; in clone_file()
545 lseek_copy (int src_fd, int dest_fd, char **abuf, size_t buf_size, in lseek_copy() argument
560 off_t ext_end = lseek (src_fd, ext_start, SEEK_HOLE); in lseek_copy()
569 src_total_size = lseek (src_fd, 0, SEEK_END); in lseek_copy()
584 if (lseek (src_fd, ext_start, SEEK_SET) < 0) in lseek_copy()
[all …]
Dhead.c194 copy_fd (int src_fd, uintmax_t n_bytes) in copy_fd() argument
203 size_t n_read = safe_read (src_fd, buf, n_to_read); in copy_fd()