Browse Source

Removes the default create flag

Platin21 3 years ago
parent
commit
8ff6f95571
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_darwin.odin

+ 1 - 1
core/os/os_darwin.odin

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