add copy_file_range system call wrapper

This commit is contained in:
Árni Dagur authored and Rich Felker committed 2019-08-23 20:24:06 -04:00
1 parent 6ad514e4e2
commit f76e183111
2 files changed
+9

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"
ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out, off_t *off_out, size_t len, unsigned flags)
{
return syscall(SYS_copy_file_range, fd_in, off_in, fd_out, off_out, len, flags);
}