Changing the current working directory is not possible
Open
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 132
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 39
Description
Currently, `getcwd` is [hardcoded](https://github.com/rust-lang/rust/blob/1.84.1/library/std/src/sys/pal/hermit/os.rs#L22-L24) to `/` and `chdir` is [unsupported](https://github.com/rust-lang/rust/blob/1.84.1/library/std/src/sys/pal/hermit/os.rs#L26-L28).
We should add system calls corresponding to the following functions:
- [ ] [getcwd](https://pubs.opengroup.org/onlinepubs/9799919799/functions/getcwd.html)
- [ ] [chdir](https://pubs.opengroup.org/onlinepubs/9799919799/functions/chdir.html)
- [ ] [fchdir](https://pubs.opengroup.org/onlinepubs/9799919799/functions/fchdir.html) (optional)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.