authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-19 13:06:13-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-07-19 13:06:13-04:00
log0736e6aa347f065c15c7acaa0a7d2cc61b85bba6
treeb441140ca415d61f6056e0ef1236fca178fe6cbf
parenta9f0681f85679b602cd5f322f6b9b4b2d18a5c4a

std.os.File: add missing pub modifiers


1 files changed, 3 insertions(+), 3 deletions(-)

std/os/file.zig+3-3
......@@ -15,7 +15,7 @@ pub const File = struct {
1515 /// The OS-specific file descriptor or file handle.
1616 handle: os.FileHandle,
1717
18 const OpenError = os.WindowsOpenError || os.PosixOpenError;
18 pub const OpenError = os.WindowsOpenError || os.PosixOpenError;
1919
2020 /// `path` needs to be copied in memory to add a null terminating byte, hence the allocator.
2121 /// Call close to clean up.
......@@ -289,7 +289,7 @@ pub const File = struct {
289289 Unexpected,
290290 };
291291
292 fn mode(self: *File) ModeError!os.FileMode {
292 pub fn mode(self: *File) ModeError!os.FileMode {
293293 if (is_posix) {
294294 var stat: posix.Stat = undefined;
295295 const err = posix.getErrno(posix.fstat(self.handle, &stat));
......@@ -364,7 +364,7 @@ pub const File = struct {
364364
365365 pub const WriteError = os.WindowsWriteError || os.PosixWriteError;
366366
367 fn write(self: *File, bytes: []const u8) WriteError!void {
367 pub fn write(self: *File, bytes: []const u8) WriteError!void {
368368 if (is_posix) {
369369 try os.posixWrite(self.handle, bytes);
370370 } else if (is_windows) {