Coverage Report

Created: 2024-12-17 06:15

/rust/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.42/src/fs/sync.rs
Line
Count
Source (jump to first uncovered line)
1
use crate::backend;
2
3
/// `sync`—Flush cached filesystem data for all filesystems.
4
///
5
/// # References
6
///  - [POSIX]
7
///  - [Linux]
8
///
9
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html
10
/// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html
11
#[inline]
12
0
pub fn sync() {
13
0
    backend::fs::syscalls::sync();
14
0
}