2 * Copyright (c) 2015-2016 Dmitry V. Levin <ldv@altlinux.org>
5 * SPDX-License-Identifier: GPL-2.0-or-later
10 #include <asm/unistd.h>
13 #if defined __NR_userfaultfd && defined O_CLOEXEC
21 long rc = syscall(__NR_userfaultfd, 1 | O_NONBLOCK | O_CLOEXEC);
22 printf("userfaultfd(O_NONBLOCK|O_CLOEXEC|0x1) = %ld %s (%m)\n",
24 puts("+++ exited with 0 +++");
30 SKIP_MAIN_UNDEFINED("__NR_userfaultfd && O_CLOEXEC")