HomeFreeBSD

memfd_create: move implementation to libc/gen

Description

memfd_create: move implementation to libc/gen

Due to memfd_create(3)'s construction of a path to pass to shm_open2(2),
it has a much larger than typical dependency footprint for a system
call wrapper (the list currently includes calloc, memset, sprintf, and
strlen). As such, split it off into its own file under libc/gen to
lighten libc/sys's dependency list.

Reviewed by: kevans, imp, emaste
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D42709

Details

Provenance
brooksAuthored on Nov 27 2023, 5:06 PM
Reviewer
kevans
Differential Revision
D42709: memfd_create: move implementation to libc/gen
Parents
rGea180bb3797e: getpagesize(3): drop support for non-ELF kernels
Branches
Unknown
Tags
Unknown