| ... | @@ -54,7 +54,7 @@ pub fn openFileC(self: Dir, sub_path: []const u8, flags: OpenFileFlags) !File { | ... | @@ -54,7 +54,7 @@ pub fn openFileC(self: Dir, sub_path: []const u8, flags: OpenFileFlags) !File { |
| 54 | return openFile(self, buf[0..sub_path.len :0], flags); | 54 | return openFile(self, buf[0..sub_path.len :0], flags); |
| 55 | } | 55 | } |
| 56 | | 56 | |
| 57 | pub const OpenFileFlags = packed struct { | 57 | pub const OpenFileFlags = struct { |
| 58 | mode: enum(u8) { read_only, write_only, read_write } = .read_only, | 58 | mode: enum(u8) { read_only, write_only, read_write } = .read_only, |
| 59 | lock: enum(u8) { none, shared, exclusive } = .none, | 59 | lock: enum(u8) { none, shared, exclusive } = .none, |
| 60 | }; | 60 | }; |
| ... | @@ -72,7 +72,7 @@ pub fn openDirC(self: Dir, sub_path: []const u8, flags: OpenDirFlags) !Dir { | ... | @@ -72,7 +72,7 @@ pub fn openDirC(self: Dir, sub_path: []const u8, flags: OpenDirFlags) !Dir { |
| 72 | return openDir(self, buf[0..sub_path.len :0], flags); | 72 | return openDir(self, buf[0..sub_path.len :0], flags); |
| 73 | } | 73 | } |
| 74 | | 74 | |
| 75 | pub const OpenDirFlags = packed struct { | 75 | pub const OpenDirFlags = struct { |
| 76 | // | 76 | // |
| 77 | }; | 77 | }; |
| 78 | | 78 | |