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 {...@@ -15,7 +15,7 @@ pub const File = struct {
15 /// The OS-specific file descriptor or file handle.15 /// The OS-specific file descriptor or file handle.
16 handle: os.FileHandle,16 handle: os.FileHandle,
1717
18 const OpenError = os.WindowsOpenError || os.PosixOpenError;18 pub const OpenError = os.WindowsOpenError || os.PosixOpenError;
1919
20 /// `path` needs to be copied in memory to add a null terminating byte, hence the allocator.20 /// `path` needs to be copied in memory to add a null terminating byte, hence the allocator.
21 /// Call close to clean up.21 /// Call close to clean up.
...@@ -289,7 +289,7 @@ pub const File = struct {...@@ -289,7 +289,7 @@ pub const File = struct {
289 Unexpected,289 Unexpected,
290 };290 };
291291
292 fn mode(self: *File) ModeError!os.FileMode {292 pub fn mode(self: *File) ModeError!os.FileMode {
293 if (is_posix) {293 if (is_posix) {
294 var stat: posix.Stat = undefined;294 var stat: posix.Stat = undefined;
295 const err = posix.getErrno(posix.fstat(self.handle, &stat));295 const err = posix.getErrno(posix.fstat(self.handle, &stat));
...@@ -364,7 +364,7 @@ pub const File = struct {...@@ -364,7 +364,7 @@ pub const File = struct {
364364
365 pub const WriteError = os.WindowsWriteError || os.PosixWriteError;365 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 {
368 if (is_posix) {368 if (is_posix) {
369 try os.posixWrite(self.handle, bytes);369 try os.posixWrite(self.handle, bytes);
370 } else if (is_windows) {370 } else if (is_windows) {