diff options
| author | Daniel Palmer <daniel@thingy.jp> | 2026-07-02 17:50:59 +0900 |
|---|---|---|
| committer | Thomas Weißschuh <linux@weissschuh.net> | 2026-07-03 08:07:59 +0200 |
| commit | 0fbc34f028e9eb7705e1f4ee1591ecd6d05160e8 (patch) | |
| tree | c5308b883c63c868b7bd4ee555854213adda3fab /scripts/basic | |
| parent | dc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff) | |
| download | linux-next-0fbc34f028e9eb7705e1f4ee1591ecd6d05160e8.tar.gz linux-next-0fbc34f028e9eb7705e1f4ee1591ecd6d05160e8.zip | |
tools/nolibc: unistd: Add getcwd()
Add getcwd() for getting the current working directory.
The behaviour matches what musl is doing except for one
important difference: If the passed buf is NULL musl (and glibc)
uses a big buffer on the stack and that is then strdup()'d and
returned.
According to the man page for getcwd() this is a glibc extension
and I don't think we need it in nolibc.
Signed-off-by: Daniel Palmer <daniel@thingy.jp>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260702085101.3304547-2-daniel@thingy.jp
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
