mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-21 21:52:04 +03:00
add copy_file_range system call wrapper
This commit is contained in:
parent
6ad514e4e2
commit
f76e183111
@ -188,6 +188,7 @@ char *get_current_dir_name(void);
|
||||
int syncfs(int);
|
||||
int euidaccess(const char *, int);
|
||||
int eaccess(const char *, int);
|
||||
ssize_t copy_file_range(int, off_t *, int, off_t *, size_t, unsigned);
|
||||
#endif
|
||||
|
||||
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
|
||||
|
8
src/linux/copy_file_range.c
Normal file
8
src/linux/copy_file_range.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user