os2: improve absolute/full path handling for posix

This commit is contained in:
Laytan Laats
2024-08-14 01:45:23 +02:00
parent a73677d21a
commit b07d0b38b1
10 changed files with 137 additions and 26 deletions
+5 -1
View File
@@ -115,7 +115,11 @@ open :: proc(name: string, flags := File_Flags{.Read}, perm := 0o777) -> (^File,
@(require_results)
new_file :: proc(handle: uintptr, name: string) -> ^File {
return _new_file(handle, name) or_else panic("Out of memory")
file, err := _new_file(handle, name)
if err != nil {
panic(error_string(err))
}
return file
}
@(require_results)