diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-30 17:23:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-30 17:28:35 -0400 |
| commit | 9d4eaf1e07525a72fa54cfaa346a18bf18953af4 (patch) | |
| tree | ccac84631127e309d5fb500c4407e8e40c444aff /src-self-hosted/libc_installation.zig | |
| parent | ba78ae0ae73ac38a2bb32c618cd145b4d2f9602e (diff) | |
| download | zig-9d4eaf1e07525a72fa54cfaa346a18bf18953af4.tar.gz zig-9d4eaf1e07525a72fa54cfaa346a18bf18953af4.zip | |
update std lib API for I/O
std.io.FileInStream -> std.os.File.InStream
std.io.FileInStream.init(file) -> file.inStream()
std.io.FileOutStream -> std.os.File.OutStream
std.io.FileOutStream.init(file) -> file.outStream()
remove a lot of error code possibilities from os functions
std.event.net.socketRead -> std.event.net.read
std.event.net.socketWrite -> std.event.net.write
add std.event.net.readv
add std.event.net.writev
add std.event.net.readvPosix
add std.event.net.writevPosix
add std.event.net.OutStream
add std.event.net.InStream
add std.event.io.InStream
add std.event.io.OutStream
Diffstat (limited to 'src-self-hosted/libc_installation.zig')
| -rw-r--r-- | src-self-hosted/libc_installation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-self-hosted/libc_installation.zig b/src-self-hosted/libc_installation.zig index 5e292ff8b2..bbfc0125f4 100644 --- a/src-self-hosted/libc_installation.zig +++ b/src-self-hosted/libc_installation.zig @@ -30,7 +30,7 @@ pub const LibCInstallation = struct { self: *LibCInstallation, allocator: *std.mem.Allocator, libc_file: []const u8, - stderr: *std.io.OutStream(std.io.FileOutStream.Error), + stderr: *std.io.OutStream(std.os.File.WriteError), ) !void { self.initEmpty(); @@ -100,7 +100,7 @@ pub const LibCInstallation = struct { } } - pub fn render(self: *const LibCInstallation, out: *std.io.OutStream(std.io.FileOutStream.Error)) !void { + pub fn render(self: *const LibCInstallation, out: *std.io.OutStream(std.os.File.WriteError)) !void { @setEvalBranchQuota(4000); try out.print( \\# The directory that contains `stdlib.h`. |
