MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / fsync

Function fsync

src/fs/fd.rs:263–265  ·  view source on GitHub ↗
(fd: Fd)

Source from the content-addressed store, hash-verified

261/// [`fcntl_fullfsync`]: https://docs.rs/rustix/*/x86_64-apple-darwin/rustix/fs/fn.fcntl_fullfsync.html
262#[inline]
263pub 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.

Callers 1

test_fileFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_fileFunction · 0.40