# std: remove error.BrokenPipe from file reads, add error.EndOfStream · gitcafe/zig

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

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

Visibility: public

Requested revision: f69891797a831adfeaccaa352ffc8464f6fc3dbd

Requested commit: f69891797a831adfeaccaa352ffc8464f6fc3dbd

Commit: f69891797a831adfeaccaa352ffc8464f6fc3dbd

Tree: 68ba09bd492d4495e8074852e0ea1ebbebe9ee6b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: remove error.BrokenPipe from file reads, add error.EndOfStream

and make reading file streaming allowed to return 0 byte reads.
According to Microsoft documentation, on Windows it is possible to get
0-byte reads from pipes when 0-byte writes are made.

```

## Parents

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

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