-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std: Use Android LFS off64_t, ftruncate64, and lseek64 #31805
Conversation
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
⌛ Testing commit 7e96216 with merge 24a2984... |
💔 Test failed - auto-mac-32-opt |
Hmm, mac-32 timed out on |
@bors: retry On Sun, Feb 21, 2016 at 4:13 PM, Josh Stone notifications@github.com
|
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
Android should use 64-bit LFS symbols for
lseek
andftruncate
, lestthose offset parameters suffer a lossy cast down to a 32-bit
off_t
.Unlike GNU/Linux, Android's
stat
,dirent
, and related functions arealways 64-bit LFS compatible, and
open
already impliesO_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