mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] nolibc: Add getcwd() and readlink()
@ 2026-05-02  7:25 Daniel Palmer
  2026-05-02  7:25 ` [PATCH 1/3] tools/nolibc: unistd: Add getcwd() Daniel Palmer
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Daniel Palmer @ 2026-05-02  7:25 UTC (permalink / raw)
  To: w, linux; +Cc: linux-kernel, Daniel Palmer

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-05-05  9:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-02  7:25 [PATCH 0/3] nolibc: Add getcwd() and readlink() Daniel Palmer
2026-05-02  7:25 ` [PATCH 1/3] tools/nolibc: unistd: Add getcwd() Daniel Palmer
2026-05-02 13:41   ` Thomas Weißschuh
2026-05-05  9:07     ` Daniel Palmer
2026-05-02  7:25 ` [PATCH 2/3] tools/nolibc: unistd: Add readlink() Daniel Palmer
2026-05-02 13:42   ` Thomas Weißschuh
2026-05-02  7:25 ` [PATCH 3/3] selftests/nolibc: Add test for getcwd() and readlink() Daniel Palmer
2026-05-02 13:43   ` Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®