public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nolibc: Add fallocate()
@ 2026-04-15 14:32 Daniel Palmer
  2026-04-15 14:32 ` [PATCH 1/2] tools/nolibc: fcntl: " Daniel Palmer
  2026-04-15 14:32 ` [PATCH 2/2] selftests/nolibc: Add a very basic test for fallocate() Daniel Palmer
  0 siblings, 2 replies; 5+ messages in thread
From: Daniel Palmer @ 2026-04-15 14:32 UTC (permalink / raw)
  To: w, linux; +Cc: linux-kernel, Daniel Palmer

While poking around with my "static PIE for nommu" series I found
I needed fallocate(). Implementing it turned out a bit more
interesting than I thought it would be due to how the offset and
size need to be passed on 32bit machines.

I have ran the tests on m68k, arm, arm64, riscv[32|64], x86_64,
i386, x32. I probably missed something, maybe there is a better
way to do this. Maybe it can't actually pass an offset or size
>4GB on x32?

Daniel Palmer (2):
  tools/nolibc: fcntl: Add fallocate()
  selftests/nolibc: Add a very basic test for fallocate()

 tools/include/nolibc/fcntl.h                 | 30 ++++++++++++++++++
 tools/testing/selftests/nolibc/nolibc-test.c | 33 ++++++++++++++++++++
 2 files changed, 63 insertions(+)

-- 
2.51.0


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

end of thread, other threads:[~2026-04-15 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 14:32 [PATCH 0/2] nolibc: Add fallocate() Daniel Palmer
2026-04-15 14:32 ` [PATCH 1/2] tools/nolibc: fcntl: " Daniel Palmer
2026-04-15 15:56   ` Thomas Weißschuh
2026-04-15 14:32 ` [PATCH 2/2] selftests/nolibc: Add a very basic test for fallocate() Daniel Palmer
2026-04-15 15:59   ` 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