|
@@ -6,6 +6,7 @@
|
|
|
/* glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE */
|
|
|
#define _DEFAULT_SOURCE 1
|
|
|
|
|
|
+#include <fcntl.h>
|
|
|
#include <stdbool.h>
|
|
|
#include <stddef.h>
|
|
|
#include <stdlib.h>
|
|
@@ -35,6 +36,7 @@ bool lsdir_no_dot_filter(const char *name, struct dirent *d);
|
|
|
int copyfile(const char *from, const char *to);
|
|
|
int copyfile_mode(const char *from, const char *to, mode_t mode);
|
|
|
int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi);
|
|
|
+int copyfile_offset(int ifd, loff_t off_in, int ofd, loff_t off_out, u64 size);
|
|
|
|
|
|
ssize_t readn(int fd, void *buf, size_t n);
|
|
|
ssize_t writen(int fd, const void *buf, size_t n);
|