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

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

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

Visibility: public

Requested revision: 8a80b5464022a9fb4320e37f9dfc2aa83539ff07

Requested commit: 8a80b5464022a9fb4320e37f9dfc2aa83539ff07

Commit: 8a80b5464022a9fb4320e37f9dfc2aa83539ff07

Tree: 0fd5f5d40f3e9d1f600622f1c3554e95c7129aed

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

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

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