mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +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
|
return .Exist
|
||||||
case .ENOENT:
|
case .ENOENT:
|
||||||
return .Not_Exist
|
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))
|
return Platform_Error(i32(errno))
|
||||||
|
|||||||
Reference in New Issue
Block a user