4 ms·
What don't you like about the design of memfd_create?
by JoshTriplett 10y ago
What don't you like about the design of memfd_create?
- cyphar 10y agoThe fact that the first argument (the "name") is only used as a debugging interface so that the /proc/self/fd/... "symlinks" have the name you set. I don't agree that this is useful for any real debugging, and constructing your syscalls so that they "make debugging easier" is not something that I really understand the motivations behind -- your ABI should be consistent and logical, not based on what you think a good debugging interface should be.
- JoshTriplett 10y agoAh, fair enough; I agree completely. It should only have taken a flags argument.