aboutsummaryrefslogtreecommitdiff
path: root/std/io.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-05-26 19:56:37 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-05-26 19:56:37 -0400
commit2b42e910bf4696032158cc7ae268d3c69d699f70 (patch)
treed00255e0c8d3a857e62777524f4271edbaa69c75 /std/io.zig
parent44a049e01eef654fee82a1ee4e1aaf37447319ce (diff)
downloadzig-2b42e910bf4696032158cc7ae268d3c69d699f70.tar.gz
zig-2b42e910bf4696032158cc7ae268d3c69d699f70.zip
behavior tests passing on Linux
Diffstat (limited to 'std/io.zig')
-rw-r--r--std/io.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/io.zig b/std/io.zig
index 41dc38f245..258961fdfc 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -1,12 +1,12 @@
const std = @import("std.zig");
const builtin = @import("builtin");
-const Os = builtin.Os;
const c = std.c;
const math = std.math;
const debug = std.debug;
const assert = debug.assert;
const os = std.os;
+const fs = std.fs;
const mem = std.mem;
const meta = std.meta;
const trait = meta.trait;
@@ -985,7 +985,7 @@ pub fn BitOutStream(endian: builtin.Endian, comptime Error: type) type {
}
pub const BufferedAtomicFile = struct {
- atomic_file: os.AtomicFile,
+ atomic_file: fs.AtomicFile,
file_stream: File.OutStream,
buffered_stream: BufferedOutStream(File.WriteError),
allocator: *mem.Allocator,
@@ -1001,7 +1001,7 @@ pub const BufferedAtomicFile = struct {
};
errdefer allocator.destroy(self);
- self.atomic_file = try os.AtomicFile.init(dest_path, File.default_mode);
+ self.atomic_file = try fs.AtomicFile.init(dest_path, File.default_mode);
errdefer self.atomic_file.deinit();
self.file_stream = self.atomic_file.file.outStream();