Re: [PATCH 0/3] tools/nolibc: add the _syscall() macro
From: Willy Tarreau
Date: Tue Apr 07 2026 - 03:18:17 EST
Hi Thomas,
On Sun, Apr 05, 2026 at 11:06:22AM +0200, Thomas Weißschuh wrote:
> The standard syscall() function or macro uses the libc return value
> convention. Errors returned from the kernel as negative values are
> stored in errno and -1 is returned. Users which want to avoid using
^^^^^
s/which/who :-)
> errno don't have a way to call raw syscalls and check the returned
> error.
>
> Add a new macro _syscall() which works like the standard syscall()
> but passes through the return value from the kernel unchanged.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Nice and clean! For the whole series:
Acked-by: Willy Tarreau <w@xxxxxx>
Thanks!
Willy