aboutsummaryrefslogtreecommitdiff
path: root/include/erofs/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erofs/io.h')
-rw-r--r--include/erofs/io.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/erofs/io.h b/include/erofs/io.h
index 0763baf..2597bf4 100644
--- a/include/erofs/io.h
+++ b/include/erofs/io.h
@@ -7,6 +7,7 @@
#ifndef __EROFS_IO_H
#define __EROFS_IO_H
+#define _GNU_SOURCE
#include <unistd.h>
#include "internal.h"
@@ -24,6 +25,10 @@ int dev_fsync(void);
int dev_resize(erofs_blk_t nblocks);
u64 dev_length(void);
+int erofs_copy_file_range(int fd_in, erofs_off_t *off_in,
+ int fd_out, erofs_off_t *off_out,
+ size_t length);
+
static inline int blk_write(const void *buf, erofs_blk_t blkaddr,
u32 nblocks)
{