about summary refs log tree commit diff
path: root/support/support.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-11-26 16:59:44 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-11-26 18:19:46 +0100
commit603ae243f6fe03208a3bb92adecf72403367bd95 (patch)
tree7d839778df93a22f37884830f95d58927f6ed774 /support/support.h
parent05d38b3ef505af2fbe8df0d07f4158fc0e96a7a5 (diff)
downloadglibc-603ae243f6fe03208a3bb92adecf72403367bd95.tar.gz
glibc-603ae243f6fe03208a3bb92adecf72403367bd95.tar.xz
glibc-603ae243f6fe03208a3bb92adecf72403367bd95.zip
support: Add support_copy_file
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'support/support.h')
-rw-r--r--support/support.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h
index 905b5a76d8..abda3a69f1 100644
--- a/support/support.h
+++ b/support/support.h
@@ -119,6 +119,11 @@ extern const char support_install_rootsbindir[];
 /* Corresponds to the install's compiled locale directory.  */
 extern const char support_complocaledir_prefix[];
 
+/* Copies the file at the path FROM to TO.  If TO does not exist, it
+   is created.  If TO is a regular file, it is truncated before
+   copying.  The file mode is copied, but the permissions are not.  */
+extern void support_copy_file (const char *from, const char *to);
+
 extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *,
 					size_t, unsigned int);