Transfers the kernel state of a file descriptor to the disk.
fn fsync(fd: i32) -> i32
The file descriptor to be synchronized.
Returns success or an error value.
fsync(2)