Page MenuHomeFreeBSD

memfd_create: move implementation to libc/gen
ClosedPublic

Authored by brooks on Nov 22 2023, 1:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 25, 6:15 AM
Unknown Object (File)
Sun, Mar 22, 3:06 AM
Unknown Object (File)
Sat, Mar 21, 6:51 AM
Unknown Object (File)
Fri, Mar 20, 5:21 PM
Unknown Object (File)
Thu, Mar 5, 4:19 AM
Unknown Object (File)
Feb 14 2026, 6:28 PM
Unknown Object (File)
Nov 26 2025, 4:56 PM
Unknown Object (File)
Nov 26 2025, 11:44 AM
Subscribers
None

Details

Summary

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 it's own file under libc/gen
to lighten libc/sys's dependency list.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54557
Build 51446: arc lint + arc unit

Event Timeline

brooks created this revision.

Saw on github. Looks goud

This revision is now accepted and ready to land.Nov 22 2023, 1:45 AM
emaste added inline comments.
lib/libc/gen/memfd_create.c
31–41

are any of these headers no longer needed in one or the other of these files?

This revision now requires review to proceed.Nov 22 2023, 8:32 PM
This revision is now accepted and ready to land.Nov 23 2023, 12:51 AM
This revision was automatically updated to reflect the committed changes.