Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/musl: add copy_file_range syscall wrapper #3133

Merged
merged 2 commits into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ aio_suspend
aio_write
aiocb
clock_adjtime
copy_file_range
ctermid
explicit_bzero
futimes
Expand Down
8 changes: 0 additions & 8 deletions src/unix/linux_like/linux/gnu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1212,14 +1212,6 @@ extern "C" {
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
pub fn clock_adjtime(clk_id: ::clockid_t, buf: *mut ::timex) -> ::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;
pub fn fanotify_mark(
fd: ::c_int,
flags: ::c_uint,
Expand Down
9 changes: 9 additions & 0 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4702,6 +4702,15 @@ extern "C" {
longopts: *const option,
longindex: *mut ::c_int,
) -> ::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;
}

cfg_if! {
Expand Down