Re: [PATCH v1] explicit_bzero.c: using explicit_memset on NetBSD

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: David CARLIER <devnexen(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH v1] explicit_bzero.c: using explicit_memset on NetBSD
Date: 2020-08-31 02:48:40
Message-ID: 20200831024840.GB2488@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Aug 30, 2020 at 02:03:32PM +0100, David CARLIER wrote:
> Thanks.

During the addition of explicit_bzero(), there was an agreement to use
memset_s(), as it is blessed by the standard:
https://www.postgresql.org/message-id/20190717211931.GA906@alvherre.pgsql

So what would be the advantage of explicit_memset() knowing that
NetBSD has memset_s()? This also means that your patch is a no-op for
NetBSD as HAVE_MEMSET_S would be set.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2020-08-31 03:43:20 Re: Terminate the idle sessions
Previous Message Li Japin 2020-08-31 02:40:37 Re: Terminate the idle sessions