Home | History | Annotate | Download | only in tests
      1 #ifdef HAVE_CONFIG_H
      2 # include "config.h"
      3 #endif
      4 
      5 #include <unistd.h>
      6 #include <sys/syscall.h>
      7 
      8 #ifdef __NR_memfd_create
      9 
     10 int
     11 main(void)
     12 {
     13 	syscall(__NR_memfd_create, "strace", 7);
     14 	return 0;
     15 }
     16 
     17 #else
     18 
     19 int
     20 main(void)
     21 {
     22 	return 77;
     23 }
     24 
     25 #endif
     26