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

Function fdatasync

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

Source from the content-addressed store, hash-verified

284)))]
285#[inline]
286pub fn fdatasync<Fd: AsFd>(fd: Fd) -> io::Result<()> {
287 backend::fs::syscalls::fdatasync(fd.as_fd())
288}
289
290/// `ftruncate(fd, length)`—Sets the length of a file.
291///

Callers 1

test_fileFunction · 0.50

Calls 1

as_fdMethod · 0.45

Tested by 1

test_fileFunction · 0.40