about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJosh Stone <cuviper@gmail.com>2016-02-21 01:04:14 -0800
committerJosh Stone <cuviper@gmail.com>2016-02-21 01:04:14 -0800
commit7e962166dfa1c55489d9637d829cb8e16f6de32a (patch)
tree59e573ed0f978e7c4225adaaacb9b8b86d3e2585 /src/libstd/sys/unix/stack_overflow.rs
parenta2fb48e9f76aabd543e4f6352ac32109e09fab22 (diff)
downloadrust-7e962166dfa1c55489d9637d829cb8e16f6de32a.tar.gz
rust-7e962166dfa1c55489d9637d829cb8e16f6de32a.zip
std: Use Android LFS off64_t, ftruncate64, and lseek64
Android should use 64-bit LFS symbols for `lseek` and `ftruncate`, lest
those offset parameters suffer a lossy cast down to a 32-bit `off_t`.

Unlike GNU/Linux, Android's `stat`, `dirent`, and related functions are
always 64-bit LFS compatible, and `open` already implies `O_LARGEFILE`,
so all those don't need to follow Linux.  It might be nice to unify them
anyway, but those other LFS symbols aren't present in API 18 bionic.

r? @alexcrichton
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions