WebAssembly / WebAssembly/WASI

[v0.3] Add flags to `rename-at` ?

Open
#720 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.