diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-11-26 16:59:44 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-11-26 18:19:46 +0100 |
commit | 603ae243f6fe03208a3bb92adecf72403367bd95 (patch) | |
tree | 7d839778df93a22f37884830f95d58927f6ed774 /support/support.h | |
parent | 05d38b3ef505af2fbe8df0d07f4158fc0e96a7a5 (diff) | |
download | glibc-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.h | 5 |
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); |