HomeFreeBSD

shm_open2: Implement SHM_GROW_ON_WRITE

Description

shm_open2: Implement SHM_GROW_ON_WRITE

Lack of SHM_GROW_ON_WRITE is actively breaking Python's memfd_create tests,
so go ahead and implement it. A future change will make memfd_create always
set SHM_GROW_ON_WRITE, to match Linux behavior and unbreak Python's tests
on -CURRENT.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D25502

Details

Provenance
kevansAuthored on
Reviewer
kib
Differential Revision
D25502: shm_open2: Implement SHM_GROW_ON_WRITE
Parents
rS363064: Optimize install(1) a bit.
Branches
Unknown
Tags
Unknown