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