From 57e87ac5b8b82de51c479857adbe06641908534d Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 22 Oct 2023 19:57:46 +0800 Subject: [PATCH 1/3] fix: copy_file_range fd_in arg on Linux/Android --- src/fcntl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcntl.rs b/src/fcntl.rs index 5dd05751cf..3b37356027 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -712,7 +712,7 @@ pub fn copy_file_range( let ret = unsafe { libc::syscall( libc::SYS_copy_file_range, - fd_in, + fd_in.as_fd().as_raw_fd(), off_in, fd_out.as_fd().as_raw_fd(), off_out, From 7e5bf4cfd0a12815f80db0e7b3fed8e14f848a91 Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 5 Nov 2023 10:31:27 +0800 Subject: [PATCH 2/3] trigger CI --- src/fcntl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fcntl.rs b/src/fcntl.rs index 3b37356027..497cec132e 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -714,6 +714,7 @@ pub fn copy_file_range( libc::SYS_copy_file_range, fd_in.as_fd().as_raw_fd(), off_in, + fd_out.as_fd().as_raw_fd(), off_out, len, From 46544a586bfde3c7328d3b8999cd4825c5ca494a Mon Sep 17 00:00:00 2001 From: Steve Lau Date: Sun, 5 Nov 2023 10:31:52 +0800 Subject: [PATCH 3/3] trigger CI --- src/fcntl.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fcntl.rs b/src/fcntl.rs index 497cec132e..3b37356027 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -714,7 +714,6 @@ pub fn copy_file_range( libc::SYS_copy_file_range, fd_in.as_fd().as_raw_fd(), off_in, - fd_out.as_fd().as_raw_fd(), off_out, len,