Skip to content
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

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Feb 21, 2016

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` 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
@alexcrichton
Copy link
Member

@bors: r+ 7e96216

Thanks!

@bors
Copy link
Contributor

bors commented Feb 21, 2016

⌛ Testing commit 7e96216 with merge 24a2984...

@bors
Copy link
Contributor

bors commented Feb 21, 2016

💔 Test failed - auto-mac-32-opt

@cuviper
Copy link
Member Author

cuviper commented Feb 22, 2016

Hmm, mac-32 timed out on debuginfo/lexical-scope-in-for-loop.rs.
I'm pretty sure that's not my doing...

@alexcrichton
Copy link
Member

@bors: retry

On Sun, Feb 21, 2016 at 4:13 PM, Josh Stone notifications@github.com
wrote:

Hmm, mac-32 timed out on debuginfo/lexical-scope-in-for-loop.rs.
I'm pretty sure that's not my doing...


Reply to this email directly or view it on GitHub
#31805 (comment).

@bors
Copy link
Contributor

bors commented Feb 22, 2016

⌛ Testing commit 7e96216 with merge 19437bd...

bors added a commit that referenced this pull request Feb 22, 2016
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
@bors bors merged commit 7e96216 into rust-lang:master Feb 22, 2016
@cuviper cuviper deleted the android-lfs branch March 4, 2016 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants