Fix bugs and inconsistencies with linux versions of os package

This commit is contained in:
matt
2018-12-30 02:06:41 -07:00
parent 3ba3421f5f
commit e084799b31
3 changed files with 129 additions and 43 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ open :: proc(path: string, flags: int = O_RDONLY, mode: int = 0) -> (Handle, Err
handle := _unix_open(cstr, flags, mode);
delete(cstr);
if handle == -1 {
return 0, 1;
return INVALID_HANDLE, 1;
}
return handle, 0;
}