MCPcopy Index your code
hub / github.com/RustPython/RustPython / fsync

Function fsync

crates/common/src/crt_fd.rs:326–329  ·  view source on GitHub ↗
(fd: Borrowed<'_>)

Source from the content-addressed store, hash-verified

324}
325
326pub fn fsync(fd: Borrowed<'_>) -> io::Result<()> {
327 cvt(unsafe { suppress_iph!(c::fsync(fd.as_raw())) })?;
328 Ok(())
329}
330
331fn _close(fd: Raw) -> io::Result<()> {
332 cvt(unsafe { suppress_iph!(c::close(fd)) })?;

Callers

nothing calls this directly

Calls 1

cvtFunction · 0.85

Tested by

no test coverage detected