From df41911fbd985759a54a57bd921e292b2b3450f6 Mon Sep 17 00:00:00 2001 From: Vikram Auradkar Date: Tue, 5 Sep 2023 22:48:01 -0700 Subject: [PATCH 1/2] android: add readahead --- src/unix/linux_like/android/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 40fbb607a99a0..d77dd2267335b 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -3331,6 +3331,7 @@ extern "C" { pub fn fallocate64(fd: ::c_int, mode: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; pub fn posix_fallocate(fd: ::c_int, offset: ::off_t, len: ::off_t) -> ::c_int; pub fn posix_fallocate64(fd: ::c_int, offset: ::off64_t, len: ::off64_t) -> ::c_int; + pub fn readahead(fd: ::c_int, offset: ::off64_t, count: ::size_t) -> ::ssize_t; pub fn getxattr( path: *const c_char, name: *const c_char, From 3d68b62bac4ce5f16d5b0e34e539ad1ced4cfb04 Mon Sep 17 00:00:00 2001 From: Vikram Auradkar Date: Mon, 25 Sep 2023 20:10:08 +0000 Subject: [PATCH 2/2] Update crate version to 0.2.148 --- Cargo.toml | 2 +- libc-test/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3e5ca175cd078..c06e0931d52f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc" -version = "0.2.147" +version = "0.2.148" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index 5e54c63007e26..87efab5d0542b 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libc-test" -version = "0.2.147" +version = "0.2.148" authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" build = "build.rs" @@ -12,7 +12,7 @@ A test crate for the libc crate. [dependencies.libc] path = ".." -version = "0.2.147" +version = "0.2.148" default-features = false [build-dependencies]