Skip to content

Commit 55a5eb8

Browse files
authored
Merge pull request #1704 from slp/copy_file_range
Add copy_file_range to linux_like
2 parents 783ddd8 + 82f0707 commit 55a5eb8

File tree

1 file changed

+8
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+8
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,14 @@ extern "C" {
11981198
pub fn ntp_adjtime(buf: *mut timex) -> ::c_int;
11991199
#[link_name = "ntp_gettimex"]
12001200
pub fn ntp_gettime(buf: *mut ntptimeval) -> ::c_int;
1201+
pub fn copy_file_range(
1202+
fd_in: ::c_int,
1203+
off_in: *mut ::off64_t,
1204+
fd_out: ::c_int,
1205+
off_out: *mut ::off64_t,
1206+
len: ::size_t,
1207+
flags: ::c_uint,
1208+
) -> ::ssize_t;
12011209
}
12021210

12031211
#[link(name = "util")]

0 commit comments

Comments
 (0)