hermit-os / hermit-os/kernel

Changing the current working directory is not possible

Open
#1,594 0 comments 0 reactions 1 assignee Claimed by @stlankes View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.