summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-06-04 19:58:23 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-06-04 19:58:52 -0700
commita1beabcb14cde661c36f7a3c7c17b5871704003e (patch)
tree0c15cfff78db1028c63a9b15e240dba020dd1a7e /modules
parent508eb99193de67a76bd3e02e85504cbc555f0a61 (diff)
downloadgnulib-a1beabcb14cde661c36f7a3c7c17b5871704003e.tar.gz
copy-file: prefer copy_file_range
* lib/copy-file.c: Do not include xalloc.h. (qcopy_file_preserving): Allocate a buffer only if copy_file_range does not suffice. If the allocation fails don't give up; just use a small stack-based buffer. Prefer copy_file_range if it works. * modules/copy-file (Depends-on): Add copy-file-range. Remove xalloc.
Diffstat (limited to 'modules')
-rw-r--r--modules/copy-file2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/copy-file b/modules/copy-file
index e1bda49733..bc1527757d 100644
--- a/modules/copy-file
+++ b/modules/copy-file
@@ -10,6 +10,7 @@ Depends-on:
acl
binary-io
close
+copy-file-range
error
fstat
full-write
@@ -22,7 +23,6 @@ stat-time
stdlib
unistd
utimens
-xalloc
configure.ac:
gl_COPY_FILE