2 #include <asm/unistd.h>
4 #ifdef __NR_memfd_create
12 static const char text[] = "strace";
13 int rc = syscall(__NR_memfd_create, text, 7);
15 printf("memfd_create(\"%s\", %s) = %d %s (%m)\n",
16 text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|0x4", rc, errno2name());
18 puts("+++ exited with 0 +++");
24 SKIP_MAIN_UNDEFINED("__NR_memfd_create")