forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: add some of the same LFS functions as Linux
Audit the LFS functions from Linux and add the same for Android if bionic supports it, according to libc.map from API 23 (Android 6.0). The standard library is currently limited to API 18, so it may only use `lseek64`, `pread64`, `pwrite64`, `ftruncate64`, and `readahead`. Note that `stat64` and `dirent64` are actually identical to the regular versions, because bionic has always mapped them to the LFS syscalls. It also sets `O_LARGEFILE` at all times, so `open` matches `open64`. Still, the explicit LFS names may be useful to match Linux. Fixes rust-lang#189.
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters