Sha256: 84f24de0ea53f77bd5c471e097abcbecd19c4843b69607f9be9030eb7c9d5aa5

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

use crate::backend;

/// `sync`—Flush cached filesystem data for all filesystems.
///
/// # References
///  - [POSIX]
///  - [Linux]
///
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html
/// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html
#[inline]
pub fn sync() {
    backend::fs::syscalls::sync();
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rustix-0.38.44/src/fs/sync.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rustix-0.38.43/src/fs/sync.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rustix-0.38.41/src/fs/sync.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rustix-0.38.37/src/fs/sync.rs