2 #include <sys/syscall.h>
14 const unsigned long fd = (long int) 0xdeadbeefffffffff;
15 int rc = syscall(__NR_flock, fd, LOCK_SH);
16 printf("flock(%d, LOCK_SH) = %d %s (%m)\n",
18 errno == ENOSYS ? "ENOSYS" : "EBADF");
20 puts("+++ exited with 0 +++");
26 SKIP_MAIN_UNDEFINED("__NR_flock")