[os2]: Split file type from mode bits
This commit is contained in:
1 parent
0bb4cc6ce5
commit
7b501b22bb
13 files changed
+137
-120
No files matched your search
@@ -138,7 +138,7 @@ read_entire_file_from_file :: proc(f: ^File, allocator: runtime.Allocator) -> (d
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
write_entire_file :: proc(name: string, data: []byte, perm: File_Mode, truncate := true) -> Error {
|
||||
write_entire_file :: proc(name: string, data: []byte, perm: int, truncate := true) -> Error {
|
||||
flags := O_WRONLY|O_CREATE
|
||||
if truncate {
|
||||
flags |= O_TRUNC
|
||||
|
||||
Reference in new issue
Block a user