On 7/10/26 4:15 AM, Rainer Orth wrote:
All g++/modules tests SEGV on NetBSD/amd64 in a ZFS build directory.
This is similar to the FreeBSD case
commit a94156b8ee7165c32f73f9cd11c9b8f3b8687d3b
Author: Rainer Orth <[email protected]>
Date: Tue May 5 10:23:12 2026 +0200
c++: modules: Fix posix_fallocate error handling
However, posix_fallocate returns EOPNOTSUPP here, which is distinct from
ENOTSUP.
This patch allows for both, providing a fallback definition since
EOPNOTSUPP may be missing.
Bootstrapped without regressions on amd64-pc-netbsd10.1,
x86_64-pc-linux-gnu, and i386-pc-solaris2.11.
Ok for trunk?
OK.
All this makes me wonder if the use of posix_fallocate is really worth
the trouble.
The main rationale seems to be to avoid fragmentation:
https://stackoverflow.com/questions/73852293/freebsd-ftruncatemmap-big-hole-warning
Jason