Skip to content
Snippets Groups Projects
Commit 82f07070 authored by Sergio Lopez's avatar Sergio Lopez
Browse files

Add copy_file_range to linux_like/linux/gnu


This is a Linux-only feature that was already present as a
syscall. Add it just to linux/gnu for the moment, as the musl version
bundled in the Rust's x86_64-unknown-linux-musl toolchain doesn't
include it yet.

Signed-off-by: default avatarSergio Lopez <slp@redhat.com>
parent 783ddd8e
No related branches found
No related tags found
No related merge requests found
......@@ -1198,6 +1198,14 @@ extern "C" {
pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
#[link_name = "ntp_gettimex"]
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
pub fn copy_file_range(
fd_in: ::c_int,
off_in: *mut ::off64_t,
fd_out: ::c_int,
off_out: *mut ::off64_t,
len: ::size_t,
flags: ::c_uint,
) -> ::ssize_t;
}
#[link(name = "util")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment