Files
freebsd/lib
Kyle Evans 9a8d333368 libc: fix memfd_create's HUGETLB handling
The 'simplification' commit referenced below actually broke one aspect
of MFD_HUGETLB: the caller isn't supposed to be required to specify a
size.  MFD_HUGETLB by itself without a shift mask just requests a large
page, so we revert that part of memfd_create() back.

While we're here, fix up the related parts of the manpages a little bit,
since MFD_HUGETLB is actually supported.  The manpage claims that we
would return ENOSYS if forced mappings weren't supported, but this was
actually not true.  However, that seems like a very important
distinction to make between ENOSYS and EOPNOTSUPP, so fix the
implementation to match the docs.

Fixes:	8b8cf4ece6 ("memfd_create: simplify HUGETLB support [...]")
Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D56114
2026-04-08 21:37:11 -05:00
..
2026-01-13 10:19:04 -05:00
2025-12-29 14:20:52 +01:00
2024-10-14 10:26:17 -07:00
2025-01-01 15:11:06 -06:00
2026-04-08 16:31:55 +01:00
2026-01-03 21:37:18 +01:00
2024-10-14 10:26:17 -07:00
2026-01-06 12:56:50 -05:00
2026-03-31 18:45:14 -07:00
2025-10-02 02:37:35 +01:00
2024-10-14 10:26:17 -07:00
2025-10-03 19:46:55 +02:00
2026-03-15 00:41:29 -03:00
2025-11-24 10:47:10 -05:00
2025-11-24 10:47:10 -05:00
2025-08-08 13:27:26 -05:00
2024-10-08 16:13:39 -03:00
2024-10-14 10:26:17 -07:00
2024-11-12 12:11:51 -05:00
2025-10-23 12:03:29 -07:00
2025-09-30 09:14:05 +01:00
2026-01-06 04:26:53 +00:00
2026-03-13 23:49:53 +00:00
2026-04-08 14:22:45 -07:00
2026-01-15 07:28:28 +01:00
2025-12-03 14:21:07 +00:00
2026-04-07 21:01:57 -07:00