diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-08-22 15:42:36 -0400 |
|---|---|---|
| committer | Laytan <laytanlaats@hotmail.com> | 2024-08-28 19:53:20 +0200 |
| commit | ef2cd9d97f62ec3749573f97b7a34d4a24368504 (patch) | |
| tree | a6f764bcb95748211f51310908f53f8b29f573d1 | |
| parent | 5b9e9fb822ee45f64322d0f10a406d567e6563a8 (diff) | |
Copy missing errors in `os2._get_platform_error` from `posix` to `linux`
| -rw-r--r-- | core/os/os2/errors_linux.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/os/os2/errors_linux.odin b/core/os/os2/errors_linux.odin index 29815bf79..ed55ea15e 100644 --- a/core/os/os2/errors_linux.odin +++ b/core/os/os2/errors_linux.odin @@ -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)) |