Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1219217rda; Mon, 23 Oct 2023 06:20:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/778FYlnqM3ks3ouMMoSiuqFGKqj5RdJWzVlEs0WpY8xGQUh8Z7qfrMGT5rt1ZMU6fuvP X-Received: by 2002:a05:6870:3d96:b0:1e9:bd5c:ae8b with SMTP id lm22-20020a0568703d9600b001e9bd5cae8bmr11622387oab.5.1698067236121; Mon, 23 Oct 2023 06:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698067236; cv=none; d=google.com; s=arc-20160816; b=SsdhInVAUCzjCvj1vWkV5El40ApyKzUqMVbX3WNxLrLDHcfCezWzdIusqHDg+uyUdk s07YWQb4+3pPhlgEnIii/qxG3PazIY13GXqi0LE+BOkEMQRPaVPXTrUV8FktbFllPMvj xEO5wWWsqbbZCey4VqDWDgePDs+ytKGr+Os05uaf7dJbolsRB6W6CguKZIYLtoI9lM9U /35Etwx2jcHNBDUs/eft5O54uMJ7LafughFRkVsYHc/M5C6RI0J8sGxbdUWG4jxdbSAI PjK35SR+C1XTeDsi0A4qCV6II+aEL7zTTDDXixHTrun7IK1rH2oPg7la7kbrS9Xb5smR xy8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rFTY/vELGMYL//LKyyGzLHzFHW6yQfMRyFpoGH2moZw=; fh=Qc7tqbvS4GhdAgZ1YRizOcaZDOc5lf5/bVedIg1h+Yg=; b=isbKzTZqdRwVU6tqDZPdVBrOqCgY2oosbZPBCYyag2Y9faaO5WKJljJAhNXWFclw1p Ial+kGreLTqY/6pMK4cQePx21kq2AeZ/5KoyLtPYfZw/O3/D4EvNw75q2qb3fbGCFoW9 wzw3LqwjZjnI7fJtl9IJbmr9TiEJSaJwPi4KxTSP39YknDH5QpkqaWmK0CjwFBSd9P/v OEC54oDD/2DyDUIJorVgfzLe00lmjj1xDrXK+CzP9Q3Hgv/KK9mF658XxmToKT2d5bh0 UITx34NLMR7QuDveLAo0yFfRR6wliFbCga02+BwSnKiFRmSHf0Zt562yXxZVehcLsOQv RsHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPuok6o5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s20-20020a639254000000b005b205bdd324si6388760pgn.697.2023.10.23.06.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 06:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPuok6o5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E79D280BBE83; Mon, 23 Oct 2023 06:20:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjJWNUX (ORCPT + 99 others); Mon, 23 Oct 2023 09:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230431AbjJWNUU (ORCPT ); Mon, 23 Oct 2023 09:20:20 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1F74AF for ; Mon, 23 Oct 2023 06:20:18 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45953C433C8; Mon, 23 Oct 2023 13:20:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698067218; bh=h+Jyfyknx4YJBVNzv+TnNizm+sIT9p+Md9k3LAUuzY0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DPuok6o583VpS6tG5KDC0yJx8vj9gJ6gSlA3QqnTYYk+/GMdmuI3fW3dMwKr3hkYj Ymlna77W8ac4A+gIt6W60moB2l91ABkHr00MYLUvyvObUY1TdfDj23XhDSdkxI28UW A90TlKGwdEn5OguW60M5u2F/GgsSEytJhDJJSx/mrHGSd6B7w86uvlB6L6tjlAJ/OZ aTKsNTE7tT2/rplgklmJTXethWP4VJdJoCRNlh51NWPn3J4MqWvpd4w29w7HkSVqCO ZrYOaxB6asux5BtI/E9LzlXDDYwmvRu6dnxUpBfV/HeTVs8xHfqWf+F89Li1ZSEoot 6ZC5WhXoWPjCQ== Date: Mon, 23 Oct 2023 14:20:13 +0100 From: Mark Brown To: Willy Tarreau Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: Add Linux specific waitpid() flags Message-ID: References: <20231020-nolibc-waitpid-flags-v1-1-8137072dae14@kernel.org> <633402b0-7167-465f-99c6-d959b5f48073@t-8ch.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8/zfyLwjdpXmZrxg" Content-Disposition: inline In-Reply-To: X-Cookie: Never reveal your best argument. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 06:20:31 -0700 (PDT) --8/zfyLwjdpXmZrxg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 21, 2023 at 11:13:38AM +0200, Willy Tarreau wrote: > On Sat, Oct 21, 2023 at 11:00:20AM +0200, Thomas Wei=DFschuh wrote: > > Oct 20, 2023 23:57:01 Mark Brown : > > > Linux defines a few custom flags for waitpid(), make them available to > > > nolibc based programs. > > Wouldn't it be easier to include linux/wait.h instead? > That's indeed the trend we should follow whenever possible. We've got > caught a few times in the past with build errors depending on the > includes ordering due to such redefinitions. I don't know if that's the > case for these ones (nor if including linux/wait.h would cause other > breakage) but it's worth considering at least. > The difficulty here is that originally nolibc did not *explicitly* depend > on UAPI headers, and was supposed to be self-sufficient (that was the > main point). Adapting to multiple archs caused the addition of ifdefs > all around, then trying to standardize the include file names instead > of just "nolibc.h" caused conflicts with programs already including > linux/anything.h. Anyway now we depend on linux/lots-of-stuff so I > think it's worth continuing in that direction so that we don't replicate > the UAPI maintenance effort. OK, I'll do that - I'd not noticed that nolibc had started pulling in linux/ headers so was trying to maintain the deliberate duplication. --8/zfyLwjdpXmZrxg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmU2cw0ACgkQJNaLcl1U h9DgEgf+Mj/4MWqwmRLWrbshIma/gJxD2aDCgbB6u/Z3r4WtORWBGpCLHu2HwuUw 1l9FvVIosz/dvUMEYsyCdsRieKYD+G4y7d7mrMOsDy89btenS2ZCISpdeI/UNXun m1xZyscHvpryRBMg6T89Eu+woMqPly3flZ1N0yPc/fD2xmdnN27WDjveN8VPgY9W p/ZVQdpnmUvHKIZ7buns17GsXXk27j4rcLbFExCQyz4sOJn1uyT3Wtvq/kiu+EPe SKkk5NaEn+o6QLUtKyw9t162v5BEjNj47vtXFRcEsVFp6cqEE5guBbsqcE1jbuJB 9qgUjQC6m/o4KdMvtJJz0Qwh4QykPQ== =W+4M -----END PGP SIGNATURE----- --8/zfyLwjdpXmZrxg--