diff options
author | Shikha Panwar <shikhapanwar@google.com> | 2023-01-09 08:34:11 +0000 |
---|---|---|
committer | Shikha Panwar <shikhapanwar@google.com> | 2023-01-31 15:14:28 +0000 |
commit | c9c08e84c09c5f11d26a31e20625f7359b91c34c (patch) | |
tree | 27c075fb1b405c47c29c18e90cdf3c24ea9f610e | |
parent | c0a82a24514a73f9c49da1ad7382ccac2617d089 (diff) | |
download | libc-c9c08e84c09c5f11d26a31e20625f7359b91c34c.tar.gz |
Merge - ANDROID: Add syncfs API in liblibc
This is required to sync everything in a single filesystem. Other
solutions like sync() flushes all filesystems which is unnecessary, it
is also impractical to call fsync on all files of the filesystem.
PR: https://github.com/rust-lang/libc/pull/3060
Test: Builds
Bug: 264520098
Change-Id: I2d4749cc8c65de6d627f2b3cfccb0056fff3c700
-rw-r--r-- | src/unix/linux_like/android/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 6a29495f..1eedb86a 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -3506,6 +3506,8 @@ extern "C" { longopts: *const option, longindex: *mut ::c_int, ) -> ::c_int; + + pub fn syncfs(fd: ::c_int) -> ::c_int; } cfg_if! { |