mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Add missing flush functionality to os platforms
Platforms: - FreeBSD - Haiku - Linux - NetBSD - OpenBSD
This commit is contained in:
@@ -447,8 +447,7 @@ close :: proc(fd: Handle) -> Error {
|
||||
}
|
||||
|
||||
flush :: proc(fd: Handle) -> Error {
|
||||
// do nothing
|
||||
return nil
|
||||
return cast(_Platform_Error)freebsd.fsync(cast(freebsd.Fd)fd)
|
||||
}
|
||||
|
||||
// If you read or write more than `INT_MAX` bytes, FreeBSD returns `EINVAL`.
|
||||
|
||||
Reference in New Issue
Block a user