mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 15:23:15 +00:00
Copy missing errors in os2._get_platform_error from posix to linux
This commit is contained in:
@@ -154,6 +154,14 @@ _get_platform_error :: proc(errno: linux.Errno) -> Error {
|
||||
return .Exist
|
||||
case .ENOENT:
|
||||
return .Not_Exist
|
||||
case .ETIMEDOUT:
|
||||
return .Timeout
|
||||
case .EPIPE:
|
||||
return .Broken_Pipe
|
||||
case .EBADF:
|
||||
return .Invalid_File
|
||||
case .ENOMEM:
|
||||
return .Out_Of_Memory
|
||||
}
|
||||
|
||||
return Platform_Error(i32(errno))
|
||||
|
||||
Reference in New Issue
Block a user