From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6AC111F910 for ; Sun, 27 Nov 2022 11:45:09 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="xEPuVnvr"; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 067C0385514B for ; Sun, 27 Nov 2022 11:45:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 067C0385514B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669549505; bh=kM+xO+MPeWfIPvOato24NDh49lBZ6shQQczWIHH2rl0=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=xEPuVnvrf5RX17z9/XVaaRn0fS4zhRmDHRsk+IztlyrYLpoQr9H4D12xXkX8kQkL5 SqBhQQX9Xerb86Xx4NDxxLPWtOBjemCIGDYYijzQArwjEANKQX8HhVjIJOP0cY+R86 bIpt8iqVidyyLVabRdNyYau1lNLth1W1pE5eVX1E= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 3225D3858C52 for ; Sun, 27 Nov 2022 11:44:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3225D3858C52 Received: by smtp.gentoo.org (Postfix, from userid 559) id 0290634124A; Sun, 27 Nov 2022 11:44:44 +0000 (UTC) Date: Sun, 27 Nov 2022 20:44:41 +0900 To: "Seija K." Cc: libc-alpha@sourceware.org Subject: Re: Add restrict annotations to all functions that require it Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="puPnrvvuheAMR5SA" Content-Disposition: inline In-Reply-To: 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: , From: Mike Frysinger via Libc-alpha Reply-To: Mike Frysinger Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" --puPnrvvuheAMR5SA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 26 Nov 2022 19:56, Seija K. via Libc-alpha wrote: > The format value has to be a string literal, every time. Otherwise, you are > not using these functions correctly. To reinforce this fact, I put > __restrict over every example of this I could find. there's at least some redundant settings in here that aren't needed. for example, the strptime prototype in time/time.h has restrict on fmt already, so it isn't needed in time/strptime.c. -mike --puPnrvvuheAMR5SA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmODTakACgkQQWM7n+g3 9YFF9hAAuxqUKiL0abOz7+CZaeNblhy4pv1y1sg07MRBu0ugY+YyiDjd3XeigJtK zks9Syfk+jXLjdrLeXxU7op/sbEZex427xwQhYFEJ/Ix7BMwC0/ABF81JH/6108D 4xIUVJJk16oZGY8YpKmM+g6pknfui9BVqbvP9V7Ut/0Y34R9h9ojTwrK+YQ+ZxEo o7rUXssp026zP0jUHl7pZ++M2LKQm/bfuDW5OOZr0HGy1XObPYQBBgy8oxJNorBf GG6Uh7tDdZ8SWavO5b+IL3ALQfJd35bFyKMwqLJhgqVW2IymlErBbh76BYQGJdYZ P90G7ffvV4g7TfqsgfUKHM0RecKCZAa7Fj4EOUaORhCU8oWL+CYMYBjVQOIhO89V Z00XvAPKo1r8R0bz8sRMHanDf3AIb4w0hqtXNgoDO0QkOMivofZA29IFYOsaejmv rANIlT6ctFxuLU+mF1r8nBOwK92MOzOGEUbzn9wfRD7j5l0kzJFgU5gBT9Ega1rJ ISLVukRQSCDJ9ZXx1w4UHp/qWoYOgxsSqeOydRVMHi3npJsxAMi6ybuflk+ncMz8 coSo5Vcn0qLAMHeRVAOfdgH5N4RptHqPhfHZnktAf7Fsv3Mj1PKT/asZ6yfToSRb 5zquJx7Dg9jbKnyAsqDjquOMdHM9O4tzeHcUojvvqlmEU2Bambs= =1bvn -----END PGP SIGNATURE----- --puPnrvvuheAMR5SA--