bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: bug-gnulib@gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: [PROPOSED 0/4] memset_explicit patches
Date: Sun, 27 Nov 2022 20:55:39 -0800	[thread overview]
Message-ID: <20221128045543.1355731-1-eggert@cs.ucla.edu> (raw)

Here's a proposed set of patches to add support for C23's
memset_explicit function, along with the corresponding fallout in
Gnulib.  The idea is to prefer memset_explicit, but continue to
support explicit_bzero (which is not marked as obsolescent, as it's
too soon for that).  Comments welcome.

Paul Eggert (4):
  memset_explicit: new module
  read-file: use memset_explicit
  explicit_bzero: memset_explicit is standard
  explicit_bzero: implement via memset_explicit

 ChangeLog                                |  29 ++++
 MODULES.html.sh                          |   8 +
 doc/glibc-functions/explicit_bzero.texi  |   4 +
 doc/gnulib.texi                          |   2 +
 doc/posix-functions/memset_explicit.texi |  43 +++++
 lib/explicit_bzero.c                     |  69 ++------
 lib/memset_explicit.c                    |  62 +++++++
 lib/read-file.c                          |  12 +-
 lib/string.in.h                          |  17 ++
 m4/explicit_bzero.m4                     |   7 +-
 m4/memset_explicit.m4                    |  20 +++
 m4/string_h.m4                           |   6 +-
 modules/explicit_bzero                   |   4 +-
 modules/memset_explicit                  |  31 ++++
 modules/memset_explicit-tests            |  14 ++
 modules/read-file                        |   2 +-
 modules/string                           |   2 +
 tests/test-memset_explicit.c             | 203 +++++++++++++++++++++++
 18 files changed, 460 insertions(+), 75 deletions(-)
 create mode 100644 doc/posix-functions/memset_explicit.texi
 create mode 100644 lib/memset_explicit.c
 create mode 100644 m4/memset_explicit.m4
 create mode 100644 modules/memset_explicit
 create mode 100644 modules/memset_explicit-tests
 create mode 100644 tests/test-memset_explicit.c

--
2.37.2



             reply	other threads:[~2022-11-28  4:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-28  4:55 Paul Eggert [this message]
2022-11-28  4:55 ` [PROPOSED 1/4] memset_explicit: new module Paul Eggert
2022-11-28 16:17   ` Bruno Haible
2022-11-28  4:55 ` [PROPOSED 2/4] read-file: use memset_explicit Paul Eggert
2022-11-28  4:55 ` [PROPOSED 3/4] explicit_bzero: memset_explicit is standard Paul Eggert
2022-11-28  4:55 ` [PROPOSED 4/4] explicit_bzero: implement via memset_explicit Paul Eggert
2022-11-28 16:17   ` Bruno Haible
2022-11-29  6:06     ` Paul Eggert
2022-11-29  8:09       ` Bruno Haible
2022-11-28 10:15 ` [PROPOSED 0/4] memset_explicit patches Simon Josefsson via Gnulib discussion list
2022-11-28 16:04   ` Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221128045543.1355731-1-eggert@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).