# update std lib API for I/O · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9d4eaf1e07525a72fa54cfaa346a18bf18953af4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9d4eaf1e07525a72fa54cfaa346a18bf18953af4

Requested commit: 9d4eaf1e07525a72fa54cfaa346a18bf18953af4

Commit: 9d4eaf1e07525a72fa54cfaa346a18bf18953af4

Tree: ccac84631127e309d5fb500c4407e8e40c444aff

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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

```

## Parents

- [ba78ae0ae73ac38a2bb32c618cd145b4d2f9602e](https://git.cafe/gitcafe/zig/commit/ba78ae0ae73ac38a2bb32c618cd145b4d2f9602e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9d4eaf1e07525a72fa54cfaa346a18bf18953af4?format=markdown)
