(fd: Fd)
| 261 | /// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html |
| 262 | #[inline] |
| 263 | pub fn fsync<Fd: AsFd>(fd: Fd) -> io::Result<()> { |
| 264 | backend::fs::syscalls::fsync(fd.as_fd()) |
| 265 | } |
| 266 | |
| 267 | /// `fdatasync(fd)`—Ensures that file data is written to the underlying |
| 268 | /// storage device. |