mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Add missing flush functionality to os platforms
Platforms: - FreeBSD - Haiku - Linux - NetBSD - OpenBSD
This commit is contained in:
@@ -584,8 +584,7 @@ close :: proc(fd: Handle) -> Error {
|
||||
}
|
||||
|
||||
flush :: proc(fd: Handle) -> Error {
|
||||
// do nothing
|
||||
return nil
|
||||
return _get_errno(unix.sys_fsync(int(fd)))
|
||||
}
|
||||
|
||||
// If you read or write more than `SSIZE_MAX` bytes, result is implementation defined (probably an error).
|
||||
|
||||
Reference in New Issue
Block a user