#include "memfd.h" #include #include /* * No glibc wrappers exist for memfd_create(2), so provide our own. * * Also define memfd fcntl sealing macros. While they are already * defined in the kernel header file , that file as * a whole conflicts with the original glibc header . */ int memfd_create(const char *name, unsigned int flags) { return syscall(__NR_memfd_create, name, flags); }