strnlen() is now required
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-01-08T07:51:20Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +0 −23 |
| configure.ac | modified | +1 −2 |
| meson.build | modified | +0 −2 |
| src/include/pg_config.h.in | modified | +0 −7 |
| src/include/port.h | modified | +0 −4 |
| src/port/meson.build | modified | +0 −1 |
| src/port/strnlen.c | deleted | +0 −33 |
Discussion
- more POSIX 2008 cleanup: strnlen(), rindex() 4 messages · 2026-01-03 → 2026-01-08