summaryrefslogtreecommitdiff
path: root/src/sysdeps/tryeventfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/tryeventfd.c')
-rw-r--r--src/sysdeps/tryeventfd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sysdeps/tryeventfd.c b/src/sysdeps/tryeventfd.c
new file mode 100644
index 0000000..3c3122c
--- /dev/null
+++ b/src/sysdeps/tryeventfd.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <sys/eventfd.h>
+
+int main (void)
+{
+ int fd = eventfd(0, EFD_NONBLOCK) ;
+ if (fd < 0) return 1 ;
+ return 0 ;
+}