Skip to content

Commit ba79bfa

Browse files
committed
Auto merge of #2479 - devnexen:fbsd_copy_file_range, r=Amanieu
freebsd 13 add copy_file_range api compatible with linux's glibc wrapper
2 parents f93c6c3 + 6276d19 commit ba79bfa

File tree

1 file changed

+9
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd/freebsd13

1 file changed

+9
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,15 @@ extern "C" {
290290
mask: *const ::domainset_t,
291291
policy: ::c_int,
292292
) -> ::c_int;
293+
294+
pub fn copy_file_range(
295+
infd: ::c_int,
296+
inoffp: *mut ::off_t,
297+
outfd: ::c_int,
298+
outoffp: *mut ::off_t,
299+
len: ::size_t,
300+
flags: ::c_uint,
301+
) -> ::ssize_t;
293302
}
294303

295304
#[link(name = "kvm")]

0 commit comments

Comments
 (0)