# std.Io.Threaded: prevent 0-byte file writes · gitcafe/zig

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

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

Visibility: public

Requested revision: ace08ba642361d57268b1f102c371b060a1f9a2c

Requested commit: ace08ba642361d57268b1f102c371b060a1f9a2c

Commit: ace08ba642361d57268b1f102c371b060a1f9a2c

Tree: dd32ca5898cee7afe81b6139b32df398514b1448

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: prevent 0-byte file writes

these cause EINVAL on darwin and are generally a wasted syscall.

and remove a bogus error from File.Writer.Error.

```

## Parents

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

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