# std: Limit the read/write size on Darwin · gitcafe/zig

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

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

Visibility: public

Requested revision: 5e50d145d964238a68d4780e253d26431e7c7994

Requested commit: 5e50d145d964238a68d4780e253d26431e7c7994

Commit: 5e50d145d964238a68d4780e253d26431e7c7994

Tree: 4f7cbc281a0efeb742372c36f8c2dd9f41a5f988

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Limit the read/write size on Darwin

It turns out that the kernel won't read or write more than 0x7fffffff
bytes in a single call, failing with EINVAL when trying to do so.

Adjust the limit and curse whoever is responsible for this.

Closes #6332

```

## Parents

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

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