[PATCH 0/3] nolibc: Add getcwd() and readlink()
From: Daniel Palmer
Date: Sat May 02 2026 - 03:25:49 EST
Me again :)
I needed getcwd() for something. So I added that, then realised
I also needed readlink() to test the result of getcwd().
This adds getcwd() and readlink() then adds a test that uses
both.
nolibc selftest passed on: i386 x86_64 x32 arm64 arm armthumb mips32le
mips32be mipsn32le mipsn32be mips64le mips64be ppc ppc64 ppc64le riscv32
riscv64 sparc32 sparc64 m68k
Daniel Palmer (3):
tools/nolibc: unistd: Add getcwd()
tools/nolibc: unistd: Add readlink()
selftests/nolibc: Add test for getcwd() and readlink()
tools/include/nolibc/unistd.h | 42 ++++++++++++++++++++
tools/testing/selftests/nolibc/nolibc-test.c | 26 ++++++++++++
2 files changed, 68 insertions(+)
base-commit: 266df86c4893fed1a7f027e767fe1c7f6456b100
--
2.53.0