[PATCH 0/7] tools/nolibc: large file support

Thomas Weißschuh posted 7 patches 1 month, 4 weeks ago
tools/include/nolibc/arch-mips.h             | 94 +++++++++++++++-------------
tools/include/nolibc/arch-x86.h              | 70 ++++++++++-----------
tools/include/nolibc/crt.h                   |  4 ++
tools/include/nolibc/fcntl.h                 |  4 ++
tools/include/nolibc/sys.h                   | 14 +++--
tools/include/nolibc/sys/mman.h              |  6 +-
tools/testing/selftests/nolibc/nolibc-test.c | 48 ++++++++++++++
7 files changed, 153 insertions(+), 87 deletions(-)
[PATCH 0/7] tools/nolibc: large file support
Posted by Thomas Weißschuh 1 month, 4 weeks ago
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (7):
      tools/nolibc: also handle _llseek system call
      tools/nolibc: add __nolibc_arg_to_reg()
      tools/nolibc: cast pointers returned from system calls through integers
      tools/nolibc: handle 64-bit system call arguments on x32
      tools/nolibc: handle 64-bit system call arguments on MIPS N32
      tools/nolibc: open files with O_LARGEFILE
      selftests/nolibc: test large file support

 tools/include/nolibc/arch-mips.h             | 94 +++++++++++++++-------------
 tools/include/nolibc/arch-x86.h              | 70 ++++++++++-----------
 tools/include/nolibc/crt.h                   |  4 ++
 tools/include/nolibc/fcntl.h                 |  4 ++
 tools/include/nolibc/sys.h                   | 14 +++--
 tools/include/nolibc/sys/mman.h              |  6 +-
 tools/testing/selftests/nolibc/nolibc-test.c | 48 ++++++++++++++
 7 files changed, 153 insertions(+), 87 deletions(-)
---
base-commit: 881f42cc68a6723f1fd6bac00b84b9281cf9bca0
change-id: 20260417-nolibc-largefile-90c85e8443cf

Best regards,
--  
Thomas Weißschuh <linux@weissschuh.net>

Re: [PATCH 0/7] tools/nolibc: large file support
Posted by Daniel Palmer 1 month, 4 weeks ago
Hi Thomas,

On Sat, 18 Apr 2026 at 19:20, Thomas Weißschuh <linux@weissschuh.net> wrote:
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
> Thomas Weißschuh (7):
>       tools/nolibc: also handle _llseek system call
>       tools/nolibc: add __nolibc_arg_to_reg()
>       tools/nolibc: cast pointers returned from system calls through integers
>       tools/nolibc: handle 64-bit system call arguments on x32
>       tools/nolibc: handle 64-bit system call arguments on MIPS N32
>       tools/nolibc: open files with O_LARGEFILE
>       selftests/nolibc: test large file support

I just wanted fallocate() but it feels like I opened pandora's box. :)
I looked through everything but I don't think I can review really as
I'm just a tinkerer.
The patch for x32 does fix passing through the top 32 bits of the
arguments for fallocate() (Which I was sure was working for some
reason).

Thank you for the hard work!

Cheers,

Daniel
Re: [PATCH 0/7] tools/nolibc: large file support
Posted by Willy Tarreau 1 month, 3 weeks ago
Hi Thomas,

On Sat, Apr 18, 2026 at 12:19:55PM +0200, Thomas Weißschuh wrote:
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
> ---
> Thomas Weißschuh (7):
>       tools/nolibc: also handle _llseek system call
>       tools/nolibc: add __nolibc_arg_to_reg()
>       tools/nolibc: cast pointers returned from system calls through integers
>       tools/nolibc: handle 64-bit system call arguments on x32
>       tools/nolibc: handle 64-bit system call arguments on MIPS N32
>       tools/nolibc: open files with O_LARGEFILE
>       selftests/nolibc: test large file support
> 
>  tools/include/nolibc/arch-mips.h             | 94 +++++++++++++++-------------
>  tools/include/nolibc/arch-x86.h              | 70 ++++++++++-----------
>  tools/include/nolibc/crt.h                   |  4 ++
>  tools/include/nolibc/fcntl.h                 |  4 ++
>  tools/include/nolibc/sys.h                   | 14 +++--
>  tools/include/nolibc/sys/mman.h              |  6 +-
>  tools/testing/selftests/nolibc/nolibc-test.c | 48 ++++++++++++++
>  7 files changed, 153 insertions(+), 87 deletions(-)
> ---
> base-commit: 881f42cc68a6723f1fd6bac00b84b9281cf9bca0
> change-id: 20260417-nolibc-largefile-90c85e8443cf

Really great series, that's an overall ack from me:

Acked-by: Willy Tarreau <w@1wt.eu>

Please recheck the llseek commit message though.

Thanks!
Willy