WebAssembly / WebAssembly/WASI
[v0.3] Add flags to `rename-at` ?
Open
Nobody has claimed this yet.
P-filesystem
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
On Linux, renameat2 can take flags: https://man7.org/linux/man-pages/man2/rename.2.html
Notably, RENAME_NOREPLACE sounds useful; it is not present on the BSDs, but there is this workaround: https://github.com/rust-lang/libs-team/issues/131#issuecomment-1852576797.
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 with the WASI rename-at API entry point and read the linked renameat2 documentation and Rust libs-team workaround. Determine how flags such as RENAME_NOREPLACE should be represented across Linux and BSDs; the work is done when the API behavior and platform differences are specified and supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100