From 7a3e51a770b4f4a7332a6b1fcf050653a60482eb Mon Sep 17 00:00:00 2001 From: JohnTitor Date: Tue, 30 Mar 2021 15:19:36 +0900 Subject: [PATCH] Make `pwrite64` available on uclibc --- src/unix/linux_like/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/unix/linux_like/mod.rs b/src/unix/linux_like/mod.rs index 2a1b95f1..cd4247d3 100644 --- a/src/unix/linux_like/mod.rs +++ b/src/unix/linux_like/mod.rs @@ -1546,6 +1546,12 @@ extern "C" { count: ::size_t, offset: off64_t, ) -> ::ssize_t; + pub fn pwrite64( + fd: ::c_int, + buf: *const ::c_void, + count: ::size_t, + offset: off64_t, + ) -> ::ssize_t; pub fn readdir64(dirp: *mut ::DIR) -> *mut ::dirent64; pub fn readdir64_r( dirp: *mut ::DIR, @@ -1677,12 +1683,6 @@ cfg_if! { iovcnt: ::c_int, offset: ::off64_t, ) -> ::ssize_t; - pub fn pwrite64( - fd: ::c_int, - buf: *const ::c_void, - count: ::size_t, - offset: off64_t, - ) -> ::ssize_t; pub fn pwritev64( fd: ::c_int, iov: *const ::iovec,