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 | } |