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-29 17:26:21 -0800
committerGitHub <noreply@github.com>2016-12-29 17:26:21 -0800
commit86239074105e9844cb666bb4086f8bc78127fd7a (patch)
tree641c80a90101819bd261f48105043cd8a076a4ac /src/test/incremental/thinlto
parent41b601ecdda41e86632dc1497c13a662de133888 (diff)
parent917a9affc114b68ef4985511bdee106429bbf2ac (diff)
downloadrust-86239074105e9844cb666bb4086f8bc78127fd7a.tar.gz
rust-86239074105e9844cb666bb4086f8bc78127fd7a.zip
Rollup merge of #38622 - alexcrichton:read-lengths, r=sfackler
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