Sha256: a3b23543834281f347b0f873bd38154d31d404871188ac08f2b20b9196234cfd

Contents?: true

Size: 347 Bytes

Versions: 35

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/9699919799/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

35 entries across 28 versions & 1 rubygems

Version Path
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/sync.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/sync.rs
wasmtime-14.0.4 ./ext/cargo-vendor/rustix-0.38.20/src/fs/sync.rs
wasmtime-14.0.3 ./ext/cargo-vendor/rustix-0.38.20/src/fs/sync.rs
wasmtime-14.0.1 ./ext/cargo-vendor/rustix-0.38.20/src/fs/sync.rs
wasmtime-14.0.0 ./ext/cargo-vendor/rustix-0.38.20/src/fs/sync.rs
wasmtime-13.0.0 ./ext/cargo-vendor/rustix-0.38.8/src/fs/sync.rs