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: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1CFBD1F910 for ; Mon, 28 Nov 2022 04:56:01 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.b="sRtzitLm"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozWBS-0007oh-Qk; Sun, 27 Nov 2022 23:55:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozWBR-0007no-5N for bug-gnulib@gnu.org; Sun, 27 Nov 2022 23:55:57 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozWBP-00005w-Kr for bug-gnulib@gnu.org; Sun, 27 Nov 2022 23:55:56 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AC596160060 for ; Sun, 27 Nov 2022 20:55:54 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 2RsZMil2J-DR; Sun, 27 Nov 2022 20:55:54 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DDDA7160048; Sun, 27 Nov 2022 20:55:53 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu DDDA7160048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1669611353; bh=+TNSyZFP/nFLTLTLFqhkngTl3mO732Oq4L918CpGOFc=; h=From:To:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding; b=sRtzitLmkLJW60yyumTsEg11wjTsQparaZ0YGhjGsgVEMqGtZ6tuB5UPsr1bxnD37 meejI1kF7bSob24/svIo7RJxlNf7q1qffKGi9W+PGaWgsFWZFRLZ7Hm46E537s4dF/ ppyyERcpyOKjEL2Gma7rePvvayK5E31R8+n5s+Bk= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ET5KDhIEMD4x; Sun, 27 Nov 2022 20:55:53 -0800 (PST) Received: from localhost.localdomain (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B0CB4160043; Sun, 27 Nov 2022 20:55:53 -0800 (PST) From: Paul Eggert To: bug-gnulib@gnu.org Cc: Paul Eggert Subject: [PROPOSED 3/4] explicit_bzero: memset_explicit is standard Date: Sun, 27 Nov 2022 20:55:42 -0800 Message-Id: <20221128045543.1355731-4-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221128045543.1355731-1-eggert@cs.ucla.edu> References: <20221128045543.1355731-1-eggert@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org * doc/glibc-functions/explicit_bzero.texi: Say that memset_explicit is preferred in new code. --- ChangeLog | 4 ++++ doc/glibc-functions/explicit_bzero.texi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2d29d1f646..ea76fef399 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2022-11-27 Paul Eggert =20 + explicit_bzero: memset_explicit is standard + * doc/glibc-functions/explicit_bzero.texi: + Say that memset_explicit is preferred in new code. + read-file: use memset_explicit * lib/read-file.c (fread_file, read_file): Use memset_explicit instead of explicit_bzero. diff --git a/doc/glibc-functions/explicit_bzero.texi b/doc/glibc-function= s/explicit_bzero.texi index 31b4c9c011..a356659d27 100644 --- a/doc/glibc-functions/explicit_bzero.texi +++ b/doc/glibc-functions/explicit_bzero.texi @@ -24,6 +24,10 @@ question, the information that was in memory may still= be available elsewhere on the machine. Proper implementation of information erasure requires support from levels below C code. =20 +C23 specifies the function @code{memset_explicit}, which should be +preferred to @code{explicit_bzero} in new code. +@xref{memset_explicit}. + Portability problems fixed by Gnulib: @itemize @item --=20 2.37.2