diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-25 21:57:32 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-12-26 15:08:53 -0800 |
| commit | 917a9affc114b68ef4985511bdee106429bbf2ac (patch) | |
| tree | 778a8bde19fd2dc9f0bc396eab5454a81a48a9da /src/test/incremental/thinlto | |
| parent | e60aa62ffe7462d48cb44ab33f2551b466745e83 (diff) | |
| download | rust-917a9affc114b68ef4985511bdee106429bbf2ac.tar.gz rust-917a9affc114b68ef4985511bdee106429bbf2ac.zip | |
std: Clamp max read/write sizes on Unix
Turns out that even though all these functions take a `size_t` they don't actually work that well with anything larger than the maximum value of `ssize_t`, the return value. Furthermore it looks like OSX rejects any read/write requests larger than `INT_MAX - 1`. Handle all these cases by just clamping the maximum size of a read/write on Unix to a platform-specific value. Closes #38590
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
