about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-12-25 21:57:32 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-12-26 15:08:53 -0800
commit917a9affc114b68ef4985511bdee106429bbf2ac (patch)
tree778a8bde19fd2dc9f0bc396eab5454a81a48a9da /src/test/incremental/thinlto
parente60aa62ffe7462d48cb44ab33f2551b466745e83 (diff)
downloadrust-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