pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: strnlen() is now required
Date: Thu, 08 Jan 2026 08:03:18 +0000
Message-ID: <E1vdkzF-005GDw-1r@gemulon.postgresql.org> (raw)

strnlen() is now required

Remove all configure checks and workarounds for strnlen() missing.  It
is required by POSIX 2008.

Reviewed-by: Jelte Fennema-Nio <postgres@jeltef.nl>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/98ce805c-6103-421b-adc3-fcf8f3dddbe3%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5e7abdac99136c63850a23c0dfdec24d81f503f1

Modified Files
--------------
configure                  | 23 -----------------------
configure.ac               |  3 +--
meson.build                |  2 --
src/include/pg_config.h.in |  7 -------
src/include/port.h         |  4 ----
src/port/meson.build       |  1 -
src/port/strnlen.c         | 33 ---------------------------------
7 files changed, 1 insertion(+), 72 deletions(-)



Message-ID: <E1vdkzF-005GDw-1r@gemulon.postgresql.org>
Permalink:  ../E1vdkzF-005GDw-1r@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vdkzF-005GDw-1r@gemulon.postgresql.org

 · 

reply

Reply instructions:

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

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: strnlen() is now required
  In-Reply-To: <E1vdkzF-005GDw-1r@gemulon.postgresql.org>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox