copy: teach copy_bytes() sendfile() support, and then replace sendfile_full() by it

This commit is contained in:
Lennart Poettering
2014-11-07 01:19:56 +01:00
parent 0c2576ef74
commit cda134ab1e
7 changed files with 91 additions and 127 deletions
+1
View File
@@ -24,6 +24,7 @@
#include <stdbool.h>
#include <sys/types.h>
int copy_file_fd(const char *from, int to);
int copy_file(const char *from, const char *to, int flags, mode_t mode);
int copy_tree(const char *from, const char *to, bool merge);
int copy_bytes(int fdf, int fdt, off_t max_bytes);