From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id CE74438460B4 for ; Mon, 26 Apr 2021 17:46:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CE74438460B4 Received: by mail-wm1-x329.google.com with SMTP id 82-20020a1c01550000b0290142562ff7c9so1384888wmb.3 for ; Mon, 26 Apr 2021 10:46:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4XKAccquTkn2r9S6tK2dd4VsmZ5JwMPtXDxEVgO3+sU=; b=U7m6UOcJXdnsrMPnbgR6FU20EvwvrDBoSDX7J0eBGqW8AtJubSh9G1kQoof4lEa2y6 xAK/QGSK1u5jCq/5Cp7aVXEyQLY+4Lw7RtyviTmpcBAQ5mXfNGaaVkKf1UNR9vyaenim oCRMzGXCsB2H1Rsp7ezbV5iAVvIHFqyyh0FTKDd7arxYmX/ZzbeIGmymYEsKFjpUfhVx +dAC8y2Evim1kAZlK36eZYQVivu4pdpKqiTRkIlfnUF5om23KMk4ufEHwAjwXJHOoelG sNCPMvG176yQorvS4qjbBjr0B2hrjrc0gtL9jodXBjVzDu75uxMrhDMn+EcGmQWYQIrC Ojng== X-Gm-Message-State: AOAM531vonjj//PvZsmMRXuRxu3sbj15mtyH8mt5f44bzHuzh3gIRFMf qqOldA9majJweLATMg0gF5M= X-Google-Smtp-Source: ABdhPJyBTVMEkJVcz7ZsgiS7yXAcyiYnLgSQV4HKlQvUuplG6/YeQfRhYQb/dLRC2hGhs72gw1CxxA== X-Received: by 2002:a05:600c:40c4:: with SMTP id m4mr206472wmh.25.1619459212987; Mon, 26 Apr 2021 10:46:52 -0700 (PDT) Received: from [10.8.0.106] ([195.53.121.100]) by smtp.gmail.com with ESMTPSA id u8sm933072wrp.66.2021.04.26.10.46.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Apr 2021 10:46:52 -0700 (PDT) Subject: Re: [RFC] bpf.2: Use standard types and attributes To: Joseph Myers Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, gcc-patches@gcc.gnu.org, libc-alpha@sourceware.org, linux-kernel@vger.kernel.org References: <20210423230609.13519-1-alx.manpages@gmail.com> From: "Alejandro Colomar (man-pages)" Message-ID: Date: Mon, 26 Apr 2021 19:46:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2021 17:46:55 -0000 Hi Joseph, On 4/26/21 7:19 PM, Joseph Myers wrote: > On Sat, 24 Apr 2021, Alejandro Colomar via Libc-alpha wrote: > >> Some pages also document attributes, using GNU syntax >> '__attribute__((xxx))'. Update those to use the shorter and more >> portable C2x syntax, which hasn't been standardized yet, but is >> already implemented in GCC, and available through either --std=c2x >> or any of the --std=gnu... options. > > If you mention alignment in the manpage at all, the same reasoning would > say you should use _Alignas(8) not [[gnu::aligned(8)]], in any context > where _Alignas is valid. > Agree. I just didn't know 'alignas()' (a.k.a. '_Alignas()'), so I used attributes and only changed the syntax. But yes, we should use that C11 feature. Given that we already used 'noreturn' and not '_Noreturn' (see exit(3) and its family), I'll use 'alignas()'. I'll send a v2 with those changes. Thanks, Alex -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/