Copy missing errors in os2._get_platform_error from posix to linux

This commit is contained in:
Feoramund
2024-08-22 15:42:36 -04:00
committed by Laytan
parent 5b9e9fb822
commit ef2cd9d97f

View File

@@ -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))