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 /std/event.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 'std/event.zig')
| -rw-r--r-- | std/event.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/std/event.zig b/std/event.zig index 56c5223ba3..8409cc5c00 100644 --- a/std/event.zig +++ b/std/event.zig @@ -6,6 +6,7 @@ pub const Locked = @import("event/locked.zig").Locked; pub const RwLock = @import("event/rwlock.zig").RwLock; pub const RwLocked = @import("event/rwlocked.zig").RwLocked; pub const Loop = @import("event/loop.zig").Loop; +pub const io = @import("event/io.zig"); pub const fs = @import("event/fs.zig"); pub const net = @import("event/net.zig"); @@ -14,6 +15,7 @@ test "import event tests" { _ = @import("event/fs.zig"); _ = @import("event/future.zig"); _ = @import("event/group.zig"); + _ = @import("event/io.zig"); _ = @import("event/lock.zig"); _ = @import("event/locked.zig"); _ = @import("event/rwlock.zig"); |
