Removes the default create flag

This commit is contained in:
Platin21
2022-01-03 20:40:56 +01:00
parent 68e5f57e27
commit 8ff6f95571

View File

@@ -327,7 +327,7 @@ get_last_error_string :: proc() -> string {
return cast(string)_darwin_string_error(cast(c.int)get_last_error());
}
open :: proc(path: string, flags: int = O_RDWR|O_CREATE, mode: int = 0) -> (Handle, Errno) {
open :: proc(path: string, flags: int = O_RDWR, mode: int = 0) -> (Handle, Errno) {
cstr := strings.clone_to_cstring(path)
handle := _unix_open(cstr, i32(flags), u16(mode))
delete(cstr)