memfd_create.c 196 B

123456789
  1. #define _GNU_SOURCE 1
  2. #include <sys/mman.h>
  3. #include "syscall.h"
  4. #include <linux/unistd.h>
  5. int memfd_create(const char *name, unsigned flags)
  6. {
  7. return syscall(__NR_memfd_create, name, flags);
  8. }