Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
286
pub 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_file
Function · 0.50
Calls
1
as_fd
Method · 0.45
Tested by
1
test_file
Function · 0.40