Remove `flock` where not supported
Open
Nobody has claimed this yet.
C-bug
E-help-wanted
- Dominant language
- Rust
- Stars
- 2.6k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 69
Description
The libc crate provides an flock symbol on all cfg(unix) targets except solaris. According to this list, that's not entirely right. In particular:
Emscripten, Redox, AIX, ESPIDF: no support, as far as I can tell
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the libc crate's flock declaration for cfg(unix) targets and compare its conditions with the linked platform list. Confirm support for Emscripten, Redox, AIX, and ESPIDF, then ensure unsupported targets no longer expose flock.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100