mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] tools/nolibc: add the _syscall() macro
Date: Tue, 7 Apr 2026 09:17:39 +0200	[thread overview]
Message-ID: <adSvkwQg8j3aCG11@1wt.eu> (raw)
In-Reply-To: <20260405-nolibc-syscall-v1-0-e5b12bc63211@weissschuh.net>

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@weissschuh.net>

Nice and clean! For the whole series:

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

Thanks!
Willy

      parent reply	other threads:[~2026-04-07  7:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-05  9:06 Thomas Weißschuh
2026-04-05  9:06 ` [PATCH 1/3] tools/nolibc: rename the internal macros used in syscall() Thomas Weißschuh
2026-04-05  9:06 ` [PATCH 2/3] tools/nolibc: move the call to __sysret() into syscall() Thomas Weißschuh
2026-04-05  9:06 ` [PATCH 3/3] tools/nolibc: add the _syscall() macro Thomas Weißschuh
2026-04-07  7:17 ` Willy Tarreau [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=adSvkwQg8j3aCG11@1wt.eu \
    --to=w@1wt.eu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@weissschuh.net \
    /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®