-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Open
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`O-androidOperating system: AndroidOperating system: AndroidT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Currently, our lock method just always errors on Android.
However, the libc crate does expose flock on Android, and cargo-bins/cargo-binstall#2330 sounds like there is support for flock on Android with fs4, at least for some Android versions.
We should figure out which Android versions have flock, and whether we can use that for the standard library API.
(Also see #146312 which is a similar issue for Illumos.)
Metadata
Metadata
Assignees
Labels
A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`Area: `std::io`, `std::fs`, `std::net` and `std::path`O-androidOperating system: AndroidOperating system: AndroidT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.