From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id E987438930D0 for ; Mon, 26 Apr 2021 17:46:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E987438930D0 Received: by mail-wm1-x32d.google.com with SMTP id n4-20020a05600c4f84b029013151278decso5496511wmq.4 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=ljDhCWXuc+j5fTVbAiXzsUQUMinOqLHBI+ogJBf8ziHyK1FST6D0KkYV4aWCHrqHCP KoIqI7ricoLXIbDCgQwPRA0jE8hsp4VqzTQ19eRs34VfF+6qbe7Q5t8bOqaKpj2z3Vo3 2roI/f5V3ytaq9IYRVHnmC917+dw657xRpLp8g7q/1V20LV0CSuZ3SOWbZ/wwZ1yO4z4 lrSpfD1Bl2z77s/OjG6v798PWbJZKXw4cPsDpfXsyhqAzxulsRan8P8BnrJSI691+5X2 ZRC950LMAz5Gr6ebu6CQ1WvUgzotbfpcmtq5YlyFcebuuRYJO/lVlFl0Sdf/3JuUjsgk 1Zdg== X-Gm-Message-State: AOAM533ogQ47Yz6BhM20n/nBWAztHkZSqxCXMkUVtEXPm3WwVTuv8hc9 73ss4uhLVb/FZV+bxjBuNsA= 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=-3.4 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=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha 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/