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

(cherry picked from commit c3207e2d2554c8e36f9cf5950f8cd52a19fedfd5)

Details

Provenance
brooksAuthored on Nov 27 2023, 5:06 PM
Reviewer
kevans
Differential Revision
D42709: memfd_create: move implementation to libc/gen
Parents
rGf6d8ea893bb2: pf tests: fix typos in the abort_v6 test case head / cleanup function name
Branches
Unknown
Tags
Unknown