Skip to content

Commit 1e8943d

Browse files
committed
Auto merge of rust-lang#3271 - devnexen:android_sendfile, r=JohnTitor
android adding sendfile64 variant
2 parents b5e3a8a + cee1dec commit 1e8943d

File tree

1 file changed

+7
-1
lines changed
  • src/unix/linux_like/android

1 file changed

+7
-1
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,13 @@ extern "C" {
34143414
pub fn sendfile(
34153415
out_fd: ::c_int,
34163416
in_fd: ::c_int,
3417-
offset: *mut off_t,
3417+
offset: *mut ::off_t,
3418+
count: ::size_t,
3419+
) -> ::ssize_t;
3420+
pub fn sendfile64(
3421+
out_fd: ::c_int,
3422+
in_fd: ::c_int,
3423+
offset: *mut ::off64_t,
34183424
count: ::size_t,
34193425
) -> ::ssize_t;
34203426
pub fn setfsgid(gid: ::gid_t) -> ::c_int;

0 commit comments

Comments
 (0)