From: "Thomas Weißschuh" <linux@weissschuh.net>
To: Daniel Palmer <daniel@thingy.jp>
Cc: w@1wt.eu, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] nolibc: Add sendfile()
Date: Fri, 28 Aug 2026 18:52:42 +0200 [thread overview]
Message-ID: <4a62301b-038b-4ccc-861c-badc4fa4f5d1@weissschuh.net> (raw)
In-Reply-To: <20260828103205.384589-1-daniel@thingy.jp>
Aug 28, 2026 12:32:21 Daniel Palmer <daniel@thingy.jp>:
> This is another thing from my backlog[0] and seemed simple enough so
> sending now. Also, this feels right for nolibc as it lets you move lots
> of data around without needing to allocate memory or even transfer it
> into userspace. I've used it to implement cp and dd in my 64KB userspace
> for linux on the sega megadrive.
>
> There is some 32bit weirdness again, I think I caught that and added
> some static asserts to make sure it doesn't silently break.
>
> Maybe the test should actually test the offset?
>
> 0 - fallocate(), static pie, sockets,...
>
> Daniel Palmer (2):
> tools/nolibc: Add sendfile()
> selftests/nolibc: Add basic test for sendfile()
Looks good, thanks!
I have applied the patches with some minor changes
and will push them out after -rc1.
> tools/include/nolibc/Makefile | 1 +
> tools/include/nolibc/nolibc.h | 1 +
> tools/include/nolibc/sys/sendfile.h | 41 ++++++++++++
> tools/testing/selftests/nolibc/nolibc-test.c | 70 ++++++++++++++++++++
> 4 files changed, 113 insertions(+)
> create mode 100644 tools/include/nolibc/sys/sendfile.h
>
> --
> 2.53.0
prev parent reply other threads:[~2026-08-28 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 10:32 Daniel Palmer
2026-08-28 10:32 ` [PATCH 1/2] tools/nolibc: " Daniel Palmer
2026-08-28 10:32 ` [PATCH 2/2] selftests/nolibc: Add basic test for sendfile() Daniel Palmer
2026-08-28 16:52 ` Thomas Weißschuh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4a62301b-038b-4ccc-861c-badc4fa4f5d1@weissschuh.net \
--to=linux@weissschuh.net \
--cc=daniel@thingy.jp \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®