From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.formilux.org (mta1.formilux.org [51.159.59.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D78E5392C4C for ; Tue, 7 Apr 2026 07:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.159.59.229 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775546262; cv=none; b=uNUwkgiMnqXJP4LrXlI0vLycqctv84dr18lltYPqFFSYnrLakFYts2InuWYdjoQDoXUvUM9qKtpe9LPx/nFqxixem6H1Sywza76DZRE6EpHPBJT0dYCmJMXVzC4AcM8RyiCK2AbLG1fi1P8ulB1WplYKLVeTpEEX0DqO3pevry8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775546262; c=relaxed/simple; bh=yME0T13Dg1pzBmmd/U6Sa85+EyANrzf0pmyqLHv95PA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XZa6EDnuoLO2xmrm3JGybMQZp63e4GLsP1Uo9G5VOZX94doMj2VthTgYjt4xENPmf5VvjR96lp1Oex3NMW9JUJgNagtu3bG4SlGydqH6K12HxSy9/X6crrVx5hRchpJuF6xuQln51p0l9CdfIE25TWxORTOo6aegtbEpGh7pBKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b=VyILABbn; arc=none smtp.client-ip=51.159.59.229 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=1wt.eu header.i=@1wt.eu header.b="VyILABbn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1wt.eu; s=mail; t=1775546259; bh=Vmot8OkpciLjEQ7nIrcoQCZV+SYsHaTBErJRjdcORTA=; h=From:Message-ID:From; b=VyILABbnvLZkYWI3cdPCXcA+2jiwl5SVk7gn37g0MNSc+/c4zYt7h9mzvYBZ0A8dm LprA9I7jQTtzZngx/6mf9codJWX/bojuV3bhaj51qhaTTgFHqV1xQke5jO0RI/q6Sm Ay5j3A3+MXbQLvpuAt9MUn6d8kz+Dl5c3k9qiRrk= Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by mta1.formilux.org (Postfix) with ESMTP id 39698C09BC; Tue, 07 Apr 2026 09:17:39 +0200 (CEST) Date: Tue, 7 Apr 2026 09:17:39 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] tools/nolibc: add the _syscall() macro Message-ID: References: <20260405-nolibc-syscall-v1-0-e5b12bc63211@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Nice and clean! For the whole series: Acked-by: Willy Tarreau Thanks! Willy