wasi
pub unsafe fn fd_sync(fd: Fd) -> Result<()>
Synchronize the data and metadata of a file to disk. Note: This is similar to fsync in POSIX.
fsync