summaryrefslogtreecommitdiff
path: root/tools/include/nolibc/sys/sendfile.h
AgeCommit message (Collapse)Author
2026-08-31tools/nolibc: Add sendfile()Daniel Palmer
This is useful because it allows copying data up to 2GB from one fd to another without a buffer in userspace and with a single syscall. For 32bit kernels we use the sendfile64 syscall to allow for 64bit offsets to work. Signed-off-by: Daniel Palmer <daniel@thingy.jp> Link: https://patch.msgid.link/20260828103205.384589-2-daniel@thingy.jp Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>