]> granicus.if.org Git - strace/blob - tests/memfd_create.c
Replace "(unsigned long) -1L" with -1UL
[strace] / tests / memfd_create.c
1 #include "tests.h"
2 #include <asm/unistd.h>
3
4 #ifdef __NR_memfd_create
5
6 # include <stdio.h>
7 # include <unistd.h>
8
9 int
10 main(void)
11 {
12         static const char text[] = "strace";
13         int rc = syscall(__NR_memfd_create, text, 7);
14
15         printf("memfd_create(\"%s\", %s) = %d %s (%m)\n",
16                text, "MFD_CLOEXEC|MFD_ALLOW_SEALING|0x4", rc, errno2name());
17
18         puts("+++ exited with 0 +++");
19         return 0;
20 }
21
22 #else
23
24 SKIP_MAIN_UNDEFINED("__NR_memfd_create")
25
26 #endif