Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp356202rwe; Thu, 25 Aug 2022 01:17:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ISg4nJeTzyP186OL5gebZ3RNP55mVgJNF9qLMnQOkyISi0Yu1n5DUVuhKz17vqb+Wek7s X-Received: by 2002:aa7:df01:0:b0:445:f7b3:cd4 with SMTP id c1-20020aa7df01000000b00445f7b30cd4mr2203186edy.232.1661415470167; Thu, 25 Aug 2022 01:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661415470; cv=none; d=google.com; s=arc-20160816; b=1EVD2u+6Fb+bEKLT6C+OQaEtSAakLze+6HRFicKcTGvcZlL85+wcGVk/Bx/lEjuQ0p 7WFQVrHcG7KyS/kSIDaSyeGX/TuAmImKgdNm5Kgvvicqx+rb0XUQT1dWV2hyf++xvYgG unhGmp3doSPBB1aFK+67BJaiXfJCN8zn7BjiIunUWaWnziNkMbxdK4blyfj7eGkPSOi8 hRzvl3oiQyxmImLpFzojxtWTlxY0woSO8qDMFMmXOS1QzOSN//raU2g2rfH5YvsWlF+U Le93TUN6K6T86TA7Iuxna50CnNPSiIQCU+bX8Yh53A7r1i9tqe1B+j4E1kLMVCMZ8ZAN VhdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Ey9GW0PV5iG2eKxKqte4kaBuQ9z7RLnssn2v4uBnuIE=; b=gpfYhGr2UE2RlehfIQkIX8hcqCSzLELC9kE50v5r7ZiInGRQ7ky73N/fuHCkxB8yU0 ZUdLNMfNAtGUp8qVBpmOgf8PZPGc5me1HyxXgIArKSBg/Y2ShVDIK1szu0KtH0UT9DL9 y5SRVLSELZH79uML23kkUkryV4B2ogj0Tj5+K57NhFKVXqkG0Tckyp5fKZGdL+0jxbGk zCI6YmKOrN62zoJb0kW2+WOrYhyMJZdvNCIXLKrOMjClwt8wR0zSiOilsVeqZWq//Cph wixHOl/WWZBLps/CUPFA2L2Oxf68YbVHdbnclK6ZZ8B8aij/qCtG1VrzRsUDyWRdDlKZ D5ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=UsqsoMRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho33-20020a1709070ea100b0073d9a032af2si4143185ejc.919.2022.08.25.01.17.24; Thu, 25 Aug 2022 01:17:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=UsqsoMRK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233141AbiHYIJ4 (ORCPT + 99 others); Thu, 25 Aug 2022 04:09:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238715AbiHYIJw (ORCPT ); Thu, 25 Aug 2022 04:09:52 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F57A2BD2; Thu, 25 Aug 2022 01:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1661414988; bh=Ey9GW0PV5iG2eKxKqte4kaBuQ9z7RLnssn2v4uBnuIE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=UsqsoMRKTq44PTH9LXGKRrjAFo0QlgSWy8k+pvMx7kNR+xyR320PQ4CF153ciVAzK VY0buArQ9R02ARFWWWvIcHC4rrNqwjoaDXKH4rPcIIPDb5KZSAexd8Tm55PvvXAFHb lJbOrcXWsXMObhUsj4gMHHGvr52T6NNM8xBzZ1r4= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id C0F0266850; Thu, 25 Aug 2022 04:09:43 -0400 (EDT) Message-ID: Subject: Re: [PATCH v3] Many pages: Document fixed-width types with ISO C naming From: Xi Ruoyao To: Alejandro Colomar , Linus Torvalds Cc: linux-man , Rich Felker , Alexei Starovoitov , David Howells , Alexei Starovoitov , Joseph Myers , linux-arch , Zack Weinberg , Daniel Borkmann , Alex Colomar , Michael Kerrisk , Cyril Hrubis , Arnd Bergmann , GCC , LTP List , Florian Weimer , glibc , Greg Kroah-Hartman , LKML , David Laight , Linux API , bpf Date: Thu, 25 Aug 2022 16:09:42 +0800 In-Reply-To: <017d77b8-8be3-a0a8-ce2e-17c7b6a16758@gmail.com> References: <20210423230609.13519-1-alx.manpages@gmail.com> <20220824185505.56382-1-alx.manpages@gmail.com> <20d93962-538c-d2c9-1696-a1bdbffa87f8@gmail.com> <5a3ce36a284fe988694d2e75117aca5f9af66194.camel@xry111.site> <017d77b8-8be3-a0a8-ce2e-17c7b6a16758@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 On Thu, 2022-08-25 at 09:48 +0200, Alejandro Colomar wrote: > Hi Xi, >=20 > On 8/25/22 09:28, Xi Ruoyao wrote: > > On Thu, 2022-08-25 at 09:20 +0200, Alejandro Colomar via Gcc-patches > > wrote: > > > I don't know for sure, and I never pretended to say otherwise.=C2=A0 = But what > > > IMHO the kernel could do is to make the types compatible, by typedefi= ng > > > to the same fundamental types (i.e., long or long long) that user-spa= ce > > > types do. > >=20 > > In user-space things are already inconsistent as we have multiple libc > > implementations.=C2=A0 Telling every libc implementation to sync their > > typedef w/o a WG14 decision will only cause "aggressive discussion" (fa= r > > more aggressive than this thread, I'd say). > >=20 > > If int64_t etc. were defined as builtin types since epoch, things would > > be a lot easier.=C2=A0 But we can't change history. >=20 > This would be great.=C2=A0 I mean, the fundamental types should be u8, u1= 6, > ... and int, long, ... typedefs for these, and not the other way around,= =20 > if the language was designed today. >=20 > Maybe GCC could consider something like that. GCC already have __UINT8_TYPE__ etc. but again telling all libc implementations to use "typedef __UINT8_TYPE__ uint8_t" etc. will make no effect expect annoying their maintainers. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University